[Ssh-sftp-perl-users] Problems Building Net::SSH2 on RH AS3 U4
Brought to you by:
dbrobins
From: Rhugga H. <rh...@gm...> - 2005-11-07 18:14:42
|
I am having trouble building Net::SSH2 0.03 on a RH AS3U4 system. First I tried using the default openssl lib. I then built a copy of openssl-0.9.8a into /usr/local/openssl-0.9.8a. I then built libssh2 using this new openssl dir: adcinfops02:/usr/local/lib #ldd libssh2.so /etc/libcwait.so =3D> /etc/libcwait.so (0x5501c000) libcrypto.so.0.9.8 =3D> /usr/local/openssl-0.9.8a/lib/libcrypto.so.0.9.8 (0x5501e000) libz.so.1 =3D> /usr/lib/libz.so.1 (0x55140000) libm.so.6 =3D> /lib/tls/libm.so.6 (0x5514e000) libc.so.6 =3D> /lib/tls/libc.so.6 (0x55170000) libdl.so.2 =3D> /lib/libdl.so.2 (0x552a8000) /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0xf65e9000) I then also made sure the following were defined in LDFLAGS and CPPFLAGS: "-L/usr/local/openssl-0.9.8a/lib -L/usr/local/lib" and "-I/usr/local/openssl-0.9.8a/include/openssl -I/usr/local/include". (This accounts for all ssl related header and lib files) However, when I do 'perl Makefile.PL && make' It dies with this: adcinfops02:/var/spool/cpan/build/Net-SSH2-0.03 #perl Makefile.PL Net::SSH2: using library -L/usr/local/lib -lssh2 and include path -I/usr/local/include. Writing Makefile for Net::SSH2 adcinfops02:/var/spool/cpan/build/Net-SSH2-0.03 #make gcc -c -I/usr/local/openssl-0.9.8a/include/openssl -I/usr/local/include -I. -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -I/usr/include/gdbm -O2 -g -pipe -march=3Di386 -mcpu=3Di686 -DVERSION=3D\"0.03\" -DXS_VERSION=3D\"0.03\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" SSH2.c SSH2.xs: In function `XS_Net__SSH2__startup': SSH2.xs:670: parse error before `int' SSH2.xs:671: `success' undeclared (first use in this function) SSH2.xs:671: (Each undeclared identifier is reported only once SSH2.xs:671: for each function it appears in.) SSH2.c: In function `XS_Net__SSH2_channel': SSH2.c:1342: parse error before `*' SSH2.c:1342: `nsv' undeclared (first use in this function) SSH2.c:1342: parse error before `)' SSH2.c:1345: `gv' undeclared (first use in this function) SSH2.c:1346: `io' undeclared (first use in this function) SSH2.c:1347: `RETVAL' undeclared (first use in this function) SSH2.c:1348: `name' undeclared (first use in this function) SSH2.c: At top level: SSH2.c:1354: parse error before `void' SSH2.c: In function `XS_Net__SSH2__scp_get': SSH2.c:1399: parse error before `*' SSH2.c:1399: `nsv' undeclared (first use in this function) SSH2.c:1399: parse error before `)' SSH2.c:1402: `gv' undeclared (first use in this function) SSH2.c:1403: `io' undeclared (first use in this function) SSH2.c:1404: `RETVAL' undeclared (first use in this function) SSH2.c:1405: `name' undeclared (first use in this function) SSH2.c: At top level: SSH2.c:1411: parse error before `void' SSH2.c: In function `XS_Net__SSH2__scp_put': SSH2.c:1451: parse error before `*' SSH2.c:1451: `nsv' undeclared (first use in this function) SSH2.c:1451: parse error before `)' SSH2.c:1454: `gv' undeclared (first use in this function) SSH2.c:1455: `io' undeclared (first use in this function) SSH2.c:1456: `RETVAL' undeclared (first use in this function) SSH2.c:1457: `name' undeclared (first use in this function) SSH2.c: At top level: SSH2.c:1463: parse error before `void' SSH2.c: In function `XS_Net__SSH2_tcpip': SSH2.c:1505: parse error before `*' SSH2.c:1505: `nsv' undeclared (first use in this function) SSH2.c:1505: parse error before `)' SSH2.c:1508: `gv' undeclared (first use in this function) SSH2.c:1509: `io' undeclared (first use in this function) SSH2.c:1510: `RETVAL' undeclared (first use in this function) SSH2.c:1511: `name' undeclared (first use in this function) SSH2.c: At top level: SSH2.c:1517: parse error before `void' SSH2.c: In function `XS_Net__SSH2__Listener_accept': SSH2.c:2269: parse error before `*' SSH2.c:2269: `nsv' undeclared (first use in this function) SSH2.c:2269: parse error before `)' SSH2.c:2272: `gv' undeclared (first use in this function) SSH2.c:2273: `io' undeclared (first use in this function) SSH2.c:2274: `RETVAL' undeclared (first use in this function) SSH2.c:2275: `name' undeclared (first use in this function) SSH2.c: At top level: SSH2.c:2281: parse error before `void' SSH2.c: In function `XS_Net__SSH2__SFTP_open': SSH2.c:2454: parse error before `*' SSH2.c:2454: `nsv' undeclared (first use in this function) SSH2.c:2454: parse error before `)' SSH2.c:2457: `gv' undeclared (first use in this function) SSH2.c:2458: `io' undeclared (first use in this function) SSH2.c:2459: `RETVAL' undeclared (first use in this function) SSH2.c:2460: `name' undeclared (first use in this function) SSH2.c: At top level: SSH2.c:2466: parse error before `void' make: *** [SSH2.o] Error 1 I'm sur eits something obvious but it eludes me at this point. Anyone have any suggestions? Thanks CC |