Vladimir "Equidamoid" Shapranov
2014-Nov-22 16:05 UTC
Tinc 1.0.24 build failed on OSX Mavericks
Hi, I've got the following error when tried to compile tinc-1.0.24: gcc -g -O2 -pie -L/opt/local/lib -o tincd avl_tree.o conf.o connection.o dropin.o dummy_device.o edge.o event.o fake-getaddrinfo.o fake-getnameinfo.o getopt.o getopt1.o graph.o list.o logger.o meta.o multicast_device.o net.o net_packet.o net_setup.o net_socket.o netutl.o node.o pidfile.o process.o protocol.o protocol_auth.o protocol_edge.o protocol_misc.o protocol_key.o protocol_subnet.o raw_socket_device.o route.o subnet.o tincd.o utils.o xmalloc.o bsd/device.o -lcrypto -lz -llzo2 clang: warning: argument unused during compilation: '-pie' Undefined symbols for architecture x86_64: "_res_9_init", referenced from: _main_loop in net.o ld: symbol(s) not found for architecture x86_64 The symbol is exported in /usr/lib/libresolv.9.dylib library. I'm not familiar with autotools so I can't propose a patch, but it seems that -lresolv ldflag is missing somewhere. -- Best regards, Vladimir
On Sat, Nov 22, 2014 at 07:05:11PM +0300, Vladimir "Equidamoid" Shapranov wrote:> I've got the following error when tried to compile tinc-1.0.24:[...]> Undefined symbols for architecture x86_64: > "_res_9_init", referenced from: > _main_loop in net.o > ld: symbol(s) not found for architecture x86_64 > > The symbol is exported in /usr/lib/libresolv.9.dylib library. I'm not > familiar with autotools so I can't propose a patch, but it seems that > -lresolv ldflag is missing somewhere.A fix is already pending for 1.0.25 (which I really should release soon). A temporary workaround is to call configure like this: ./configure [...your options here...] LDFLAGS=-lresolv Then make as usual. -- 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/20141122/8d479227/attachment.sig>
Vladimir "Equidamoid" Shapranov
2014-Nov-24 06:12 UTC
Tinc 1.0.24 build failed on OSX Mavericks
On 22.11.2014 23:10 , Guus Sliepen wrote:> On Sat, Nov 22, 2014 at 07:05:11PM +0300, Vladimir "Equidamoid" Shapranov wrote: > >> I've got the following error when tried to compile tinc-1.0.24: > [...] >> Undefined symbols for architecture x86_64: >> "_res_9_init", referenced from: >> _main_loop in net.o >> ld: symbol(s) not found for architecture x86_64 >> >> The symbol is exported in /usr/lib/libresolv.9.dylib library. I'm not >> familiar with autotools so I can't propose a patch, but it seems that >> -lresolv ldflag is missing somewhere. > A fix is already pending for 1.0.25 (which I really should release > soon). A temporary workaround is to call configure like this: > > ./configure [...your options here...] LDFLAGS=-lresolv > > Then make as usual. >That worked, thanks! -- Best regards, Vladimir