[NTLUG:Discuss] Perl Net::SSLeay compile error - gcc VS CC ??
Victor Brilon
victor at vail.net
Sat Jul 13 10:13:52 CDT 2002
Looks like you're missing the header files necessary to compile this (or
pretty much anything for that matter). I am not familiar with Slackware
package management, but you need to have whatever package includes all
the glibc libraries and headers.
Check to see if you do have /usr/include/sys/types.h for example. If you
do, then it mean for whatever reason, then your compiler isn't finding
it and you can pick up the problem from there.
Victor
Richard Geoffrion wrote:
> Can someone explain to me why I occasionally have issues compiling the
> NetSSLeay modules on Slackware? Sometimes it works and other times it
> doesn't.
>
> I've checked the paths and the files are there! I don't understand why the
> ':' colon is apended to the filename but at anyrate, this has before and
> should work!
>
> In case anyone wants to get the file its at
> http://www.cpan.org/modules/by-module/Net/Net_SSLeay.pm-1.17.tar.gz
>
> As soon as I can get this compiled, I can enable encryption on a webmin
> (www.webmin.com) installation.
>
> Thanks
> -Richard
>
> [snipable log results of a failed compile]
> /usr/src/Net_SSLeay.pm-1.17# ./Makefile.PL -t
> Checking for OpenSSL-0.9.6d or newer...
> You have OpenSSL-0.9.6d installed in /usr
> *** /usr/bin/openssl appears to be compiled with gcc
> (gcc -fPIC -DTHREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DNO_MDC2 -DNO_
> IDEA -DNO_RC5 -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -march=i386 -mcpu
> =i686 -Wall -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
> ) while perl is compiled with cc. Both must be compiled with the same
> compiler and flags. Mixing and matching compilers is not supported. at
> ./Makefile.PL line 129.
> Checking if your kit is complete...
> Looks good
> Checking if your kit is complete...
> Looks good
> Writing Makefile for Net::SSLeay::Handle
> Writing Makefile for Net::SSLeay
> cp ptrtstrun.pl blib/lib/Net/ptrtstrun.pl
> cp SSLeay.pm blib/lib/Net/SSLeay.pm
> AutoSplitting blib/lib/Net/SSLeay.pm (blib/lib/auto/Net/SSLeay)
> blib/lib/Net/SSLeay.pm: some names are not unique when truncated to 8
> characters:
> directory blib/lib/auto/Net/SSLeay:
> do_https3.al, do_https2.al, do_https4.al, do_https.al truncate to do_https
> get_https.al, get_https3.al, get_https4.al truncate to get_http
> head_https.al, head_https3.al, head_https4.al truncate to head_htt
> post_https.al, post_https3.al, post_https4.al truncate to post_htt
> put_https.al, put_https3.al, put_https4.al truncate to put_http
> ssl_read_all.al, ssl_read_until.al, ssl_read_CRLF.al truncate to ssl_read
> ssl_write_all.al, ssl_write_CRLF.al truncate to ssl_writ
> make[1]: Entering directory
> `/usr/src/Net_SSLeay.pm-1.17/Net-SSLeay-Handle-0.50'
> cp Handle.pm ../blib/lib/Net/SSLeay/Handle.pm
> Manifying ../blib/man3/Net::SSLeay::Handle.3
> make[1]: Leaving directory
> `/usr/src/Net_SSLeay.pm-1.17/Net-SSLeay-Handle-0.50'
> /usr/bin/perl -I/usr/lib/perl5/i386-linux -I/usr/lib/perl5
> /usr/lib/perl5/ExtUtils/xsubpp -typemap
> /usr/lib/perl5/ExtUtils/typemap -typemap typemap SSLeay.xs > SSLeay.xsc &&
> mv SSLeay.xsc SSLeay.c
> cc -c -I/usr/include -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_
> SOURCE -D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.17\" -DXS_VERSION=\"1.17\"
> -fPIC -I/usr/lib/perl5/i386-linux/CORE SSLeay.c
> In file included from SSLeay.xs:61:
> /usr/lib/perl5/i386-linux/CORE/perl.h:426: sys/types.h: No such file or
> directory
> In file included from SSLeay.xs:61:
> /usr/lib/perl5/i386-linux/CORE/perl.h:457: ctype.h: No such file or
> directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:465: locale.h: No such file or
> directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:482: setjmp.h: No such file or
> directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:488: sys/param.h: No such file or
> directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:493: stdlib.h: No such file or
> directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:498: unistd.h: No such file or
> directory
> In file included from SSLeay.xs:61:
> /usr/lib/perl5/i386-linux/CORE/perl.h:519: string.h: No such file or
> directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:649: netinet/in.h: No such file or
> directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:653: arpa/inet.h: No such file or
> directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:663: sys/stat.h: No such file or
> directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:685: time.h: No such file or directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:692: sys/time.h: No such file or
> directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:699: sys/times.h: No such file or
> directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:706: errno.h: No such file or
> directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:713: sys/socket.h: No such file or
> directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:740: netdb.h: No such file or
> directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:807: sys/ioctl.h: No such file or
> directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:830: dirent.h: No such file or
> directory
> In file included from
> /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/include/syslimits.h:7,
> from
> /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/include/limits.h:11,
> from /usr/lib/perl5/i386-linux/CORE/perl.h:1127,
> from SSLeay.xs:61:
> /usr/lib/gcc-lib/i386-slackware-linux/2.95.3/include/limits.h:117: limits.h:
> No such file or directory
> In file included from /usr/lib/perl5/i386-linux/CORE/perl.h:1527,
> from SSLeay.xs:61:
> /usr/lib/perl5/i386-linux/CORE/handy.h:118: inttypes.h: No such file or
> directory
> In file included from /usr/lib/perl5/i386-linux/CORE/perl.h:1665,
> from SSLeay.xs:61:
> /usr/lib/perl5/i386-linux/CORE/unixish.h:93: signal.h: No such file or
> directory
> In file included from /usr/lib/perl5/i386-linux/CORE/iperlsys.h:300,
> from /usr/lib/perl5/i386-linux/CORE/perl.h:1947,
> from SSLeay.xs:61:
> /usr/lib/perl5/i386-linux/CORE/perlsdio.h:5: stdio.h: No such file or
> directory
> In file included from SSLeay.xs:61:
> /usr/lib/perl5/i386-linux/CORE/perl.h:2215: math.h: No such file or
> directory
> In file included from SSLeay.xs:61:
> /usr/lib/perl5/i386-linux/CORE/perl.h:3340: sys/ipc.h: No such file or
> directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:3341: sys/sem.h: No such file or
> directory
> /usr/lib/perl5/i386-linux/CORE/perl.h:3376: sys/file.h: No such file or
> directory
> In file included from SSLeay.xs:72:
> /usr/include/openssl/err.h:63: stdio.h: No such file or directory
> /usr/include/openssl/err.h:64: stdlib.h: No such file or directory
> In file included from /usr/include/openssl/err.h:68,
> from SSLeay.xs:72:
> /usr/include/openssl/bio.h:63: stdio.h: No such file or directory
> In file included from /usr/include/openssl/bio.h:67,
> from /usr/include/openssl/err.h:68,
> from SSLeay.xs:72:
> /usr/include/openssl/crypto.h:62: stdlib.h: No such file or directory
> /usr/include/openssl/crypto.h:65: stdio.h: No such file or directory
> In file included from /usr/include/openssl/err.h:71,
> from SSLeay.xs:72:
> /usr/include/openssl/lhash.h:67: stdio.h: No such file or directory
> In file included from SSLeay.xs:72:
> /usr/include/openssl/err.h:90: errno.h: No such file or directory
> In file included from SSLeay.xs:74:
> /usr/include/openssl/rand.h:62: stdlib.h: No such file or directory
> In file included from /usr/include/openssl/rsa.h:65,
> from /usr/include/openssl/evp.h:127,
> from /usr/include/openssl/x509.h:67,
> from /usr/include/openssl/ssl.h:122,
> from SSLeay.xs:76:
> /usr/include/openssl/bn.h:63: stdio.h: No such file or directory
> In file included from /usr/include/openssl/objects.h:960,
> from /usr/include/openssl/evp.h:138,
> from /usr/include/openssl/x509.h:67,
> from /usr/include/openssl/ssl.h:122,
> from SSLeay.xs:76:
> /usr/include/openssl/asn1.h:62: time.h: No such file or directory
> make: *** [SSLeay.o] Error 1
> [/log]
>
>
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>
More information about the Discuss
mailing list