Ticket #137 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Fails to detect that the stack protector isn't support on some architectures

Reported by: sjoerd Assigned to: lennart
Priority: major Milestone: Avahi 0.6.19
Component: build-system Version:
Keywords: Cc:

Description

Hi,

Avahi 0.6.18 fails to build on several archs out of the box (that is without disabling stack protection), because stack protection is enabled even though gcc reports it's unsupported.

The most interesting bit from the config.log is the following:

configure:4989: checking whether gcc accepts -fstack-protector configure:5017: gcc -c -g -O2 -fstack-protector conftest.c >&5 conftest.c:1: warning: -fstack-protector not supported for this target configure:5023: $? = 0 configure:5040: result: yes configure:5063: checking whether g++ accepts -fstack-protector configure:5091: g++ -c -g -O2 -fstack-protector conftest.cpp >&5 conftest.cpp:1: warning: -fstack-protector not supported for this target configure:5097: $? = 0 configure:5114: result: yes

Simplest fix would be to run the checks with -Werror

Change History

04/27/07 13:08:48 changed by sjoerd

Hmm, wikiformatting blew up the log.. Let's try again:

configure:4989: checking whether gcc accepts -fstack-protector
configure:5017: gcc -c -g -O2 -fstack-protector  conftest.c >&5
conftest.c:1: warning: -fstack-protector not supported for this target
configure:5023: $? = 0
configure:5040: result: yes
configure:5063: checking whether g++ accepts -fstack-protector
configure:5091: g++ -c -g -O2 -fstack-protector  conftest.cpp >&5
conftest.cpp:1: warning: -fstack-protector not supported for this target
configure:5097: $? = 0
configure:5114: result: yes

05/09/07 00:09:14 changed by lennart

  • milestone set to Avahi 0.6.19.

05/09/07 00:09:33 changed by lennart

  • status changed from new to assigned.
  • component changed from avahi-core to build-system.

05/09/07 00:36:40 changed by lennart

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [1462]) Disable SSP on archs that don't support it. (Patch idead from Sjoerd Simons; Closes #137)