Re: [bwm-tools-tech] Compilation error.... Please Help
Brought to you by:
nkukard
From: rajveer s. <raj...@re...> - 2006-02-22 13:32:15
|
=0A=0AHello guys,=0A=0AProblem of "lpanel not found" has been resolved b= y installing ncurses-devel packages.=0Abut now i'm facing these new errors = so please if have any idea please let me know.=0A=0Aif 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 -I/usr/include/libxml2 -DCONFIG_FILE=3D\"/etc/= bwm_tools/firewall.xml\" -DLOG_DIR=3D\"/var/bwm_tools\" -g -O2 -MT bwmd-au= toclass.o -MD -MP -MF ".deps/bwmd-autoclass.Tpo" -c -o bwmd-autoclass.o `te= st -f 'autoclass.c' || echo './'`autoclass.c; \=0Athen mv -f ".deps/bwmd-au= toclass.Tpo" ".deps/bwmd-autoclass.Po"; else rm -f ".deps/bwmd-autoclass.Tp= o"; exit 1; fi=0Aautoclass.c: In function =91autoClassify_port=92:=0Aautocl= ass.c:37: error: invalid storage class for function =91tcpPortToPrio=92=0Aa= utoclass.c:87: error: invalid storage class for function =91udpPortToPrio= =92=0Amake[2]: *** [bwmd-autoclass.o] Error 1=0Amake[2]: Leaving directory = `/tmp/bwmbuild/bwm_tools-0.2.2/bwmd'=0Amake[1]: *** [all-recursive] Error 1= =0Amake[1]: Leaving directory `/tmp/bwmbuild/bwm_tools-0.2.2'=0Amake: *** [= all] Error 2=0Alinux:/tmp/bwmbuild/bwm_tools-0.=0A=0A=0AWith thanks & regar= ds=0A=0ARajveer Singh=0AOn Wed, 22 Feb 2006 rajveer singh wrote :=0A>=0A>H= ello guys=0A>=0A>I'm trying to install BWM-tools. I followed the following = steps.=0A>=0A>#./configure=0A>It executes successfully and completed withou= t any error message.=0A>this is it's output.=0A>=0A>linux:/tmp/bwmbuild/bwm= _tools-0.2.2 # ./configure=0A>checking for a BSD-compatible install... /usr= /bin/install -c=0A>checking whether build environment is sane... yes=0A>che= cking for gawk... gawk=0A>checking whether make sets $(MAKE)... yes=0A>chec= king for gcc... gcc=0A>checking for C compiler default output file name... = a.out=0A>checking whether the C compiler works... yes=0A>checking whether w= e are cross compiling... no=0A>checking for suffix of executables...=0A>che= cking for suffix of object files... o=0A>checking whether we are using the = GNU C compiler... yes=0A>checking whether gcc accepts -g... yes=0A>checking= for gcc option to accept ANSI C... none needed=0A>checking for style of in= clude used by make... GNU=0A>checking dependency style of gcc... gcc3=0A>ch= ecking for a BSD-compatible install... /usr/bin/install -c=0A>checking buil= d system type... i686-pc-linux-gnu=0A>checking host system type... i686-pc-= linux-gnu=0A>checking for a sed that does not truncate output... /usr/bin/s= ed=0A>checking for egrep... grep -E=0A>checking for ld used by gcc... /usr/= i586-suse-linux/bin/ld=0A>checking if the linker (/usr/i586-suse-linux/bin/= ld) is GNU ld... yes=0A>checking for /usr/i586-suse-linux/bin/ld option to = reload object files... -r=0A>checking for BSD-compatible nm... /usr/bin/nm = -B=0A>checking whether ln -s works... yes=0A>checking how to recognise depe= ndent libraries... pass_all=0A>checking how to run the C preprocessor... gc= c -E=0A>checking for ANSI C header files... yes=0A>checking for sys/types.h= ... yes=0A>checking for sys/stat.h... yes=0A>checking for stdlib.h... yes= =0A>checking for string.h... yes=0A>checking for memory.h... yes=0A>checkin= g for strings.h... yes=0A>checking for inttypes.h... yes=0A>checking for st= dint.h... yes=0A>checking for unistd.h... yes=0A>checking dlfcn.h usability= ... yes=0A>checking dlfcn.h presence... yes=0A>checking for dlfcn.h... yes= =0A>checking for g++... no=0A>checking for c++... no=0A>checking for gpp...= no=0A>checking for aCC... no=0A>checking for CC... no=0A>checking for cxx.= .. no=0A>checking for cc++... no=0A>checking for cl... no=0A>checking for F= CC... no=0A>checking for KCC... no=0A>checking for RCC... no=0A>checking fo= r xlC_r... no=0A>checking for xlC... no=0A>checking whether we are using th= e GNU C++ compiler... no=0A>checking whether g++ accepts -g... no=0A>checki= ng dependency style of g++... none=0A>checking how to run the C++ preproces= sor... /lib/cpp=0A>checking for g77... no=0A>checking for f77... no=0A>chec= king for xlf... no=0A>checking for frt... no=0A>checking for pgf77... no=0A= >checking for fort77... no=0A>checking for fl32... no=0A>checking for af77.= .. no=0A>checking for f90... no=0A>checking for xlf90... no=0A>checking for= pgf90... no=0A>checking for epcf90... no=0A>checking for f95... no=0A>chec= king for fort... no=0A>checking for xlf95... no=0A>checking for ifc... no= =0A>checking for efc... no=0A>checking for pgf95... no=0A>checking for lf95= ... no=0A>checking for gfortran... no=0A>checking whether we are using the = GNU Fortran 77 compiler... no=0A>checking whether accepts -g... no=0A>chec= king the maximum length of command line arguments... 32768=0A>checking comm= and to parse /usr/bin/nm -B output from gcc object... ok=0A>checking for ob= jdir... .libs=0A>checking for ar... ar=0A>checking for ranlib... ranlib=0A>= checking for strip... strip=0A>checking if gcc static flag works... yes=0A= >checking if gcc supports -fno-rtti -fno-exceptions... no=0A>checking for g= cc option to produce PIC... -fPIC=0A>checking if gcc PIC flag -fPIC works..= . yes=0A>checking if gcc supports -c -o file.o... yes=0A>checking whether t= he gcc linker (/usr/i586-suse-linux/bin/ld) supports shared libraries... ye= s=0A>checking whether -lc should be explicitly linked in... no=0A>checking = dynamic linker characteristics... GNU/Linux ld.so=0A>checking how to hardco= de library paths into programs... immediate=0A>checking whether stripping l= ibraries is possible... yes=0A>checking if libtool supports shared librarie= s... yes=0A>checking whether to build shared libraries... yes=0A>checking w= hether to build static libraries... yes=0A>configure: creating libtool=0A>a= ppending configuration tag "CXX" to libtool=0A>checking whether the g++ lin= ker (/usr/i586-suse-linux/bin/ld) supports shared libraries... yes=0A>libto= ol.m4: error: problem compiling CXX test program=0A>checking for g++ option= to produce PIC...=0A>checking if g++ supports -c -o file.o... no=0A>checki= ng whether the g++ linker (/usr/i586-suse-linux/bin/ld) supports shared lib= raries... yes=0A>checking dynamic linker characteristics... GNU/Linux ld.so= =0A>checking how to hardcode library paths into programs... unsupported=0A>= checking whether stripping libraries is possible... yes=0A>appending config= uration tag "F77" to libtool=0A>checking whether ln -s works... yes=0A>chec= king whether make sets $(MAKE)... (cached) yes=0A>checking for ranlib... (c= ached) ranlib=0A>checking for new_menu in -lmenu... no=0A>checking for curs= es_version in -lncurses... no=0A>checking for panel_window in -lpanel... no= =0A>checking for rrd_create in -lrrd... yes=0A>checking for ANSI C header f= iles... (cached) yes=0A>checking for sys/wait.h that is POSIX.1 compatible.= .. yes=0A>checking arpa/inet.h usability... yes=0A>checking arpa/inet.h pre= sence... yes=0A>checking for arpa/inet.h... yes=0A>checking fcntl.h usabili= ty... yes=0A>checking fcntl.h presence... yes=0A>checking for fcntl.h... ye= s=0A>checking netinet/in.h usability... yes=0A>checking netinet/in.h presen= ce... yes=0A>checking for netinet/in.h... yes=0A>checking for stdlib.h... (= cached) yes=0A>checking for string.h... (cached) yes=0A>checking sys/socket= .h usability... yes=0A>checking sys/socket.h presence... yes=0A>checking fo= r sys/socket.h... yes=0A>checking sys/time.h usability... yes=0A>checking s= ys/time.h presence... yes=0A>checking for sys/time.h... yes=0A>checking sys= log.h usability... yes=0A>checking syslog.h presence... yes=0A>checking for= syslog.h... yes=0A>checking for unistd.h... (cached) yes=0A>checking for s= tdbool.h that conforms to C99... yes=0A>checking for _Bool... yes=0A>checki= ng for an ANSI C-conforming const... yes=0A>checking for inline... inline= =0A>checking for size_t... yes=0A>checking whether time.h and sys/time.h ma= y both be included... yes=0A>checking whether struct tm is in sys/time.h or= time.h... time.h=0A>checking for working alloca.h... yes=0A>checking for a= lloca... yes=0A>checking for stdlib.h... (cached) yes=0A>checking for GNU l= ibc compatible malloc... yes=0A>checking for stdlib.h... (cached) yes=0A>ch= ecking for sys/time.h... (cached) yes=0A>checking for unistd.h... (cached) = yes=0A>checking for alarm... yes=0A>checking for working mktime... yes=0A>c= hecking for stdlib.h... (cached) yes=0A>checking for GNU libc compatible re= alloc... yes=0A>checking sys/select.h usability... yes=0A>checking sys/sele= ct.h presence... yes=0A>checking for sys/select.h... yes=0A>checking for sy= s/socket.h... (cached) yes=0A>checking types of arguments for select... int= ,fd_set *,struct timeval *=0A>checking return type of signal handlers... vo= id=0A>checking whether lstat dereferences a symlink specified with a traili= ng slash... yes=0A>checking whether stat accepts an empty string... no=0A>c= hecking for strftime... yes=0A>checking for vprintf... yes=0A>checking for = _doprnt... no=0A>checking for gettimeofday... yes=0A>checking for inet_ntoa= ... yes=0A>checking for memset... yes=0A>checking for select... yes=0A>chec= king for socket... yes=0A>checking for strcasecmp... yes=0A>checking for st= rchr... yes=0A>checking for strdup... yes=0A>checking for strerror... yes= =0A>checking for strncasecmp... yes=0A>checking for strndup... yes=0A>check= ing for pkg-config... /usr/bin/pkg-config=0A>checking for GLIB - version >= =3D 2.2.0... yes (version 2.8.1)=0A>checking for xml2-config... /usr/bin/xm= l2-config=0A>checking for libxml - version >=3D 2.5.0... yes (version 2.6.2= 0)=0A>configure: creating ./config.status=0A>config.status: creating Makefi= le=0A>config.status: creating lib/Makefile=0A>config.status: creating bwm_f= irewall/Makefile=0A>config.status: creating bwm_graph/Makefile=0A>config.st= atus: creating bwmd/Makefile=0A>config.status: creating bwm_monitor/Makefil= e=0A>config.status: creating doc/Makefile=0A>config.status: creating config= .h=0A>config.status: config.h is unchanged=0A>config.status: executing depf= iles commands=0A>linux:/tmp/bwmbuild/bwm_tools-0.2.2 #=0A>=0A>=0A>=0A>after= it i execute command make it gives error as below:-=0A>=0A>=0A>linux:/tmp/= bwmbuild/bwm_tools-0.2.2 # make=0A>make all-recursive=0A>make[1]: Entering= directory `/tmp/bwmbuild/bwm_tools-0.2.2'=0A>Making all in lib=0A>make[2]:= Entering directory `/tmp/bwmbuild/bwm_tools-0.2.2/lib'=0A>make[3]: Enterin= g directory `/tmp/bwmbuild/bwm_tools-0.2.2'=0A>make[3]: Leaving directory `= /tmp/bwmbuild/bwm_tools-0.2.2'=0A>make[2]: Nothing to be done for `all'.=0A= >make[2]: Leaving directory `/tmp/bwmbuild/bwm_tools-0.2.2/lib'=0A>Making a= ll in bwm_firewall=0A>make[2]: Entering directory `/tmp/bwmbuild/bwm_tools-= 0.2.2/bwm_firewall'=0A>make[3]: Entering directory `/tmp/bwmbuild/bwm_tools= -0.2.2'=0A>make[3]: Leaving directory `/tmp/bwmbuild/bwm_tools-0.2.2'=0A>/b= in/sh ../libtool --tag=3DCC --mode=3Dlink gcc -g -O2 -o bwm_firewall -pt= hread -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=0A>g= cc -g -O2 -o .libs/bwm_firewall bwm_firewall-bwm_firewall.o -pthread -L/op= t/gnome/lib -L/usr/lib -lpanel -lncurses -lmenu ../lib/.libs/libbwm.so /opt= /gnome/lib/libgthread-2.0.so -lpthread /opt/gnome/lib/libglib-2.0.so /usr/l= ib/libxml2.so -ldl -lz -lm=0A>/usr/lib/gcc/i586-suse-linux/4.0.2/../../../.= ./i586-suse-linux/bin/ld: cannot find -lpanel=0A>collect2: ld returned 1 ex= it status=0A>make[2]: *** [bwm_firewall] Error 1=0A>make[2]: Leaving direct= ory `/tmp/bwmbuild/bwm_tools-0.2.2/bwm_firewall'=0A>make[1]: *** [all-recur= sive] Error 1=0A>make[1]: Leaving directory `/tmp/bwmbuild/bwm_tools-0.2.2'= =0A>make: *** [all] Error 2=0A>linux:/tmp/bwmbuild/bwm_tools-0.2.2 #=0A>=0A= >=0A>=0A>So please help me what should i do.=0A>=0A>=0A>With thanks & regar= ds=0A>=0A>Rajveer Singh=0A |