Hi,
I am trying to switch from gcc 2.95.2 to gcc3.2 on Solaris8
x86.
I have a lot of problems recompiling a number of tools (vim, ddd,
...).
The problem is that now
gcc complains with:
gcc -c -DHAVE_CONFIG_H -I. -I. -I/usr/local/include
-DRL_LIBRARY_VERSION='"4.0"' -g -O readline.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
which breaks .configure files.
A common .configure structure is:
.......
if test -z "$SKIP_ATHENA" -o -z "$SKIP_MOTIF" -o -z "$SKIP_GTK";
then
cppflags_save=$CPPFLAGS
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
for ac_hdr in X11/xpm.h X11/Sunkeysym.h
do
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
echo "configure:4048: checking for $ac_hdr" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" =
set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 4053 "configure"
#include "confdefs.h"
#include <$ac_hdr>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
{ (eval echo configure:4058: \"$ac_try\") 1>&5; (eval $ac_try)
2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v
"^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
eval "ac_cv_header_$ac_safe=yes"
else
echo "$ac_err" >&5
echo "configure: failed program was:" >&5
cat conftest.$ac_ext >&5
rm -rf conftest*
eval "ac_cv_header_$ac_safe=no"
fi
rm -f conftest*
.........
Now, because of the warning this fails:
.........
.....+ test -z YES -o -z -o -z
cppflags_save= -I/usr/local/include
CPPFLAGS= -I/usr/local/include -I/usr/openwin/include
+ echo X11/xpm.h
+ sed y%./+-%__p_%
ac_safe=X11_xpm_h
+ echo checking for X11/xpm.h... \c
checking for X11/xpm.h... + echo configure:4048: checking for
X11/xpm.h
+ echo ${ac_cv_header_X11_xpm_h+set}
+ eval test "${ac_cv_header_X11_xpm_h+set}" = set
+ test = set
+ cat
#line 4053 "configure"
#include "confdefs.h"
#include <X11/xpm.h>
ac_try=$CPP $CPPFLAGS conftest.c >/dev/null 2>conftest.out
+ eval echo configure:4058: "$CPP $CPPFLAGS conftest.c
>/dev/null
2>conftest.out"
+ echo configure:4058: gcc -E -I/usr/local/include
-I/usr/openwin/include
conftest.c >/dev/null 2>conftest.out
+ grep -v ^ *+ conftest.out
+ grep -v ^conftest.c$
ac_err=cpp0: warning: changing search order for system
directory
"/usr/local/include"
cpp0: warning: as it has already been specified as a non-system
directory
+ test -z cpp0: warning: changing search order for system
directory
"/usr/local/include"
cpp0: warning: as it has already been specified as a non-system
directory
+ echo cpp0: warning: changing search order for system
directory
"/usr/local/include"
cpp0: warning: as it has already been specified as a non-system
directory
+ echo configure: failed program was:
+ cat conftest.c
+ rm -rf conftest.c conftest.out
+ eval ac_cv_header_X11_xpm_h=no
ac_cv_header_X11_xpm_h=no
+ rm -f conftest*
+ echo $ac_cv_header_X11_xpm_h
+ eval test "$ac_cv_header_X11_xpm_h" = yes
+ test no = yes
+ echo no
no
....
Regards
Andrej
_______________________________________________
Bug-ddd mailing list
Bug-ddd@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-ddd