develooper Front page | perl.perl5.porters | Postings from May 2002

gcc 3.1 problems

Thread Next
From:
Rafael Garcia-Suarez
Date:
May 27, 2002 02:31
Subject:
gcc 3.1 problems
Message ID:
3CF1FBF4.1040208@hexaflux.com
There's this new annoying gcc 3.1 warning, "changing search order
for system directory...", that now makes bleadperl fail to build on
one of my linux machines, since I've created a /usr/local/include
directory :

[...]
`sh  cflags "optimize='-O3'" pp_sys.o`  pp_sys.c
           CCCMD =  /opt/gcc31/bin/gcc31 -DPERL_CORE -c -fno-strict-aliasing -I/usr/local/include 
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O3 -Wall
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
pp_sys.c: In function `Perl_pp_sysread':
pp_sys.c:1608: incompatible type for argument 5 of `recvfrom'
pp_sys.c: In function `Perl_pp_send':
pp_sys.c:1874: incompatible type for argument 5 of `sendto'
pp_sys.c: In function `Perl_pp_bind':
pp_sys.c:2403: incompatible type for argument 2 of `bind'
pp_sys.c: In function `Perl_pp_connect':
pp_sys.c:2441: incompatible type for argument 2 of `connect'
pp_sys.c: In function `Perl_pp_accept':
pp_sys.c:2508: incompatible type for argument 2 of `accept'
pp_sys.c: In function `Perl_pp_getpeername':
pp_sys.c:2688: incompatible type for argument 2 of `getsockname'
pp_sys.c:2692: incompatible type for argument 2 of `getpeername'
make: *** [pp_sys.o] Error 1

I've no idea why gcc complains about these prototypes. My /usr/local/include
contains only the header files for the GD library.

The obvious and brute-force fix is to prevent -I/usr/local/include to be
passed to gcc, by passing "-Dlocincpth=' '" to Configure. With this option,
I can build bleadperl without warnings.

-- 
Rafael Garcia-Suarez


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