OpenSSH compilation in AIX
dtucker at zip.com.au
Tue Apr 8 12:01:59 EST 2003
[Note: CC to openssh-unix-dev added]
"Ph. Marek" wrote:
> I found you mail
> where you claim that you've compiled openssh in AIX.
That is correct, AIX 4.2.1, 4.3.3 and 5.1.
> Not my situation is as follows:
> AIX 4.2
> /usr/bin/ld (AIX-binary)
> and upon linking of ssh I get "undefined symbol: .__inet_ntoa" and the same
> with inet_aton, followed by "use -bloadmap".
> If I use -bloadmap I get "cannot find or open libgcc.a" - which is available,
> and I even tried to give its path via -L to the linker.
> Do you have any suggestions?
inet_ntoa is part of libc.a (on AIX 4.2.1 anyway). The man page
contains some conflicting information, though:
"All applications containing the inet_ntoa subroutine must be compiled
with _BSD set to a specific value. Acceptable values are 43 and 44.
In addition, all socket applications must include the BSD libbsd.a
I would suggest:
a) Adding -lbsd to CFLAGS
b) Installing all of the bos.adt filesets from your distribution media.
After each you must run "make distclean" re-run "./configure".
If those two things don't work please send me the config.h and
config.log files generated by running "configure" and the output of
Darren Tucker (dtucker at zip.com.au)
GPG Fingerprint D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
More information about the openssh-unix-dev