Opened 4 years ago

Closed 4 years ago

#1302 closed patch (fixed) fix stack-protector detection

Reported by: fabrice Owned by: Christian Franke
Priority: major Milestone: Release 7.2
Component: all Version: 7.1
Keywords: Cc:


Use AC_LINK_IFELSE instead of AC_COMPILE_IFELSE to check for
stack-protector availability as some compilers could missed the needed
library (-lssp or -lssp_nonshared) at linking step:

/home/giuliobenetti/autobuild/run/instance-3/output-1/host/bin/x86_64-linux-g++ -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -Wall -W -Wformat=2 -fstack-protector-strong -o smartctl smartctl.o atacmdnames.o atacmds.o ataidentify.o ataprint.o dev_ata_cmd_set.o dev_intelliprop.o dev_interface.o dev_jmb39x_raid.o json.o knowndrives.o nvmecmds.o nvmeprint.o scsicmds.o scsiata.o scsinvme.o scsiprint.o utility.o os_linux.o cciss.o dev_areca.o -lselinux
/home/giuliobenetti/autobuild/run/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: cannot find -lssp_nonshared
/home/giuliobenetti/autobuild/run/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/x86_64-buildroot-linux-uclibc/8.3.0/../../../../x86_64-buildroot-linux-uclibc/bin/ld: cannot find -lssp


Attachments (1) (2.1 KB ) - added by fabrice 4 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by Christian Franke, 4 years ago

Milestone: Release 7.2
Type: defectpatch

comment:2 by Christian Franke, 4 years ago

Owner: set to Christian Franke
Status: newaccepted

comment:3 by Christian Franke, 4 years ago

Resolution: fixed
Status: acceptedclosed

Patch applied in r5032, thanks!

Note: See TracTickets for help on using tickets.