phoebus phoebus
2010-Feb-18 12:51 UTC
"../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. openssh-5.3p1 on aix 5.3
Hi all, Environment: Compiler: IBM XL C/C++ Enterprise Edition for AIX v9.0 Server: AIX 5.3 TL 10 SP1 I use configure with the following option to configure the makefile. --------------------------------? export CC=cc 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 \ ??????????????? --with-xauth=/usr/bin/X11/xauth \ ??????????????? --with-md5-passwords \ ??????????????? --with-kerberos5 \ ??????????????? --with-pam \ ??????????????? --with-pid-dir=/var/run -------------------------------? A resume of the ouput?at the end of?configure . --------------------------------? OpenSSH has been configured with the following options: ???????????????????? User binaries: /usr/local/bin ?????????????????? System binaries: /usr/local/sbin ?????????????? Configuration files: /usr/local/etc/ssh ?????????????????? Askpass program: /usr/local/libexec/ssh-askpass ????????????????????? Manual pages: /usr/local/share/man/manX ????????????????????????? PID file: /var/run ? Privilege separation chroot path: /var/empty ??????????? sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin ??????????????????? Manpage format: man ?????????????????????? PAM support: yes ?????????????????? OSF SIA support: no ???????????????? KerberosV support: yes ?????????????????? SELinux support: no ???????????????? Smartcard support: no ???????????????????? S/KEY support: no ????????????? TCP Wrappers support: yes ????????????? MD5 password support: yes ?????????????????? libedit support: no ? Solaris process contract support: no ?????? IP address in $DISPLAY hack: no ?????????? Translate v4 in v6 hack: no ????????????????? BSD Auth support: no ????????????? Random number source: OpenSSL internal ONLY ? ????????????? Host: powerpc-ibm-aix5.3.0.0 ????????? Compiler: cc -qlanglvl=extc89 ??? Compiler flags: -I/opt/freeware/include/openssl/ -I/usr/local/include -DBROKEN_GETADDRINFO Preprocessor flags: -I/opt/freeware/include -I/usr/local/lib -I/opt/freeware/include? -I/usr/local/include -I/usr/local/include/gssapi ????? Linker flags: -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 ???????? Libraries: -lcrypto -lz? -lkrb5 -lk5crypto -lcom_err ???????? +for sshd:? -lwrap -lpam -ldl ? PAM is enabled. You may need to install a PAM control file for sshd, otherwise password authentication may fail. Example PAM control files can be found in the contrib/ subdirectory ----------------------------------- ? The ouput of make command?is: ??????? echo>??????? if test ! -z ""; then? /usr/bin/perl ./fixprogs ssh_prng_cmds ;? fi >??????? (cd openbsd-compat && make) >??????? cc -qlanglvl=extc89 -I/opt/freeware/include/openssl/ -I/usr/local/include -qmaxmem=-1? -I. -I.. -I. -I./.. -I/opt/freeware/include -I/usr/local/lib/libwrap.a? -DHAVE_CONFIG_H -c bsd-arc4random.c >"../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. >"../openbsd-compat/port-aix.h", line 94.69: 1506-046 (S) Syntax error. >make: 1254-004 The error code from the last command is 1. >Stop. >make: 1254-004 The error code from the last command is 2. > >Stop.I don't undestand why?this error. Could you help or provides some advices? Thanks. ? Regards, Phoebus
Tim Rice
2010-Feb-18 15:56 UTC
"../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. openssh-5.3p1 on aix 5.3
On Thu, 18 Feb 2010, phoebus phoebus wrote:> Hi all, > > Environment: > Compiler: IBM XL C/C++ Enterprise Edition for AIX v9.0 > Server: AIX 5.3 TL 10 SP1 >[snip]> > (cd openbsd-compat && make) > > cc -qlanglvl=extc89 -I/opt/freeware/include/openssl/ -I/usr/local/include -qmaxmem=-1? -I. -I.. -I. -I./.. -I/opt/freeware/include -I/usr/local/lib/libwrap.a? -DHAVE_CONFIG_H -c bsd-arc4random.c > >"../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. > >"../openbsd-compat/port-aix.h", line 94.69: 1506-046 (S) Syntax error. > >make: 1254-004 The error code from the last command is 1. > >Stop. > >make: 1254-004 The error code from the last command is 2. > > > >Stop. > > I don't undestand why this error. Could you help or provides some advices? > Thanks.If we look at lines 92 & 94 we see int sys_auth_allowed_user(struct passwd *, Buffer *); int sys_auth_record_login(const char *, const char *, const char *, Buffer *); So the question is why is it choking on Buffer? Try cc -E to see what the preprocessor makes of all the headers and source. -- Tim Rice Multitalents (707) 887-1469 tim at multitalents.net
phoebus phoebus
2010-Feb-18 23:07 UTC
"../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. openssh-5.3p1 on aix 5.3
Tim, The junk file is not in attachment because is too big. i found occurences for line 92 into junk file at: * line 2544 to 2555 #line 92 "/usr/include/time.h" struct tm { int tm_sec; int tm_min; int tm_hour; int tm_mday; int tm_mon; int tm_year; int tm_wday; int tm_yday; int tm_isdst; }; * line 2939 to 2944 #line 92 int sys_auth_allowed_user(struct passwd *, Buffer *); int sys_auth_record_login(const char *, const char *, const char *, Buffer *); char *sys_auth_get_lastlogin_msg(const char *, uid_t); * line 4617 to 4636 #line 92 int RAND_set_rand_method(const RAND_METHOD *meth); const RAND_METHOD *RAND_get_rand_method(void); int RAND_set_rand_engine(ENGINE *engine); RAND_METHOD *RAND_SSLeay(void); void RAND_cleanup(void ); int RAND_bytes(unsigned char *buf,int num); int RAND_pseudo_bytes(unsigned char *buf,int num); void RAND_seed(const void *buf,int num); void RAND_add(const void *buf,int num,double entropy); int RAND_load_file(const char *file,long max_bytes); int RAND_write_file(const char *file); const char *RAND_file_name(char *file,size_t num); int RAND_status(void); int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes); int RAND_egd(const char *path); int RAND_egd_bytes(const char *path,int bytes); int RAND_poll(void); i found occurence for line 94 into junk files at: * line 325 to 341 #line 94 typedef int pdtx_t; typedef short psx_t; typedef ushort_t pshift_t; typedef ushort_t sshift_t; typedef int unidx_t; typedef int snidx_t; typedef int vmnodeidx_t; typedef int kvpn_t; typedef int krpn_t; typedef int32long64_t vmsize_t; typedef int32long64_t vmm_lock_t; * line 3238 to 3252 #line 94 extern size_t __getmbcurmax (void); extern int __getmaxdispwidth (void); * line 4009 to 4010 #line 94 } ; What the next step ! Regards, Phoebus ----- Message d'origine ---- De : Tim Rice <tim at multitalents.net> ? : openssh-unix-dev at mindrot.org Envoy? le : Jeu 18 F?vrier 2010, 18 h 41 min 24 s Objet : Re: Re : "../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. openssh-5.3p1 on aix 5.3 On Thu, 18 Feb 2010, phoebus phoebus wrote:> Tim,> I tryed "cc -E" but i don't have more information in the ouput. To pass the argument to the preprocessor, i used the varaibale CPP="cc -E" > I put in attachment the logs. > > How can i find what it makes on of all the headers and source ?$ cd openbsd-compat # cc -qlanglvl=extc89 -I/opt/freeware/include/openssl/ \ -I/usr/local/include -qmaxmem=-1 -I. -I.. -I. -I./.. \ -I/opt/freeware/include -I/usr/local/lib/libwrap.a -DHAVE_CONFIG_H \ -E bsd-arc4random.c > junk Now look at junk and see whrere Buffer is defined.> Regards, > Phoebus > > ----- Message d'origine ---- > [snip] > > > (cd openbsd-compat && make) > > > cc -qlanglvl=extc89 -I/opt/freeware/include/openssl/ -I/usr/local/include -qmaxmem=-1 -I. -I.. -I. -I./.. -I/opt/freeware/include -I/usr/local/lib/libwrap.a -DHAVE_CONFIG_H -c bsd-arc4random.c > > >"../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. > > >"../openbsd-compat/port-aix.h", line 94.69: 1506-046 (S) Syntax error. > > >make: 1254-004 The error code from the last command is 1. > > >Stop. > > >make: 1254-004 The error code from the last command is 2. > > > > > >Stop. > > > > I don't undestand why this error. Could you help or provides some advices? > > Thanks. > > If we look at lines 92 & 94 we see > int sys_auth_allowed_user(struct passwd *, Buffer *); > int sys_auth_record_login(const char *, const char *, const char *, Buffer *); > So the question is why is it choking on Buffer? > > Try cc -E to see what the preprocessor makes of all the headers and source. >-- Tim Rice Multitalents (707) 887-1469 tim at multitalents.net
phoebus phoebus
2010-Feb-19 21:20 UTC
"../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. openssh-5.3p1 on aix 5.3
Hi Eric, I opened a PMR to IBM support. At this time, the support doesn't provide a solution. My case have been escalated and support will get back to me soon (i think for the middle of the next week). I hope there are no copyright protection or others disclosure agreement for these libraries !! Regards, Frphoebus ________________________________ De : Eric Halcik <ehalcik at yahoo.com> ? : phoebus phoebus <frphoebus at yahoo.fr> Envoy? le : Ven 19 F?vrier 2010, 21 h 41 min 38 s Objet : Re: Re : Re : Re : Re : Re : "../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. openssh-5.3p1 on aix 5.3 Pleasew forgive the intrusion... Have you tried opening a ticket with IBM support about the package that contains the libraries you are looking for? Regards Eric ________________________________ From: phoebus phoebus <frphoebus at yahoo.fr> To: Darren Tucker <dtucker at zip.com.au> Cc: openssh-unix-dev at mindrot.org Sent: Fri, February 19, 2010 7:57:00 AM Subject: Re : 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, ca06:/# lslpp -L -b'Kerberos_5' Fileset Level State Type Description (Uninstaller) ---------------------------------------------------------------------------- krb5.client.rte 1.4.0.8 C F Network Authentication Service Client ca06:/# lslpp -L krb5.* Fileset Level State Type Description (Uninstaller) ---------------------------------------------------------------------------- krb5.client.rte 1.4.0.8 C F Network Authentication Service Client krb5.client.samples 1.4.0.8 C F Network Authentication Service Samples krb5.doc.en_US.html 1.4.0.8 C F Network Auth Service HTML Documentation - U.S. English krb5.doc.en_US.pdf 1.4.0.8 C F Network Auth Service PDF Documentation - U.S. English krb5.msg.en_US.client.rte 1.4.0.8 C F Network Auth Service Client Msgs - U.S. English krb5.toolkit.adt 1.4.0.8 C F Network Authentication Service App. Dev. Toolkit I don't find these library. There aren't included in the fileset kbr5.server.rte. In attachement the listing of the filesets (filesetKbr5.txt) installed. FYI: packages inclsdes in the AIX Expansion pack are listed in the file ExpansionPackAix53-112008.txt (screen copy from smit). I don't know how to find the IBM libraries and i don't sure is possible to use MIT kb5 library for the compilation in AIX platfrom. Regards, Frphoebus ----- 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, 12 h 39 min 43 s Objet : Re: Re : Re : Re : Re : "../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. openssh-5.3p1 on aix 5.3 phoebus phoebus wrote:> 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 >[...]> 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.I would guess either the native kerberos doesn't have the library files openssh is looking for, or they're located someplace the linker can't find them. Can you list the files in the kerberos filesets (I vaguely recall "lslpp -l" but it's been a while) and does it contain the libk5crypto and libcom_err files? If so, where? -- 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.
phoebus phoebus
2010-Feb-22 23:08 UTC
"../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. openssh-5.3p1 on aix 5.3
Hi Eric, Do you locate the libraries on your dev box ? Regards, Frphoebus ________________________________ De : Eric Halcik <ehalcik at yahoo.com> ? : phoebus phoebus <frphoebus at yahoo.fr> Envoy? le : Ven 19 F?vrier 2010, 22 h 37 min 02 s Objet : Re: Re : Re : Re : Re : Re : Re : "../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. openssh-5.3p1 on aix 5.3 Hmm.. I've usually had really good luck with support.. Did you set it as a level 3? They don't seem to handle those with the same urgency ( as I'm sure you already know, sorry) Let me take a peek at one of my dev boxes to see if I can locate that lib Regards Eric ________________________________ From: phoebus phoebus <frphoebus at yahoo.fr> To: Eric Halcik <ehalcik at yahoo.com> Cc: openssh-unix-dev at mindrot.org Sent: Fri, February 19, 2010 4:20:19 PM Subject: Re : Re : Re : Re : Re : Re : "../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. openssh-5.3p1 on aix 5.3 Hi Eric, I opened a PMR to IBM support. At this time, the support doesn't provide a solution. My case have been escalated and support will get back to me soon (i think for the middle of the next week). I hope there are no copyright protection or others disclosure agreement for these libraries !! Regards, Frphoebus ________________________________ De : Eric Halcik <ehalcik at yahoo.com> ? : phoebus phoebus <frphoebus at yahoo.fr> Envoy? le : Ven 19 F?vrier 2010, 21 h 41 min 38 s Objet : Re: Re : Re : Re : Re : Re : "../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. openssh-5.3p1 on aix 5.3 Pleasew forgive the intrusion... Have you tried opening a ticket with IBM support about the package that contains the libraries you are looking for? Regards Eric ________________________________ From: phoebus phoebus <frphoebus at yahoo.fr> To: Darren Tucker <dtucker at zip.com.au> Cc: openssh-unix-dev at mindrot.org Sent: Fri, February 19, 2010 7:57:00 AM Subject: Re : 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, ca06:/# lslpp -L -b'Kerberos_5' Fileset Level State Type Description (Uninstaller) ---------------------------------------------------------------------------- krb5.client.rte 1.4.0.8 C F Network Authentication Service Client ca06:/# lslpp -L krb5.* Fileset Level State Type Description (Uninstaller) ---------------------------------------------------------------------------- krb5.client.rte 1.4.0.8 C F Network Authentication Service Client krb5.client.samples 1.4.0.8 C F Network Authentication Service Samples krb5.doc.en_US.html 1.4.0.8 C F Network Auth Service HTML Documentation - U.S. English krb5.doc.en_US.pdf 1.4.0.8 C F Network Auth Service PDF Documentation - U.S. English krb5.msg.en_US.client.rte 1.4.0.8 C F Network Auth Service Client Msgs - U.S. English krb5.toolkit.adt 1.4.0.8 C F Network Authentication Service App. Dev. Toolkit I don't find these library. There aren't included in the fileset kbr5.server.rte. In attachement the listing of the filesets (filesetKbr5.txt) installed. FYI: packages inclsdes in the AIX Expansion pack are listed in the file ExpansionPackAix53-112008.txt (screen copy from smit). I don't know how to find the IBM libraries and i don't sure is possible to use MIT kb5 library for the compilation in AIX platfrom. Regards, Frphoebus ----- 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, 12 h 39 min 43 s Objet : Re: Re : Re : Re : Re : "../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. openssh-5.3p1 on aix 5.3 phoebus phoebus wrote:> 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 >[...]> 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.I would guess either the native kerberos doesn't have the library files openssh is looking for, or they're located someplace the linker can't find them. Can you list the files in the kerberos filesets (I vaguely recall "lslpp -l" but it's been a while) and does it contain the libk5crypto and libcom_err files? If so, where? -- 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.
Apparently Analagous Threads
- dirty hack to solve: 0509-150 Dependent module libcrypto.a(libcrypto.so.0.9.7) could not be loaded
- : "../openbsd-compat/port-aix.h", line 92.44: 1506-046 (S) Syntax error. openssh-5.3p1 on aix 5.3
- Call for testing: OpenSSH 6.8
- OpenSSH ver.8.2p1 compilation error on AIX
- Call for testing: OpenSSH 6.7