Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upSmartOS / Duo_Unix-1.7 - Undefined symbol __stack_chk_fail_local when linking #17
Comments
This comment has been minimized.
This comment has been minimized.
|
I'd suggest adding a sunos check beside teh aix one in |
This comment has been minimized.
This comment has been minimized.
|
Thanks I'll try it out and post the results here |
This comment has been minimized.
This comment has been minimized.
|
Il giorno gio, 02/02/2012 alle 18.50 -0800, leowmjw ha scritto:
Any news about this? Thanks! Diego Elio Pettenò flameeyes@flameeyes.eu |
This comment has been minimized.
This comment has been minimized.
|
Disabled -fstack-protector on SunOS. |
This comment has been minimized.
This comment has been minimized.
|
Ran into this bug again with Duo 1.9 when trying to build 32bit (64bit was fine). The solution is the same, but you can hit it if your build type is solaris rather than sunos. To verify this, "grep host_os Makefile". The solution is to edit configure.ac and replace "sunos" with "solaris" (line 54). Then delete configure (for good measure) and run "autoconf". You'll have a new configure file. Build as usual. |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the note, Ben. The solaris exception was committed a few months ago, but we haven't cut a new release with it: |
Unable to complete linking by ld for SmartOS/Duo_Unix-1.7 combination. It is running inside a zone.
System Details:
[root@bare /home/admin/MYDUO/duo_unix-1.7]# uname -a
SunOS bare.joyent.us 5.11 joyent_20110813T221858Z i86pc i386 i86pc Solaris
[root@bare /home/admin/MYDUO/duo_unix-1.7]# pkgin search openssl
openssl-0.9.8qnb3 = Secure Socket Layer and cryptographic library
Detailed Message for root cause of error
./configure
make clean all
....
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -no-undefined -version-info 3:0:0 -o libduo.la -rpath /usr/local/lib bson.lo duo.lo groupaccess.lo http_parser.lo https.lo ini.lo match.lo urlenc.lo ../compat/libcompat.la -L/usr/lib -lssl -lcrypto -lnsl
libtool: link: gcc -shared -fPIC -DPIC -Wl,-z -Wl,text -Wl,-h -Wl,libduo.so.3 -o .libs/libduo.so.3.0.0 .libs/bson.o .libs/duo.o .libs/groupaccess.o .libs/http_parser.o .libs/https.o .libs/ini.o .libs/match.o .libs/urlenc.o -Wl,-z -Wl,allextract ../compat/.libs/libcompat.a -Wl,-z -Wl,defaultextract -L/usr/lib -lssl -lcrypto -lnsl -lc -O2
Undefined symbol ==> __stack_chk_fail_local
first referenced in file ==> .libs/bson.o (symbol scope specifies local binding)
ld: fatal: symbol referencing errors. No output written to .libs/libduo.so.3.0.0
collect2: ld returned 1 exit status
make[2]: *** [libduo.la] Error 1
make[2]: Leaving directory
/home/admin/MYDUO/duo_unix-1.7/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/home/admin/MYDUO/duo_unix-1.7'make: *** [all] Error 2
Any clue on possible solution? Thanks!
Cheers!
Michael Leow