Skip to contentSkip to conversation

Compiling static

Qemu-devel Davide Ferraretto 3 participants 4 messages Jun 14, 2012

lore
Share & tools
lore
#0 lore raw

I want compile qemu with --static:
./configure --static --target-list=i386-linux-user,arm-linux-user --python=/usr/bin/python2.7 --prefix=/install_qemu

Qemu returns:
/usr/bin/ld: cannot find -lssl3
/usr/bin/ld: cannot find -lsmime3
/usr/bin/ld: cannot find -lnss3
/usr/bin/ld: cannot find -lnssutil3
collect2: error: ld returned 1 exit status

How resolve??

#1 lore raw

I want compile qemu with --static: ./configure --static --target-list=i386-linux-user,arm-linux-user --python=/usr/bin/python2.7 --prefix=/install_qemu

Qemu returns: /usr/bin/ld: cannot find -lssl3 /usr/bin/ld: cannot find -lsmime3 /usr/bin/ld: cannot find -lnss3 /usr/bin/ld: cannot find -lnssutil3 collect2: error: ld returned 1 exit status

How resolve??

#2 lore raw
In reply to Davide Ferraretto

2012/6/14 Davide Ferraretto <[email protected]>:

Quoted 10 lines

I want compile qemu with --static:
./configure --static --target-list=i386-linux-user,arm-linux-user --python=/usr/bin/python2.7 --prefix=/install_qemu

Qemu returns:
/usr/bin/ld: cannot find -lssl3
/usr/bin/ld: cannot find -lsmime3
/usr/bin/ld: cannot find -lnss3
/usr/bin/ld: cannot find -lnssutil3
collect2: error: ld returned 1 exit status

Note those libraries(libssl3.so, libsmime3 ...) belong to nss, did you install nss header files and libraries?
Moreover, because you want to compile qemu statically, you must install static nss libraries.

Quoted 2 lines

How resolve??

Signature · 4 lines
linuxer, emacser and pythoner living in beijing
blog: http://mathslinux.org
twitter: https://twitter.com/mathslinux
google+: https://plus.google.com/118129852578326338750
#3 lore raw
In reply to Davide Ferraretto

Am 14.06.2012 12:03, schrieb Davide Ferraretto:

Quoted 4 lines

I want compile qemu with --static:
./configure --static --target-list=i386-linux-user,arm-linux-user --python=/usr/bin/python2.7 --prefix=/install_qemu

Quoted 8 lines

Qemu returns:
/usr/bin/ld: cannot find -lssl3
/usr/bin/ld: cannot find -lsmime3
/usr/bin/ld: cannot find -lnss3
/usr/bin/ld: cannot find -lnssutil3
collect2: error: ld returned 1 exit status

How resolve??

I reported that as part of our v1.1 packaging: Someone needs to provide a patch to configure to only test the libraries actually used for linux-user / bsd-user.

Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg