I had the same issue on Linux Mint 12, but I was able to resolve it by
editing the Makefile.
Replace this line:
gcc -Wall -landns ntkresolv.c -o ntkresolv
with:
gcc -Wall ntkresolv.c -landns -lcrypto -o ntkresolv
On 01/25/2012 04:01 AM, Luca Dionisi wrote:
Your linker raises the problem, so you have to check that the symbol
is defined in a library in your path.
In my system:
luca@luca:~$ nm -D /lib/libcrypto.so.0.9.8 | grep "\bMD5\b"
00041180 T MD5
luca@luca:~$ nm -D /usr/lib/libandns.so.0.0.1 | grep "\bntk_query\b"
00003b9c T ntk_query
luca@luca:~$ nm -D /usr/lib/libandns.so.0.0.1 | grep "\bfree_andns_pkt\b"
00003c63 T free_andns_pkt
In more detail, "-landns" should link with /usr/lib/libandns.so.0.0.1
and in my system this library is linked with libcrypto:
luca@luca:~$ ldd /usr/lib/libandns.so.0.0.1
linux-gate.so.1 => (0xb779c000)
libcrypto.so.0.9.8 => /lib/libcrypto.so.0.9.8 (0xb7632000)
libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb761d000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb74bb000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb74b7000)
/lib/ld-linux.so.2 (0xb779d000)
On Tue, Jan 24, 2012 at 8:45 PM, James Farrar<[email protected]>
wrote:
OK, just spent several hous with grep, but still no better off than I was
before. I have no idea as to how to fix dependancies that are not called.
On Monday 23 January 2012 22:29:35 The Abyss wrote:
No. What you need is to find out where "ntk_query" and "free_andns_ptk" are
defined in some other file; while MD5 should be defined at system level.
Check the #includes.
Il giorno 23/gen/2012, alle ore 18:10, James Farrar
<[email protected]> ha scritto:
I was following -------------
http://lab.dyne.org/Netsukuku/eng/Testing
"HowTo test netsukuku daemon on real hardware"
New Utbuntu install, on a ABIT NF7-S (AMD processor and Nvidia chipset).
All is fine untill I tried to make ntkresolv Then I get:-
james@james-netsukuku:~/netsukuku/ntkresolv$ make
gcc -Wall -landns ntkresolv.c -o ntkresolv
ntkresolv.c: In function edo_command f:
ntkresolv.c:295:20: warning: variable ex f set but not used
[-Wunused-but-set- variable]
/tmp/ccceP57K.o: In function `do_command':
ntkresolv.c:(.text+0xd79): undefined reference to `ntk_query'
ntkresolv.c:(.text+0xdce): undefined reference to `free_andns_pkt'
/tmp/ccceP57K.o: In function `compute_hash':
ntkresolv.c:(.text+0x13cf): undefined reference to `MD5'
collect2: ld returned 1 exit status
make: *** [all] Error
OK, I may be barking up the wrong tree, but it seemas to me that
openssl-dev is not the name of the Ubuntu package, that seems to be a
Fedora package (amoungst others).
From what I can find out the Ubuntu package is libssl-dev.
This means that ntkresolv.c is calling the wrong package for Ubuntu?
What do you think?
_______________________________________________
Netsukuku mailing list
[email protected]
http://lists.dyne.org/mailman/listinfo/netsukuku
_______________________________________________
Netsukuku mailing list
[email protected]
http://lists.dyne.org/mailman/listinfo/netsukuku
_______________________________________________
Netsukuku mailing list
[email protected]
http://lists.dyne.org/mailman/listinfo/netsukuku
_______________________________________________
Netsukuku mailing list
[email protected]
http://lists.dyne.org/mailman/listinfo/netsukuku
_______________________________________________
Netsukuku mailing list
[email protected]
http://lists.dyne.org/mailman/listinfo/netsukuku