On 20/07/2011, at 5:50 PM, Dave Shield wrote:
> On 20 July 2011 07:20, Niels Baggesen <[email protected]> wrote:
>> On Wed, Jul 20, 2011 at 11:17:02AM +1000, Ben Nizette wrote:
>>> During configure, a number of little test programs are compiled
>>> and linked (as I'm sure you're aware) but the linker gets passed
>>> -fstack-protector so all the links fail and the test results are
>>> invalid. For example, I've got a config with fun things like
>>> ac_cv_func_fork=no.
>>
>> Could it be something in your environment, maybe LDFLAGS, as I cannot
>> find any references to -fstack-protector in the configure script?
>
>
> No - but -fstack-protector *is* listed in the LTCFLAGS variable within the
> libtool script.
>
> Ben - try removing this option from there, and re-running configure.
Hm, I can't see it in my libtool script (we are talking ltmain.sh right?). The
only time LTCFLAGS appears to be set anywhere in the net-snmp distribution is
in the configure script like
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
In fact,
bennizette@haruhi:~/dev/net-snmp-5.7$ grep -r 'stack-protector' .
<Changelog entries>
# -fstack-protector* stack protector flags for GCC
-O*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*)
bennizette@haruhi:~/dev/net-snmp-5.7$
For the sake of fiddling I removed the -fstack-protector clause from that
guard, no dice, also added an -fno-stack-protector one in case my
CFLAGS=-fno-stack-protector wasn't getting passed down to libtool. Also no good.
Cheers,
--Ben.
>
> Dave
------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders