Tried to Build Tinc. Linker was confused, Makefile lacking reference to -ltinfo I guess. FYI. root at rpzcentos tinc-1.1pre10]# make make all-recursive make[1]: Entering directory `/adev/tinc-1.1pre10' Making all in m4 make[2]: Entering directory `/adev/tinc-1.1pre10/m4' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/adev/tinc-1.1pre10/m4' Making all in src make[2]: Entering directory `/adev/tinc-1.1pre10/src' gcc -std=gnu99 -DCONFDIR=\"/tinc/etc\" -DLOCALSTATEDIR=\"/tinc/var\" -DSBINDIR=\"/tinc/sbin\" -g -O2 -pie -Wl,-z,relro -Wl,-z,now -o tinc dropin.o getopt.o getopt1.o info.o invitation.o list.o names.o netutl.o script.o sptps.o subnet_parse.o tincctl.o top.o utils.o openssl/cipher.o openssl/crypto.o openssl/digest.o openssl/ecdh.o openssl/ecdsa.o openssl/ecdsagen.o openssl/prf.o openssl/rsa.o openssl/rsagen.o -lreadline -lncurses -lcrypto -lz -llzo2 -ldl /usr/bin/../libexec/gcc/x86_64-redhat-linux/4.8.2/ld: top.o: undefined reference to symbol 'wtimeout' /usr/bin/../libexec/gcc/x86_64-redhat-linux/4.8.2/ld: note: 'wtimeout' is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker command line /lib64/libtinfo.so.5: could not read symbols: Invalid operation collect2: error: ld returned 1 exit status make[2]: *** [tinc] Error 1 make[2]: Leaving directory `/adev/tinc-1.1pre10/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/adev/tinc-1.1pre10' make: *** [all] Error 2
05.12.2014 18:24, md at rpzdesign.com wrote:> Tried to Build Tinc. Linker was confused, Makefile lacking reference to > -ltinfo I guess.At least you mentioned CentOS. Some people don't do even that, thinking that the whole world is their particular version of their particular (linux) distribution... ;) return -ENOVERSION. Judjing fom gcc version (4.8) it might be rhel7, but that's a wild guess. Thanks, /mjt
On Fri, Dec 05, 2014 at 10:24:27AM -0500, md at rpzdesign.com wrote:> Tried to Build Tinc. Linker was confused, Makefile lacking reference to > -ltinfo I guess.[...]> /usr/bin/../libexec/gcc/x86_64-redhat-linux/4.8.2/ld: top.o: undefined > reference to symbol 'wtimeout' > /usr/bin/../libexec/gcc/x86_64-redhat-linux/4.8.2/ld: note: 'wtimeout' > is defined in DSO /lib64/libtinfo.so.5 so try adding it to the linker > command lineHm, on Debian it works fine, OTOH the command "libncurses5-config --libs" does tell me to link with -ltinfo. I'll see if I can add that to the autoconf script. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20141207/d9f15379/attachment.sig>
On Sun, Dec 07, 2014 at 04:33:49PM +0100, Guus Sliepen wrote:> Hm, on Debian it works fine, OTOH the command "libncurses5-config > --libs" does tell me to link with -ltinfo. I'll see if I can add that > to the autoconf script.On CentOS 7 tinc 1.1 compiles without problems. Also, both on Debian and CentOS "pkg-config --libs ncurses" only prints "-lncurses". Can you tell us which version of CentOS you are running on exactly, and the output of both "libncurses5-config --libs" and "pkg-config --libs ncurses"? -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc-devel/attachments/20141207/b37c438d/attachment.sig>
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Gus: Is it even worth my time to use any of the 1.1.X versions and only use the 1.0.24 Stable version for a VPN deployment today? Or is the 1.10pre 95% stable and only lacking UDP forwarding? Please do not be optimistic, I My use case is one where I have several servers connected by TCP/UDP and all servers are master, there is no hub and no slaves. Each server only needs to talk to the other servers directly, never do they need to "forward" traffic to other servers. So is 1.10pre ready for this use case?> Forwarding UDP packets with the new protocol is an issue that is > being worked on, and the new protocol in general needs to be > finished before I'll do a final 1.1 release.Thank you, marco On 12/7/2014 10:33 AM, Guus Sliepen wrote:> On Fri, Dec 05, 2014 at 10:24:27AM -0500, md at rpzdesign.com wrote: > >> Tried to Build Tinc. Linker was confused, Makefile lacking >> reference to -ltinfo I guess. > [...] >> /usr/bin/../libexec/gcc/x86_64-redhat-linux/4.8.2/ld: top.o: >> undefined reference to symbol 'wtimeout' >> /usr/bin/../libexec/gcc/x86_64-redhat-linux/4.8.2/ld: note: >> 'wtimeout' is defined in DSO /lib64/libtinfo.so.5 so try adding >> it to the linker command line > > Hm, on Debian it works fine, OTOH the command "libncurses5-config > --libs" does tell me to link with -ltinfo. I'll see if I can add > that to the autoconf script. > > > > _______________________________________________ tinc-devel mailing > list tinc-devel at tinc-vpn.org > http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc-devel >-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (MingW32) iQEcBAEBAgAGBQJUhTkWAAoJEPo4S5nQw5H/1P4IAKdtC0QIDJGEgYy780jJ67ct fHt1gMpI/7NgGDzlqo4u0tyVyjn+kv+/WOsRHBuEQcRaBp8H26s9BssvF/clEII4 QuGooxF5VuDUQKqGewbMrRvIqFtF6eeGftwg3WroMm5btxSWXLp18ggwfSw2TeKR Yur/RLNJgZgne/3rwuVEmkfL+BU9RuNBb58AwFo8tIbT3um4cYd4tWQOque8H2we tCEAZOes9+EBJHTT2iWelkS5O1BLtkS+K+A4fk1+J31/0oJXt0ZbhdCBd4XuxxRr fknI5DxD6ThS9VQTR8dhlM4fXBSMM7PNvLhGXnc956OpHzGKa91nJZBX+a5kY0w=Mrwr -----END PGP SIGNATURE-----