[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 10:45:48 EST 2005


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





------- Additional Comments From dtucker at zip.com.au  2005-06-04 10:45 -------
To fix that particular problem, you just need to reverse the order of the
-lsocket and -lnsl.  ./configure --with-ldflags=-static --libs=-lnsl ought to do it.

It's likely that it still won't build, though, since static linking is not
supported by Sun:
http://www.sun.com/bigadmin/content/misc/solaris2faq.html#q6.24

$ cat test.c
char RAND_add();
int main()
{ RAND_add(); return 0; }

$ gcc test.c -L/usr/local/ssl/lib -static -lcrypto -lsocket -lnsl
/usr/lib/libnsl.a(netdir.o)(.text+0xdec): In function `load_xlate':
: undefined reference to `dlopen'
/usr/lib/libnsl.a(netdir.o)(.text+0xe20): In function `load_xlate':
: undefined reference to `dlsym'
[snip other dl* functions]

You may be able to fiddle with the linker flags to make it build, according to
the information at the URL and your requirements.  If you do then good luck to
you, however since static linking isn't supported by Sun it's not supported by
us either.



------- 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