Hi Greeting:

          Problem is solved. It's the directive I added in the Makefile.in 
file. 
          I blindly followed "CPPFLAGS= $(TOP_INCLUDES) -I. $(AGENT_INCLUDES) 
$(MIBGROUP_INCLUDES) \
        $(SNMPLIB_INCLUDES) -I$(ATM_INC_DIR) @CPPFLAGS@ $(LIB_CFLAGS)" to add 
my INC_DIR without the -I. After the adding of the -I the problem went away.
          Sorry for the call earlier. 

          grep SNMPLIB_INCLUDES *
          Makefile.in:        $(SNMPLIB_INCLUDES) @CPPFLAGS@ $(LIB_CFLAGS)
          Makefile:SRC_SNMPLIB_INCLUDES        = -I$(top_srcdir)/snmplib
Makefile:BLD_SNMPLIB_INCLUDES        = -I$(top_builddir)/snmplib 
$(SRC_SNMPLIB_INCLUDES)
Makefile:SNMPLIB_INCLUDES        = $(SRC_SNMPLIB_INCLUDES)

All the directives used in Makefile.in has "-I" specified in the source 
definition in Makefile.

Regards,
-Jim
-----Original Message-----
From: Jim Su [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 01, 2005 11:54 AM
To: Net-Snmp-Users
Subject: compilation error in 5.2.2

Hi Greeting:

   In compiling the latest net-snmp release 5.2.2 I got the following errors.
   I compared the configure options and the Makefile.in I used in release 
5.1.2. There is no difference. And there is no such compilation error in 5.1.2.
I am not sure what had caused the compiling error. Is a different gcc version 
required? Or a different usage of  "-g -O2 "option?
   Any pointer is highly appreciated.

Thanks,
Jim

  ###################

  gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib 
/home/jim/prod/ATM/Src/include -g -O2 -DATM_VERSION=421 -Dlinux -c 
mibII/system_mib.c  -fPIC -DPIC -o mibII/.libs/system_mib.lo
gcc: cannot specify -o with -c or -S and multiple compilations
make[2]: *** [mibII/system_mib.lo] Error 1
make[2]: Leaving directory 
`/home/jim/prod/ATM/Src/snmp_agent/net_snmp/agent/mibgroup'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/home/jim/prod/ATM/Src/snmp_agent/net_snmp/agent'
make: *** [subdirs] Error 1

  ######################

--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 2005/11/30

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.362 / Virus Database: 267.13.10/189 - Release Date: 2005/11/30
 

Reply via email to