On 06/20/10 03:56, Ashish SHUKLA wrote:
Try adding '-lssp_nonshared' to the LDFLAGS.

Thanks for the suggestion, but that didn't help. What did help is the attached patch, which doesn't fix, but does avoid the problem with trying to find libssp. With that patch the resulting perl passed all the tests except for the 5 in the attached file.

So, if it's desirable to build perl with -fstack-protector (and it almost certainly is) then the long term solution needs to be to detect what gcc we're building with and add the right flags to the linker so that libssp can be found in (for example) /usr/local/lib/gcc45/libssp.so.0


Doug

--

        ... and that's just a little bit of history repeating.
                        -- Propellerheads

        Improve the effectiveness of your Internet presence with
        a domain name makeover!    http://SupersetSolutions.com/

ext/IO/t/io_xs................................................ok
ext/IPC-SysV/t/ipcsysv........................................#   Failed test 
'right length'
#   at ../ext/IPC-SysV/t/ipcsysv.t line 256.
#          got: '0'
#     expected: '10'
FAILED at test 12
ext/IPC-SysV/t/msg............................................#   Failed test 
'qnum'
#   at ../ext/IPC-SysV/t/msg.t line 84.
#          got: '21701'
#     expected: '1'
FAILED at test 4
ext/IPC-SysV/t/podcov.........................................skipped
ext/IPC-SysV/t/pod............................................skipped
ext/IPC-SysV/t/sem............................................#   Failed test 
'set all'
#   at ../ext/IPC-SysV/t/sem.t line 79.
FAILED at test 3
ext/IPC-SysV/t/shm............................................#   Failed test 
'cpid'
#   at ../ext/IPC-SysV/t/shm.t line 66.
#          got: '0'
#     expected: '21705'
FAILED at test 4
ext/List-Util/t/00version.....................................ok

lib/AnyDBM_File...............................................ok
lib/Archive/Extract/t/01_Archive-Extract......................#   Failed test 
'extract() for 'double_dir.zip' reports success (PP: 0 Bin: 1)'
#   at ../lib/Archive/Extract/t/01_Archive-Extract.t line 427.
FAILED at test 83
lib/Archive/Tar/t/01_use......................................ok

--- Configure.bak       2009-08-18 12:03:53.000000000 -0700
+++ Configure   2010-06-21 21:19:02.000000000 -0700
@@ -5147,7 +5147,7 @@
        # as that way the compiler can do the right implementation dependant
        # thing. (NWC)
        case "$gccversion" in
-       ?*)     set stack-protector -fstack-protector
+       ?*)
                eval $checkccflag
                ;;
        esac
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to