Subject: libssh2-1.8.0 Compilation failed on Z/OS V2R1

libssh2-1.8.0 Compilation failed on Z/OS V2R1

From: Manikandan J <jmani.20_at_gmail.com>
Date: Fri, 2 Nov 2018 21:13:19 +0530

Hi,

We have compiled the libssh2-1.8.0 source on windows & Linux platform. It
is working fine. But when we try to compile the same on Z/OS V2R1 platform,
got the following error message,

Failure is happening while the configuration particularly while creating
*./config.status*

*checking whether `alloca.c' needs Cray hooks... no*
*checking stack direction for C alloca... -1*
*checking for an ANSI C-conforming const... yes*
*checking for inline... __inline__*
*checking non-blocking sockets style... O_NONBLOCK*
*checking that generated files are newer than configure... done*
*configure: creating ./config.status*
*./configure 20275: FSUM7330 << unclosed*
*gmake[1]: *** [../libssh2-1.8.0/Makefile] Error 1*
*gmake[1]: Target `all' not remade because of errors.*

We have used the below c89 compiler options for the compilation,

LPATHIDX=0

ARGS[0]="c89"
ARGS[1]="-Wc,target(zOSV2R1),langlvl(extended),halton(CCN3296),longname,rent,enum(int),float(ieee),noansialias,exportall,dll,xplink,norostring"
ARGS[2]="-Wl,compat=ZOSV2R1,xplink"
ARGS[3]="-D_XOPEN_SOURCE=600"
ARGS[4]="-D_XOPEN_SOURCE_EXTENDED"
ARGS[5]="-D_LARGEFILE_SOURCE"
ARGS[6]="-D_LARGEFILE64_SOURCE"
ARGS[7]="-DMVS"
ARGS[8]="-D_OE_SOCKETS"
ARGS[9]="-O2"
ARGIDX=${#ARGS[@]}

Please help me to resolve this.
Thanks in advance!!!

-- 
*Thanks and Regards,*
*Manikandan J  *
*Please consider Environment before printing this Email.*

_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2018-11-02