On Thu, Apr 12, 2001 at 10:58:35AM +1000, Daniel Hay wrote:

>         cc  -g -O2  -o ssh2 ssh2.o -L. -L../../lib -lssh2 -lssh -ltermcap -lnsl
> -L/usr/local/lib -lgen -lxcurses -ltermcap -lm -lnsl -lgen -lsocket

> (cc:) Warning: -g or -ql specified, optimization restricted

Mixing -g and -O2 on compilers other than gcc is probably not wise.

> UX:ld: WARNING: /usr/lib/libnsl.so: warning: attempted multiple inclusion of
> file

Should be ok.

> Undefined                       first referenced
>  symbol                             in file
> __fxstat                            /usr/lib/libsocket.so
> __xpg4                              /usr/lib/libsocket.so

You might want to check your local man pages for "fxstat" and "xpg4",
and see if the man pages say which library (or libraries) should contain
those functions.  I don't have those functions on any local systems here
(sorry, I don't have access to an NCR MP-RAS box now).

If I had to guess, I'd make sure "-lnsl" comes *after* "-lsocket" instead
of before it.  (Remember, most non-GNU linkers care about the order in
which your libraries are searched, and SysV is especially picky.)  I'm not
sure about "-lgen", so you should probably leave that one at the end.

If you get it to build by switching the libraries around, you should
report that to the developers -- they can then apply the necessary changes
to the autoconf scripts.

> the system is "UNIX System V Release 4.0 Version 3.0"

Probably MP-RAS.  You have my deepest sympathy.

Reply via email to