Skip to contentSkip to conversation

libnl1-1.1-r5 static libs leads to syntax errors in nmap-3.81

DISCUSSION Patrik Dahlström (student) 2 participants 2 messages Apr 19, 2011 – Apr 20, 2011

lore
Share & tools
lore
#0 lore raw

If libnl1-1.1-r5 is built with only static libs, the configure script of nmap-3.81 will fail to find a usable pcap and fall back on its own implementation (libpcap-possiblymodified). The configure script of that implementation suffers from syntax errors that I never managed to fix. Here is a excerpt from config.log of nmap-3.81:

...
configure:4570: arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb -- sysroot=/home/bitbake/build/tmp_beagleboard/sysroots/armv7a-angstrom-linux- gnueabi -o conftest -fexpensive-optimizations -fomit-frame-pointer -frename- registers -O2 -ggdb2 -Drecvfrom6_t=socklen_t - L/home/bitbake/build/tmp_beagleboard/sysroots/armv7a-angstrom-linux- gnueabi/usr/lib/../lib -Wl,-O1 -Wl,--hash-style=gnu conftest.c -lpcap -lm

Quoted 1 line

&5

/home/bitbake/build/tmp_beagleboard/sysroots/x86_64- linux/usr/armv7a/lib/gcc/arm-angstrom-linux-gnueabi/4.5.3/../../../../arm- angstrom-linux-gnueabi/bin/ld: warning: libnl.so.1, needed by /home/bitbake/build/tmp_beagleboard/sysroots/armv7a-angstrom-linux- gnueabi/usr/lib/../lib/libpcap.so, not found (try using -rpath or -rpath-link)
...

If I removed build.only.static.lib.patch from the libnl1-1.1 recipe, the missing libnl.so.1.1 shared lib would be built and installed and successively nmap-3.81 would build and install fine.

Signature · 8 lines
MvH / with best regards
Patrik Dahlström

"Every animal, except man, knows that the fundamental meaning of life is to 
enjoy it" --Samuel Butler

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments
#1 lore raw
Quoted 5 lines · Patrik Dahlström (student)

If libnl1-1.1-r5 is built with only static libs, the configure script of nmap-3.81 will fail to find a usable pcap and fall back on its own implementation (libpcap-possiblymodified). The configure script of that implementation suffers from syntax errors that I never managed to fix. Here is a excerpt from config.log of nmap-3.81:

Hi,

please check if there is newer nmap/pcap supporting libnl-2 and if no, then try to fix static build like here:
http://git.openembedded.org/cgit.cgi/openembedded/commit/?id=154bd72b1ca859afcae5ed4fe99ed611a13a475c
or
http://git.openembedded.org/cgit.cgi/openembedded/commit/?id=849389a02126e3e3bb6b8ca8e26068c386ef699c

and the problem seems to be in pcap not nmap

Regards,

Quoted 34 lines

...
configure:4570: arm-angstrom-linux-gnueabi-gcc -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -mthumb-interwork -mno-thumb -- sysroot=/home/bitbake/build/tmp_beagleboard/sysroots/armv7a-angstrom-linux- gnueabi -o conftest -fexpensive-optimizations -fomit-frame-pointer -frename- registers -O2 -ggdb2 -Drecvfrom6_t=socklen_t - L/home/bitbake/build/tmp_beagleboard/sysroots/armv7a-angstrom-linux- gnueabi/usr/lib/../lib -Wl,-O1 -Wl,--hash-style=gnu conftest.c -lpcap -lm

Quoted 1 line

&5

/home/bitbake/build/tmp_beagleboard/sysroots/x86_64- linux/usr/armv7a/lib/gcc/arm-angstrom-linux-gnueabi/4.5.3/../../../../arm- angstrom-linux-gnueabi/bin/ld: warning: libnl.so.1, needed by /home/bitbake/build/tmp_beagleboard/sysroots/armv7a-angstrom-linux- gnueabi/usr/lib/../lib/libpcap.so, not found (try using -rpath or -rpath-link)
...

If I removed build.only.static.lib.patch from the libnl1-1.1 recipe, the missing libnl.so.1.1 shared lib would be built and installed and successively nmap-3.81 would build and install fine.

Signature · 13 lines
MvH / with best regards
Patrik Dahlström

"Every animal, except man, knows that the fundamental meaning of life is to 
enjoy it" --Samuel Butler

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]