Luca: I don't think there IS a fix. It's basically a warning message that gcc is ignoring something you told it to do. On a system that doesn't have /usr/local as part of the standard include/library list, it won't occur.
AFAIK, there is no (easy) way to determine what the standard list of libraries are for cpp/gcc/ld. So you give something like /usr/local that you (may) need. If it's part of the standard lists, cpp/gcc/ld ignore your input. No worries... except the message. The problem they're going to fix is that there's no -wxxxxxxxx switch to suppress the (useless) warning message, so if you're in a Makefile (where presumable you sort of know what you're doing), there's no way to suppress the warning (other than -w which suppressess ALL warnings). So you get lots of messages, one set for each compile. Ugh... In 3.2.1 there will be a switch we can add. The note was just so there's a record in gmane and the FAQ for people who complain about the message. -----Burton ---------- Original Message ---------------------------------- From: Luca Deri <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] Date: Wed, 3 Sep 2003 09:39:54 +0200 >Burton, >I had to add that line because if gd is located via --with-gd-XXX the >rdd library also needs it so it's necessary to add such a line. However >I understand the problem you reported. I;m away at the moment so I >cannot really test a fix. I'll do that once back. > >Cheers, Luca > > >On Mercoled�, settembre 3, 2003, at 01:47 AM, Burton M. Strauss III >wrote: > >> Hey Luca: >> >> One thing to document... this change: >> >> --- Makefile.in 7 Aug 2003 13:21:51 -0000 1.4 >> +++ Makefile.in 28 Aug 2003 13:19:49 -0000 1.5 >> @@ -14,7 +14,7 @@ >> ar rs $(LIBRRD) $(OBJECTS) >> >> .c.o: >> - $(CC) -c -g -I. -I.. @INCS@ -DHAVE_CONFIG_H $< >> + $(CC) -c @CFLAGS@ -I. -I.. @INCS@ -DHAVE_CONFIG_H $< >> >> clean: >> /bin/rm -f $(OBJECTS) $(LIBRRD) >> >> Is causing a number of warning messages: >> >> gcc -c -g -O2 -I/usr/local/include -Wshadow -Wpointer-arith >> -Wmissing-protot >> ypes -Wmissing-declarations -Wnested-externs -fPIC -I. -I.. >> -I/shared/work >> /linux/ntop/myrrd -DHAVE_CONFIG_H gdlucidan10.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 >> >> It's not a problem, just confusing. This warning, which appears if you >> redefine the system include directory, wasn't fixed in time for 3.2.0, >> but >> should be fixed in 3.2.1 - see >> http://gcc.gnu.org/ml/gcc-bugs/2002-10/msg01080.html >> >> According to this: >> http://gcc.gnu.org/onlinedocs/cpp/Invocation.html#Invocation, it's >> truly >> harmless on systems which already have /usr/local/include as a standard >> system library: >> >> -I dir >> Add the directory dir to the list of directories to be searched for >> header >> files. See Search Path. Directories named by -I are searched before the >> standard system include directories. If the directory dir is a standard >> system include directory, the option is ignored to ensure that the >> default >> search order for system directories and the special treatment of system >> headers are not defeated (see System Headers) . >> >> -----Burton >> >> >> >> -----Original Message----- >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf >> Of [EMAIL PROTECTED] >> Sent: Thursday, August 28, 2003 8:20 AM >> To: [EMAIL PROTECTED] >> Subject: [Ntop-dev] New ntop commit (author deri) >> >> >> Update of /export/home/ntop/ntop/myrrd >> In directory jabber:/tmp/cvs-serv12763 >> >> Modified Files: >> Makefile.in >> Log Message: >> Added CFLAGS >> >> >> _______________________________________________ >> Ntop-dev mailing list >> [EMAIL PROTECTED] >> http://listgateway.unipi.it/mailman/listinfo/ntop-dev >> >> _______________________________________________ >> Ntop-dev mailing list >> [EMAIL PROTECTED] >> http://listgateway.unipi.it/mailman/listinfo/ntop-dev >> > >------- >Luca Deri <[EMAIL PROTECTED]> > >_______________________________________________ >Ntop-dev mailing list >[EMAIL PROTECTED] >http://listgateway.unipi.it/mailman/listinfo/ntop-dev > ____________________________________________________________ Free 20MB Web Site Hosting and Personalized E-mail Service! Get It Now At Doteasy.com http://www.doteasy.com/et/ _______________________________________________ Ntop-dev mailing list [EMAIL PROTECTED] http://listgateway.unipi.it/mailman/listinfo/ntop-dev
