Subject: | [cygwin] error: external linkage required for symbol ‘invoke_watch’ |
Date: | Mon, 6 Jan 2020 20:57:16 +0100 |
To: | bug-Tickit [...] rt.cpan.org |
From: | nomad [...] null.net |
I'm trying to build Tickit under Cygwin. I am not quite getting past
the library dependencies, so this may not be an issue with Tickit
itself.
0. I think I had trouble with Alien::libtermkey or Alien::libtickit in
the past so I've been trying to install those libraries directly.
1. It seems that libterm does not install a dll by default. I managed
to get that installed by manually adding LDFLAGS=-no-defined to the
Makefile.
2. It seems that libtickit also does not install a dll either. I don't
know if this is actually required by Tickit, but since I couldn't build
libtickit without libterm having a dll I also added LDFLAGS=-no-defined
to the Makefile.
3. When I run "PKG_CONFIG_PATH=/usr/local/lib/pkgconfig cpanm -v
Tickit" I get the following error (plus a bunch of warnings):
gcc -I/usr/lib/perl5/5.26/x86_64-cygwin-threads/CORE -DVERSION="0.69"
-DXS_VERSION="0.69" -I/usr/local/include -c -DPERL_USE_SAFE_PUTENV
-U__STRICT_ANSI__ -D_GNU_SOURCE -ggdb -O2 -pipe -Wall
-Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-strong
--param=ssp-buffer-size=4
-fdebug-prefix-map=/mnt/share/cygpkgs/perl/perl.x86_64/build=/usr/src/debug/perl-5.26.3-2
-fdebug-prefix-map=/mnt/share/cygpkgs/perl/perl.x86_64/src/perl-5.26.3=/usr/src/debug/perl-5.26.3-2
-fwrapv -fno-strict-aliasing -O3 -o lib/Tickit.o lib/Tickit.c
In file included from lib/Tickit.xs:10:0:
lib/Tickit.xs:687:11: error: external linkage required for symbol
‘invoke_watch’ because of ‘dllexport’ attribute
static XS(invoke_watch);
^
It may be obvious that I don't know what I'm doing here, but if there
is any more info I can provide I'd like to do so.
--
Mark Lawrence