qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] cannot build qemu with "--static" configure option
@ 2011-11-23 12:58 Mr Dash Four
  2011-11-23 14:10 ` Paolo Bonzini
  2011-11-23 14:18 ` Peter Maydell
  0 siblings, 2 replies; 43+ messages in thread
From: Mr Dash Four @ 2011-11-23 12:58 UTC (permalink / raw)
  To: qemu-devel

I am trying to build a static version of the qemu-[arch] executables to 
be used in chrooted environment for the target arch (which is different 
from the host). My configure is:

./configure --target-list="x86_64-softmmu arm-softmmu x86_64-linux-user 
arm-linux-user armeb-linux-user" --disable-kvm --disable-strip 
--disable-xen --disable-spice --disable-werror --static

then "make V=1". It fails with the following error:

gcc -m64 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 
-D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef 
-Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing 
-fstack-protector-all -Wendif-labels -Wmissing-include-dirs -Wempty-body 
-Wnested-externs -Wformat-security -Wformat-y2k -Winit-self 
-Wignored-qualifiers -Wold-style-declaration -Wold-style-definition 
-Wtype-limits -I/home/gogo/rpmbuild/BUILD/qemu-kvm-0.15.1/libcacard 
-I/usr/include/nss3 -I/usr/include/nspr4      -I/usr/include/glib-2.0 
-I/usr/lib64/glib-2.0/include   -I qapi-generated -O2 -g  
-Wl,--warn-common -m64 -static -g  -o qemu-ga qemu-ga.o 
qga/guest-agent-command-state.o qga/guest-agent-commands.o qemu-tool.o 
qemu-error.o error.o osdep.o oslib-posix.o qemu-thread-posix.o trace.o 
cutils.o cache-utils.o qemu-malloc.o qemu-option.o module.o async.o 
nbd.o block.o aio.o aes.o qemu-config.o qemu-progress.o qemu-sockets.o 
posix-aio-compat.o compatfd.o block/raw.o block/cow.o block/qcow.o 
block/vdi.o block/vmdk.o block/cloop.o block/dmg.o block/bochs.o 
block/vpc.o block/vvfat.o block/qcow2.o block/qcow2-refcount.o 
block/qcow2-cluster.o block/qcow2-snapshot.o block/qcow2-cache.o 
block/qed.o block/qed-gencb.o block/qed-l2-cache.o block/qed-table.o 
block/qed-cluster.o block/qed-check.o block/parallels.o block/nbd.o 
block/blkdebug.o block/sheepdog.o block/blkverify.o block/raw-posix.o 
qint.o qstring.o qdict.o qlist.o qfloat.o qbool.o qjson.o json-lexer.o 
json-streamer.o json-parser.o qerror.o qapi/qapi-visit-core.o 
qapi/qmp-input-visitor.o qapi/qmp-output-visitor.o 
qapi/qapi-dealloc-visitor.o qapi/qmp-registry.o qapi/qmp-dispatch.o 
qemu-timer-common.o qapi-generated/qga-qapi-visit.o 
qapi-generated/qga-qapi-types.o qapi-generated/qga-qmp-marshal.o -lssl3 
-lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl   -lrt 
-pthread  -lusbredirparser   -lz -lglib-2.0
/usr/bin/ld: cannot find -lssl3
collect2: ld returned 1 exit status
make: *** [qemu-ga] Error 1

It would indicate a missing libssl3, but the library, as far as I can 
see, is there! When I try building this without the "--static" option 
all is well - the build succeeds without any hitches. What could be the 
problem with this, what am I missing?

^ permalink raw reply	[flat|nested] 43+ messages in thread

end of thread, other threads:[~2011-11-24 12:57 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-23 12:58 [Qemu-devel] cannot build qemu with "--static" configure option Mr Dash Four
2011-11-23 14:10 ` Paolo Bonzini
2011-11-23 14:15   ` Mr Dash Four
2011-11-23 15:24     ` Paolo Bonzini
2011-11-23 15:41       ` Mr Dash Four
2011-11-23 18:00         ` Paolo Bonzini
2011-11-23 18:28           ` Peter Maydell
2011-11-23 18:33             ` Mr Dash Four
2011-11-23 18:36               ` Peter Maydell
2011-11-23 18:42                 ` Mr Dash Four
2011-11-23 18:47                   ` Peter Maydell
2011-11-23 19:02                     ` Mr Dash Four
2011-11-23 19:16                       ` Peter Maydell
2011-11-23 19:22                         ` Mr Dash Four
2011-11-23 19:33                           ` Peter Maydell
2011-11-23 19:50                             ` Mr Dash Four
2011-11-23 19:53                               ` Max Filippov
2011-11-23 19:57                                 ` Mr Dash Four
2011-11-23 19:59                                   ` Peter Maydell
2011-11-23 20:08                                     ` Max Filippov
2011-11-23 20:18                                       ` Max Filippov
2011-11-23 20:28                                         ` Mr Dash Four
2011-11-23 23:02                                         ` Mr Dash Four
2011-11-23 23:15                                           ` Max Filippov
2011-11-23 23:22                                             ` Peter Maydell
2011-11-23 23:33                                               ` Mr Dash Four
2011-11-24  8:48                                                 ` Max Filippov
2011-11-24 12:15                                                   ` Mr Dash Four
2011-11-24 12:25                                                     ` Paolo Bonzini
2011-11-24 12:45                                                       ` Mr Dash Four
2011-11-23 20:27                                       ` Mr Dash Four
2011-11-23 20:39                                         ` Mr Dash Four
2011-11-23 20:51                                           ` Max Filippov
2011-11-23 21:00                                             ` Mr Dash Four
2011-11-23 21:40                                               ` Max Filippov
2011-11-23 22:12                                                 ` Peter Maydell
2011-11-23 22:13                                         ` Peter Maydell
2011-11-23 20:13                                     ` Mr Dash Four
2011-11-24 12:26                             ` Alon Levy
2011-11-24 12:57                               ` Peter Maydell
2011-11-23 18:34           ` Mr Dash Four
2011-11-23 14:18 ` Peter Maydell
2011-11-23 14:39   ` Mr Dash Four

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).