From: Paolo Bonzini <pbonzini@redhat.com>
To: Zhi Yong Wu <zwu.kernel@gmail.com>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
Zhi Yong Wu <zhiyong.wzy@alibaba-inc.com>
Subject: Re: [Qemu-devel] [PATCH v2] libcacard: fix compile error on glib2-2.12.3-4.el5
Date: Tue, 30 Sep 2014 16:06:17 +0200 [thread overview]
Message-ID: <542AB8D9.8090400@redhat.com> (raw)
In-Reply-To: <CAEH94LjiO+EYtyrMeenTiJuPuyhcB+3aeyaZhhx+pE1xcYb_=Q@mail.gmail.com>
Il 30/09/2014 15:57, Zhi Yong Wu ha scritto:
> libtool --mode=link --tag=CC c++ -m64 -D_GNU_SOURCE
> -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes
> -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes
> -fno-strict-aliasing -fno-common -Wendif-labels
> -Wmissing-include-dirs -Wnested-externs -Wformat-security -Wformat-y2k
> -Winit-self -Wold-style-definition -fstack-protector-all
> -I/usr/include/libpng12 -I/home/zhiyong.wzy/qemu/pixman/pixman
> -I/home/zhiyong.wzy/qemu/pixman/pixman -I/home/zhiyong.wzy/qemu/tests
> -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g
> -Wl,--warn-common -m64 -g -o vscclient libcacard/vscclient.o
> libcacard.la -Wc,-fstack-protector-all -lm -pthread -L/lib64
> -lgthread-2.0 -lglib-2.0 -lz -lrt -lz -luuid -lutil
> c++ -m64 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings
> -Wmissing-prototypes -fno-strict-aliasing -fno-common -Wendif-labels
> -Wmissing-include-dirs -Wnested-externs -Wformat-security -Wformat-y2k
> -Winit-self -Wold-style-definition -fstack-protector-all
> -I/usr/include/libpng12 -I/home/zhiyong.wzy/qemu/pixman/pixman
> -I/home/zhiyong.wzy/qemu/pixman/pixman -I/home/zhiyong.wzy/qemu/tests
> -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread
> -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -g
> -Wl,--warn-common -m64 -g -o .libs/vscclient libcacard/vscclient.o
> -Wl,-fstack-protector-all -pthread ./.libs/libcacard.so -lssl3
> -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl
> -L/lib64 -lm -lgthread-2.0 -lglib-2.0 -lrt -lz -luuid -lutil
> -Wl,--rpath -Wl,/usr/local/lib
> /usr/bin/ld: -f may not be used without -shared
So the problem seems to be with "-Wl,-fstack-protector-all". Where does
it come from? QEMU or some pkg-config file?
Does it work if you configure with the --disable-stack-protector option?
Paolo
next prev parent reply other threads:[~2014-09-30 14:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-30 9:12 [Qemu-devel] [PATCH v2] libcacard: fix compile error on glib2-2.12.3-4.el5 Zhi Yong Wu
2014-09-30 9:28 ` Paolo Bonzini
2014-09-30 13:57 ` Zhi Yong Wu
2014-09-30 14:06 ` Paolo Bonzini [this message]
2014-09-30 15:09 ` Zhi Yong Wu
2014-09-30 15:16 ` Paolo Bonzini
2014-09-30 15:26 ` Zhi Yong Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=542AB8D9.8090400@redhat.com \
--to=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=zhiyong.wzy@alibaba-inc.com \
--cc=zwu.kernel@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).