"../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. openssh-5.3p1 on aix 5.3
phoebus phoebus
frphoebus at yahoo.fr
Fri Feb 19 22:20:55 EST 2010
Dareen,
I use openssl version: OpenSSL 0.9.7l 28 Sep 2006. Openss is from 2 rpm packages openssl-0.9.7l-2, openssl-devel-0.9.7l-2 from the Linux tool box for AIX 5.3
You find the error. Now i do the configure with the following commands and i pass the previous erros.
export CC=cc
export CFLAGS="-I/usr/local/include"
export LDFLAGS="-L/opt/freeware/lib/ -L/usr/local/lib"
export CPP="cc -E"
./configure --prefix=/usr/local --sysconfdir=/usr/local/etc/ssh \
--with-cflags="-O -D__STR31__ -qmaxmem=-1" --with-cflags="-DBROKEN_GETADDRINFO" \
--with-tcp-wrappers=/usr/local/lib \
--with-zlib=/opt/freeware \
--with-ssl-dir=/opt/freeware \
--with-xauth=/usr/bin/X11/xauth \
--with-md5-passwords \
--with-kerberos5 \
--with-pam \
--with-pid-dir=/var/run
When i run make, i have the following erros:
include -I/usr/local/include/gssapi -DSSHDIR=\"/usr/local/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/usr/local/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/local/libexec/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/local/libexec/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/local/libexec/ssh-keysign\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DSSH_RAND_HELPER=\"/usr/local/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H -c roaming_common.c
"roaming_common.c", line 58.60: 1506-280 (W) Function argument assignment between types "unsigned long*" and "int*" is not allowed.
"roaming_common.c", line 70.60: 1506-280 (W) Function argument assignment between types "unsigned long*" and "int*" is not allowed.
cc -qlanglvl=extc89 -o ssh ssh.o readconf.o clientloop.o sshtty.o sshconnect.o sshconnect1.o sshconnect2.o mux.o roaming_common.o -L. -Lopenbsd-compat/ -L/opt/freeware/lib -L/usr/local/lib -L/opt/freeware/lib -L/opt/freeware/lib/ -L/usr/local/lib -L/usr/local/lib -blibpath:/usr/lib:/lib:/usr/local/lib -lssh -lopenbsd-compat -lcrypto -lz -lkrb5 -lk5crypto -lcom_err
ld: 0706-006 Cannot find or open library file: -l k5crypto
ld:open(): A file or directory in the path name does not exist.
ld: 0706-006 Cannot find or open library file: -l com_err
ld:open(): A file or directory in the path name does not exist.
make: 1254-004 The error code from the last command is 255.
Thanks for advices. I'm looking for the libraries k5crypto and com_err. I installed kerberos5 filesets but not improvement.
I 'm now continuing my investigation.
Regards,
Phoebus
----- Message d'origine ----
De : Darren Tucker <dtucker at zip.com.au>
À : phoebus phoebus <frphoebus at yahoo.fr>
Cc : openssh-unix-dev at mindrot.org
Envoyé le : Ven 19 Février 2010, 10 h 08 min 14 s
Objet : Re: Re : Re : Re : "../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. openssh-5.3p1 on aix 5.3
Darren Tucker wrote:
> phoebus phoebus wrote:
>> Hi Darren,
>>
>> I fond buffer.h in:
>>
>> ca06:/# find . -name buffer.h
>> ./home/frphoebus/openssh/openssh-5.3p1/buffer.h (move to openbsd-compat and renamed buffer-myopenssh.h)
>> ./opt/freeware/include/openssl/buffer.h (move to openbsd-compat and renamed buffer-myopenssl.h)
>> ca06:/#
>
> Aha! Your preprocessed source has /opt/freeware/include/openssl/buffer.h before ../buffer.h, and OpenSSH's buffer.h has:
[...]
From your original post, you're using:
export CFLAGS="-I/opt/freeware/include/openssl/ -I/usr/local/include"
export LDFLAGS="-L/opt/freeware/lib/ -L/usr/local/lib"
./configure --prefix=/usr/local --sysconfdir=/usr/local/etc/ssh \
--with-cflags="-O -D__STR31__ -qmaxmem=-1" \
--with-cflags="-DBROKEN_GETADDRINFO" \
--with-tcp-wrappers=/usr/local/lib \
--with-zlib=/opt/freeware \
--with-ssl-dir=/opt/freeware \
I think the CFLAGS=-I/opt/freeware/include/openssl/ is the source of your problem, and should be unnecessary because you also have "--with-ssl-dir=/opt/freeware".
-- Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / 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
mailing list