develooper Front page | perl.perl5.porters | Postings from February 2001

Perl 5.6.x/5.7.x and glibc 2.2.x

Thread Previous | Thread Next
From:
Randy Yarger
Date:
February 2, 2001 09:34
Subject:
Perl 5.6.x/5.7.x and glibc 2.2.x
Message ID:
3A7AEF7E.9040206@mediaone.net
Hello,

I am getting errors compiling both Perl 5.6.0 and Perl 5.7.0. I just 
upgraded my glibc to 2.2.1 (compiled from source), so I think that it 
may be the culprit. The error output is below. A rough check seems to 
indicate that some of the function signatures for the network functions 
changed in glibc 2.2.1. If so, I should be able to patch Perl fairly 
quickly to fix this. I wanted to see if anyone had already 
encountered/solved this problem before I dig too deep.

This is the error output:
pp_sys.c: In function `Perl_pp_sysread':
pp_sys.c:1526: incompatible type for argument 5 of `recvfrom'
pp_sys.c: In function `Perl_pp_send':
pp_sys.c:1716: incompatible type for argument 5 of `sendto'
pp_sys.c: In function `Perl_pp_bind':
pp_sys.c:2208: incompatible type for argument 2 of `bind'
pp_sys.c: In function `Perl_pp_connect':
pp_sys.c:2246: incompatible type for argument 2 of `connect'
pp_sys.c: In function `Perl_pp_accept':
pp_sys.c:2315: incompatible type for argument 2 of `accept'
pp_sys.c: In function `Perl_pp_getpeername':
pp_sys.c:2483: incompatible type for argument 2 of `getsockname' 
pp_sys.c:2487: incompatible type for argument 2 of `getpeername' make: 
*** [pp_sys.o] Error 1

Thanks!
-Randy Yarger
ryarger@mediaone.net

Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration: 
  Platform:
   osname=linux, osvers=2.4.0, archname=i686-linux
   uname='linux nic-xxx-xxxx-xxx.mw.mediaone.net 2.4.0 #2 wed jan 24 
14:02:47 est 2001 i686 unknown '
   config_args=''
   hint=recommended, useposix=true, d_sigaction=define
   usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
   useperlio=undef d_sfio=undef uselargefiles=define
   use64bitint=undef use64bitall=undef uselongdouble=define 
usesocks=undef   Compiler:
   cc='cc', optimize='-O2', gccversion=2.95.3 19991030 (prerelease)     
cppflags='-fno-strict-aliasing -I/usr/local/include'
   ccflags ='-fno-strict-aliasing -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
   stdchar='char', d_stdstdio=define, usevfork=false
   intsize=4, longsize=4, ptrsize=4, doublesize=8
   d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12   
  ivtype='long', ivsize=4, nvtype='long double', nvsize=12,
Off_t='off_t', lseeksize=8
   alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
   ld='cc', ldflags =' -L/usr/local/lib'
   libpth=/usr/local/lib /lib /usr/lib
   libs=-lnsl -lndbm -lgdbm -ldb -ldl -lm -lc -lcrypt
   libc=/lib/libc-2.2.1.so, so=so, useshrplib=true, libperl=libperl.so   
Dynamic Linking:
   dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic 
-Wl,-rpath,/usr/lib/perl5/5.6.0/i686-linux/CORE'
   cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'


> 



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About