GCC-3.1 final

Michael Brömer mib at telebel.de
Fri May 17 09:22:54 PDT 2002


Am Freitag, 17. Mai 2002 17:45 schrieben Sie:

>
> I havn't tried it, but from the code above, try
>
> export CPPFLAGS="$CPPFLAGS -I/usr/include"
> configure...
>
> That should put the search directories to /usr/include before
> /usr/local/include.
>

I have tried that, did not work. When i do so, i get lots of
warnings like the this

> configure:2590: gcc -o conftest -g -O2  -I/usr/include -I/usr/local/include  
> -L/
> usr/local/lib conftest.c  1>&5
> cc1: warning: changing search order for system directory 
> "/usr/local/include"
> cc1: warning:   as it has already been specified as a non-system directory
> cc1: warning: changing search order for system directory "/usr/include"
> cc1: warning:   as it has already been specified as a non-system directory

And compilation bombs out with

>make[1]: Wechsel in das Verzeichnis Verzeichnis 
>»/home/mib/usr/src/vim61/src«
>gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  
>-I/usr/local/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include 
>-I/usr/X11R6/include -I/usr/include -I/usr/local/include  -g -O2  
>-I/usr/X11R6/include       -o objects/buffer.o buffer.c
>cc1: warning: changing search order for system directory "/usr/local/include"
>cc1: warning:   as it has already been specified as a non-system directory
>cc1: warning: changing search order for system directory "/usr/include"
>cc1: warning:   as it has already been specified as a non-system directory
>In file included from /usr/X11R6/include/X11/Intrinsic.h:64,
>                 from gui.h:34,
>                 from structs.h:73,
>                 from vim.h:1327,
>                 from buffer.c:29:
>/usr/include/string.h:42: conflicting types for `memmove'
>auto/osdef.h:58: previous declaration of `memmove'
>/usr/include/string.h:245: warning: conflicting types for built-in function 
>`bzero'
>/usr/include/string.h:249: warning: conflicting types for built-in function 
>`bcmp'
>/usr/include/string.h:273: conflicting types for `strcasecmp'
>auto/osdef.h:76: previous declaration of `strcasecmp'
>/usr/include/string.h:277: conflicting types for `strncasecmp'
>auto/osdef.h:79: previous declaration of `strncasecmp'
>In file included from /usr/include/bits/string2.h:1185,
>                 from /usr/include/string.h:360,
>                 from /usr/X11R6/include/X11/Intrinsic.h:64,
>                 from gui.h:34,
>                 from structs.h:73,
>                 from vim.h:1327,
>                 from buffer.c:29:
>/usr/include/stdlib.h:527: conflicting types for `malloc'
>auto/osdef.h:124: previous declaration of `malloc'
>make[1]: *** [objects/buffer.o] Fehler 1

Michael

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list