Problem building OpenSSH-3.8p1 on AIX 4.2.1 and 4.3.3 systems

Alexey Bozrikov bozy at fgm.com.cy
Mon Aug 2 21:57:45 EST 2004


Dear Sirs,

just tried to compile openssh-3.8p1 on two IBM RS6000 boxes (models 390 and
F50) having AIX 4.2.1.0 and AIX 4.3.3.11 (all maintenance levels
applied). I use IBM 'XLC' compiler version 3.1 (xlC.C 3.1.4.0 with
xcC.rte 4.0.2.0 and xlC.aix43.rte 4.0.2.1). On both machines there was a
slight problem when compiling, because both <utmp.h> and <utmpx.h> files
were included, resulting in duplicate definition of some variables. This
is quote from './configure' output:

configure:16988: xlc_r -c -O2 -I/usr/local/ssl/include -I/usr/local/include  conftest.c >&5
"/usr/include/utmpx.h", line 90.8: 1506-334 (S) Identifier utmp_data has already been defined on line 90 of "/usr/include/utmp.h".
"configure", line 16981.16: 1506-045 (S) Undeclared identifier UTMPX_FILE.

I am not sure how this should be done properly, so I just commented out
these three lines in 'includes.h':

#ifdef HAVE_UTMP_H
#  include <utmp.h>
#endif

After this (rude) change everything compiled and built fine and seems to work OK.
There is no such problem on AIX 5.1 L systems with either IBM Visual Age
C 6.0 or gcc-3.3.3 - everything compiles and builds 'out of the box'.

Kind regards

Alexey




** When it rains, it pours.




More information about the openssh-unix-dev mailing list