Bugzilla – Bug 581
Stack protection compiler option causes build failure on Solaris 10
Last modified: 2013-01-16 11:51:55 MST
Adding -fstack-protector to the command generated by libtool allows this and other binaries to build successfully. libtool: link: i386-pc-solaris2.10-gcc-4.6.3 -o visudo visudo.o goodpath.o find_path.o error.o -pie -L/usr/local/ssl/lib ./.libs/libparsesudoers.a ../../common/.libs/libcommon.a ../../compat/.libs/libreplace.a -lintl -lsocket -lnsl -R/usr/local/ssl/lib Undefined first referenced symbol in file __stack_chk_fail_local visudo.o (symbol scope specifies local binding) __stack_chk_guard visudo.o ld: fatal: symbol referencing errors. No output written to visudo collect2: ld returned 1 exit status
Oops, wrong version -- this is from 1.8.6_p3.
Currently, -fstack-protector is part of LT_LDFLAGS which is only used when building shared objects. It should probably be split out into its own setting as was done for the PIE flags.
Fixed in sudo 1.8.6p4.