Re: [bwm-tools-tech] Compilation error.... Please Help
Brought to you by:
nkukard
From: Larry S. <le...@ec...> - 2006-02-22 13:47:30
|
On Wednesday 22 February 2006 07:31, rajveer singh wrote: > Hello guys, > > Problem of "lpanel not found" has been resolved by installing > ncurses-devel packages. but now i'm facing these new errors so please if > have any idea please let me know. > > if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -pthread > -I/opt/gnome/include/glib-2.0 -I/opt/gnome/lib/glib-2.0/include =20 > -I/usr/include/libxml2 -DCONFIG_FILE=3D\"/etc/bwm_tools/firewall.xml\" > -DLOG_DIR=3D\"/var/bwm_tools\" -g -O2 -MT bwmd-autoclass.o -MD -MP -MF > ".deps/bwmd-autoclass.Tpo" -c -o bwmd-autoclass.o `test -f 'autoclass.c' = || > echo './'`autoclass.c; \ then mv -f ".deps/bwmd-autoclass.Tpo" > ".deps/bwmd-autoclass.Po"; else rm -f ".deps/bwmd-autoclass.Tpo"; exit 1; > fi autoclass.c: In function =91autoClassify_port=92: > autoclass.c:37: error: invalid storage class for function =91tcpPortToPri= o=92 > autoclass.c:87: error: invalid storage class for function =91udpPortToPri= o=92 > make[2]: *** [bwmd-autoclass.o] Error 1 > make[2]: Leaving directory `/tmp/bwmbuild/bwm_tools-0.2.2/bwmd' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/tmp/bwmbuild/bwm_tools-0.2.2' > make: *** [all] Error 2 > linux:/tmp/bwmbuild/bwm_tools-0. > > > With thanks & regards > > Rajveer Singh > > On Wed, 22 Feb 2006 rajveer singh wrote : > >Hello guys > > > >I'm trying to install BWM-tools. I followed the following steps. > > > >#./configure > >It executes successfully and completed without any error message. > >this is it's output. > > > >linux:/tmp/bwmbuild/bwm_tools-0.2.2 # ./configure > >checking for a BSD-compatible install... /usr/bin/install -c > >checking whether build environment is sane... yes > >checking for gawk... gawk > >checking whether make sets $(MAKE)... yes > >checking for gcc... gcc > >checking for C compiler default output file name... a.out > >checking whether the C compiler works... yes > >checking whether we are cross compiling... no > >checking for suffix of executables... > >checking for suffix of object files... o > >checking whether we are using the GNU C compiler... yes > >checking whether gcc accepts -g... yes > >checking for gcc option to accept ANSI C... none needed > >checking for style of include used by make... GNU > >checking dependency style of gcc... gcc3 > >checking for a BSD-compatible install... /usr/bin/install -c > >checking build system type... i686-pc-linux-gnu > >checking host system type... i686-pc-linux-gnu > >checking for a sed that does not truncate output... /usr/bin/sed > >checking for egrep... grep -E > >checking for ld used by gcc... /usr/i586-suse-linux/bin/ld > >checking if the linker (/usr/i586-suse-linux/bin/ld) is GNU ld... yes > >checking for /usr/i586-suse-linux/bin/ld option to reload object files... > > -r checking for BSD-compatible nm... /usr/bin/nm -B > >checking whether ln -s works... yes > >checking how to recognise dependent libraries... pass_all > >checking how to run the C preprocessor... gcc -E > >checking for ANSI C header files... yes > >checking for sys/types.h... yes > >checking for sys/stat.h... yes > >checking for stdlib.h... yes > >checking for string.h... yes > >checking for memory.h... yes > >checking for strings.h... yes > >checking for inttypes.h... yes > >checking for stdint.h... yes > >checking for unistd.h... yes > >checking dlfcn.h usability... yes > >checking dlfcn.h presence... yes > >checking for dlfcn.h... yes > >checking for g++... no > >checking for c++... no > >checking for gpp... no > >checking for aCC... no > >checking for CC... no > >checking for cxx... no > >checking for cc++... no > >checking for cl... no > >checking for FCC... no > >checking for KCC... no > >checking for RCC... no > >checking for xlC_r... no > >checking for xlC... no > >checking whether we are using the GNU C++ compiler... no > >checking whether g++ accepts -g... no > >checking dependency style of g++... none > >checking how to run the C++ preprocessor... /lib/cpp > >checking for g77... no > >checking for f77... no > >checking for xlf... no > >checking for frt... no > >checking for pgf77... no > >checking for fort77... no > >checking for fl32... no > >checking for af77... no > >checking for f90... no > >checking for xlf90... no > >checking for pgf90... no > >checking for epcf90... no > >checking for f95... no > >checking for fort... no > >checking for xlf95... no > >checking for ifc... no > >checking for efc... no > >checking for pgf95... no > >checking for lf95... no > >checking for gfortran... no > >checking whether we are using the GNU Fortran 77 compiler... no > >checking whether accepts -g... no > >checking the maximum length of command line arguments... 32768 > >checking command to parse /usr/bin/nm -B output from gcc object... ok > >checking for objdir... .libs > >checking for ar... ar > >checking for ranlib... ranlib > >checking for strip... strip > >checking if gcc static flag works... yes > >checking if gcc supports -fno-rtti -fno-exceptions... no > >checking for gcc option to produce PIC... -fPIC > >checking if gcc PIC flag -fPIC works... yes > >checking if gcc supports -c -o file.o... yes > >checking whether the gcc linker (/usr/i586-suse-linux/bin/ld) supports > > shared libraries... yes checking whether -lc should be explicitly linked > > in... no > >checking dynamic linker characteristics... GNU/Linux ld.so > >checking how to hardcode library paths into programs... immediate > >checking whether stripping libraries is possible... yes > >checking if libtool supports shared libraries... yes > >checking whether to build shared libraries... yes > >checking whether to build static libraries... yes > >configure: creating libtool > >appending configuration tag "CXX" to libtool > >checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports > > shared libraries... yes libtool.m4: error: problem compiling CXX test > > program > >checking for g++ option to produce PIC... > >checking if g++ supports -c -o file.o... no > >checking whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports > > shared libraries... yes checking dynamic linker characteristics... > > GNU/Linux ld.so > >checking how to hardcode library paths into programs... unsupported > >checking whether stripping libraries is possible... yes > >appending configuration tag "F77" to libtool > >checking whether ln -s works... yes > >checking whether make sets $(MAKE)... (cached) yes > >checking for ranlib... (cached) ranlib > >checking for new_menu in -lmenu... no > >checking for curses_version in -lncurses... no > >checking for panel_window in -lpanel... no > >checking for rrd_create in -lrrd... yes > >checking for ANSI C header files... (cached) yes > >checking for sys/wait.h that is POSIX.1 compatible... yes > >checking arpa/inet.h usability... yes > >checking arpa/inet.h presence... yes > >checking for arpa/inet.h... yes > >checking fcntl.h usability... yes > >checking fcntl.h presence... yes > >checking for fcntl.h... yes > >checking netinet/in.h usability... yes > >checking netinet/in.h presence... yes > >checking for netinet/in.h... yes > >checking for stdlib.h... (cached) yes > >checking for string.h... (cached) yes > >checking sys/socket.h usability... yes > >checking sys/socket.h presence... yes > >checking for sys/socket.h... yes > >checking sys/time.h usability... yes > >checking sys/time.h presence... yes > >checking for sys/time.h... yes > >checking syslog.h usability... yes > >checking syslog.h presence... yes > >checking for syslog.h... yes > >checking for unistd.h... (cached) yes > >checking for stdbool.h that conforms to C99... yes > >checking for _Bool... yes > >checking for an ANSI C-conforming const... yes > >checking for inline... inline > >checking for size_t... yes > >checking whether time.h and sys/time.h may both be included... yes > >checking whether struct tm is in sys/time.h or time.h... time.h > >checking for working alloca.h... yes > >checking for alloca... yes > >checking for stdlib.h... (cached) yes > >checking for GNU libc compatible malloc... yes > >checking for stdlib.h... (cached) yes > >checking for sys/time.h... (cached) yes > >checking for unistd.h... (cached) yes > >checking for alarm... yes > >checking for working mktime... yes > >checking for stdlib.h... (cached) yes > >checking for GNU libc compatible realloc... yes > >checking sys/select.h usability... yes > >checking sys/select.h presence... yes > >checking for sys/select.h... yes > >checking for sys/socket.h... (cached) yes > >checking types of arguments for select... int,fd_set *,struct timeval * > >checking return type of signal handlers... void > >checking whether lstat dereferences a symlink specified with a trailing > > slash... yes checking whether stat accepts an empty string... no > >checking for strftime... yes > >checking for vprintf... yes > >checking for _doprnt... no > >checking for gettimeofday... yes > >checking for inet_ntoa... yes > >checking for memset... yes > >checking for select... yes > >checking for socket... yes > >checking for strcasecmp... yes > >checking for strchr... yes > >checking for strdup... yes > >checking for strerror... yes > >checking for strncasecmp... yes > >checking for strndup... yes > >checking for pkg-config... /usr/bin/pkg-config > >checking for GLIB - version >=3D 2.2.0... yes (version 2.8.1) > >checking for xml2-config... /usr/bin/xml2-config > >checking for libxml - version >=3D 2.5.0... yes (version 2.6.20) > >configure: creating ./config.status > >config.status: creating Makefile > >config.status: creating lib/Makefile > >config.status: creating bwm_firewall/Makefile > >config.status: creating bwm_graph/Makefile > >config.status: creating bwmd/Makefile > >config.status: creating bwm_monitor/Makefile > >config.status: creating doc/Makefile > >config.status: creating config.h > >config.status: config.h is unchanged > >config.status: executing depfiles commands > >linux:/tmp/bwmbuild/bwm_tools-0.2.2 # > > > > > > > >after it i execute command make it gives error as below:- > > > > > >linux:/tmp/bwmbuild/bwm_tools-0.2.2 # make > >make all-recursive > >make[1]: Entering directory `/tmp/bwmbuild/bwm_tools-0.2.2' > >Making all in lib > >make[2]: Entering directory `/tmp/bwmbuild/bwm_tools-0.2.2/lib' > >make[3]: Entering directory `/tmp/bwmbuild/bwm_tools-0.2.2' > >make[3]: Leaving directory `/tmp/bwmbuild/bwm_tools-0.2.2' > >make[2]: Nothing to be done for `all'. > >make[2]: Leaving directory `/tmp/bwmbuild/bwm_tools-0.2.2/lib' > >Making all in bwm_firewall > >make[2]: Entering directory `/tmp/bwmbuild/bwm_tools-0.2.2/bwm_firewall' > >make[3]: Entering directory `/tmp/bwmbuild/bwm_tools-0.2.2' > >make[3]: Leaving directory `/tmp/bwmbuild/bwm_tools-0.2.2' > >/bin/sh ../libtool --tag=3DCC --mode=3Dlink gcc -g -O2 -o bwm_firewall > > -pthread -L/opt/gnome/lib -lgthread-2.0 -lglib-2.0 -L/usr/lib -lxml2 > > -lz -lm -lpanel -lncurses -lmenu bwm_firewall-bwm_firewall.o > > ../lib/libbwm.la gcc -g -O2 -o .libs/bwm_firewall > > bwm_firewall-bwm_firewall.o -pthread -L/opt/gnome/lib -L/usr/lib -lpan= el > > -lncurses -lmenu ../lib/.libs/libbwm.so /opt/gnome/lib/libgthread-2.0.so > > -lpthread /opt/gnome/lib/libglib-2.0.so /usr/lib/libxml2.so -ldl -lz -lm > > /usr/lib/gcc/i586-suse-linux/4.0.2/../../../../i586-suse-linux/bin/ld: > > cannot find -lpanel collect2: ld returned 1 exit status > >make[2]: *** [bwm_firewall] Error 1 > >make[2]: Leaving directory `/tmp/bwmbuild/bwm_tools-0.2.2/bwm_firewall' > >make[1]: *** [all-recursive] Error 1 > >make[1]: Leaving directory `/tmp/bwmbuild/bwm_tools-0.2.2' > >make: *** [all] Error 2 > >linux:/tmp/bwmbuild/bwm_tools-0.2.2 # > > > > > > > >So please help me what should i do. > > > > > >With thanks & regards > > > >Rajveer Singh Believe this article refers specifically to your problem from the archives: http://sourceforge.net/mailarchive/message.php?msg_id=3D14407897 =2D-=20 Larry Smith SysAd ECSIS.NET sy...@ec... |