[Bug 1052] Static Compile of 4.1.pl1 fails on Solaris 9

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Jun 4 04:41:19 EST 2005


http://bugzilla.mindrot.org/show_bug.cgi?id=1052

           Summary: Static Compile of 4.1.pl1 fails on Solaris 9
           Product: Portable OpenSSH
           Version: 4.1p1
          Platform: UltraSparc
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build system
        AssignedTo: bitbucket at mindrot.org
        ReportedBy: mc_reis at hotmail.com


Hello, I'm really at a loss here trying to compile openssh4.1pl1 statically on
my Solaris box. Dynamically compiling with the same flags works (removing -static). 

I'm using gcc 3.3.0 and openssl 0.9.7g. I'll attach the entire config log later.
Please let me know if I can provide any additional information.

<Script used to call configure>

export CFLAGS="-I/usr/cs/lib:/usr/lib"
export CPPFLAGS="-I/usr/cs/lib:/usr/lib"
export LD_LIBRARY_PATH=/usr/cs/lib:/usr/lib
./configure LD_LIBRARY_PATH=/usr/cs/lib:/usr/lib --prefix=/usr/cs/testing
--with-zlib=/usr/cs/testing/lib/ --with-ssl-dir=/usr/cs/ssl
--with-ldflags="-static -lnsl"

</Script>


<Configure Messages>
....
checking whether snprintf correctly terminates long strings... yes
checking whether system supports SO_PEERCRED getsockopt... no
checking whether getpgrp requires zero arguments... yes
configure: error: *** Can't find recent OpenSSL libcrypto (see config.log for
details) ***

</Messages>

<Listing of openssl libs>
ls -al /usr/cs/lib | grep libcrypto.a
-rw-r--r--   1 root      2059764 May 16 17:30 libcrypto.a
</Listing>

<Excerpt of Config.log>

configure:13908: gcc -o conftest -I/usr/cs/lib:/usr/lib -Wall -Wpointer-arith
-Wno-uninitialized -I/usr/local/ssl/include -I/usr/cs/testing/lib/
-I/usr/cs/lib:/usr/lib -L/usr/local/ssl/lib -R/usr/local/ssl/lib
-L/usr/cs/testing/lib/ -R/usr/cs/testing/lib/  -static -lnsl conftest.c -lcrypto
-lz -lsocket  >&5
Undefined                       first referenced
 symbol                             in file
endnetconfig                        /usr/lib/libsocket.a(_soutil.o)
getnetconfig                        /usr/lib/libsocket.a(_soutil.o)
setnetconfig                        /usr/lib/libsocket.a(_soutil.o)
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:13914: $? = 1
configure: failed program was:
</Config.log>



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list