[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling problem on AIX


Hi Robin,

we compile libssh for z/OS / USS and AIX. On AIX, we use gcc. So I
cannot help you regarding xlc on AIX specifically. However, we use a
custom makefile and c99 (xlc) to compile libssh on z/OS and USS.

Here is an example call for compiling on USS:
> c99 -q32 -Wc,goff -Wc,dll -qexportall -qarch=8 -qtune=10 -qtarget=zOSV1R13 -D_XOPEN_SOURCE=600 -DLIBSSH_EXPORTS -D_LARGEFILE64_SOURCE -DNI_MAXHOST=1025 -O3 -DNDEBUG -D__EBCDIC__ -Ilibssh/include -Ibin/ussz31/openssl/include -o build/ussz31/libssh/messages.o -c libssh/src/messages.c

I think, the xlc executable expects C89 source code by default, which
explains your issue with double slash comments. libssh requires C99.

Regards,
Tilo

Am 19.07.2017 um 12:47 schrieb Robin Geffroy:
> Hi,
> 
> I work with libssh, and I have to make it work with a lot of different
> OSes. On Windows / Linux, no problem. But here I am on AIX, and I am
> unable to make it work :(
> 
> I have to use the xlc compiler (XL 12.1.0 here). I got some errors with
> the C++-style comment in some files, easy to solve, but then another
> error appeared when trying to "make" :
> 
> "/path/to/openssl/openssl-1.0.2k/include/openssl/crypto.h", line 502.44:
> 1506-275 (S) Unexpected text free_func encountered.
> "/path/to/openssl/openssl-1.0.2k/include/openssl/crypto.h", line 507.47:
> 1506-275 (S) Unexpected text free_func encountered.
> "/path/to/openssl/openssl-1.0.2k/include/openssl/asn1.h", line 909.46:
> 1506-275 (S) Unexpected text free_func encountered.
> "/path/to/openssl/openssl-1.0.2k/include/openssl/asn1.h", line 1063.49:
> 1506-275 (S) Unexpected text free_func encountered.
> "/path/to/openssl/openssl-1.0.2k/include/openssl/objects.h", line
> 996.31: 1506-275 (S) Unexpected text free_func encountered.
> "/path/to/openssl/openssl-1.0.2k/include/openssl/ec.h", line 842.41:
> 1506-275 (S) Unexpected text free_func encountered.
> "/path/to/openssl/openssl-1.0.2k/include/openssl/ec.h", line 854.44:
> 1506-275 (S) Unexpected text free_func encountered.
> make: The error code from the last command is 1.
> 
> 
> Stop.
> make: The error code from the last command is 2.
> 
> 
> Stop.
> make: The error code from the last command is 2.
> 
> 
> Do you have any idea what can I do ? I don't know what's happening here.
> I tried with or without CFLAGS, and nothing seems to work. I use OpenSSL
> with other projects, and I got no problem with it...
> 
> Regards,
> 
> Robin


References:
Compiling problem on AIXRobin Geffroy <robin.geffroy@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org