[syslog-ng] Compilation problems under RH AS3

news gonzo news gonzo news_gonzo at yahoo.fr
Wed Sep 6 10:45:42 CEST 2006


Finally an export
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig fixed my
problem...

Thx
--- Balazs Scheidler <bazsi at balabit.hu> a écrit :

> On Tue, 2006-09-05 at 10:43 +0200, news gonzo news
> gonzo wrote:
> > Thx for your help
> > First of all, I needed to export eventlog var like
> > this:
> > export EVTLOG_LIBS=/usr/local/lib
> > export EVTLOG_CFLAGS=/usr/local/lib
> > 
> > because of this errors :
> > checking for EVTLOG... Package eventlog was not
> found
> > in the pkg-config search path.
> > Perhaps you should add the directory containing
> > `eventlog.pc'
> > to the PKG_CONFIG_PATH environment variable
> > No package 'eventlog' found
> > configure: error: Package requirements (eventlog)
> were
> > not met:
> > 
> > Consider adjusting the PKG_CONFIG_PATH environment
> > variable if you
> > installed software in a non-standard prefix.
> > 
> > Alternatively, you may set the environment
> variables
> > EVTLOG_CFLAGS
> > and EVTLOG_LIBS to avoid the need to call
> pkg-config.
> > See the pkg-config man page for more details.
> > 
> > 
> > then the ./configure works
> > here is the result of make :
> > 
> > make  all-recursive
> > make[1]: Entering directory
> > `/root/syslog-ng/syslog-ng-2.0rc1'
> > Making all in src
> > make[2]: Entering directory
> > `/root/syslog-ng/syslog-ng-2.0rc1/src'
> > if gcc -DHAVE_CONFIG_H -I. -I. -I..  
> > -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include  
> > /usr/local/lib -D_GNU_SOURCE  -g -O2 -Wall -g -MT
> > misc.o -MD -MP -MF ".deps/misc.Tpo" \
> >   -c -o misc.o `test -f 'misc.c' || echo
> './'`misc.c;
> > \
> > then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; \
> > else rm -f ".deps/misc.Tpo"; exit 1; \
> > fi
> > gcc: cannot specify -o with -c or -S and multiple
> > compilations
> > make[2]: *** [misc.o] Error 1
> > make[2]: Leaving directory
> > `/root/syslog-ng/syslog-ng-2.0rc1/src'
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory
> > `/root/syslog-ng/syslog-ng-2.0rc1'
> > make: *** [all] Error 2
> > 
> > Besides I installed glib with the rpm from redhat
> > network.
> > 
> > I hope you have enought informations
> 
> 
> Hm. it would be better if you could use pkg-config
> instead of specifying
> EVTLOG_{CFLAGS,LIBS} directly
> 
> Are you regenerating the configure/libtool/automake
> files or are you
> using the distributed copies?
> 
> The reason of the error probably is that "-o misc.o
> " is present twice
> on the command line.
> 
> This is how the compilation looks like on my host:
> 
> if gcc -DHAVE_CONFIG_H -I.
> -I/home/bazsi/zwa/work/syslog-ng-2.0/syslog-ng/src \
> 	-I..   -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include   \
> 
>
-I/home/bazsi/zwa/install/syslog-ng-2.0/include/eventlog
>   \
> 	-D_GNU_SOURCE  -Wall -g -MT misc.o -MD -MP -MF
> ".deps/misc.Tpo" \
>           -c -o misc.o `test -f
>
'/home/bazsi/zwa/work/syslog-ng-2.0/syslog-ng/src/misc.c'
> || echo
>
'/home/bazsi/zwa/work/syslog-ng-2.0/syslog-ng/src/'`/home/bazsi/zwa/work/syslog-ng-2.0/syslog-ng/src/misc.c;
> \
>         then mv -f ".deps/misc.Tpo" ".deps/misc.Po";
> \
>         else rm -f ".deps/misc.Tpo"; exit 1; \
>         fi
> 
> As you see there's only one "-o misc.o" part on the
> command line, not twice as in yours.
> 
> -- 
> Bazsi
> 
> _______________________________________________
> syslog-ng maillist  -  syslog-ng at lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Frequently asked questions at
> http://www.campin.net/syslog-ng/faq.html
> 
> 



	

	
		
___________________________________________________________________________ 
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! 
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos expériences. 
http://fr.answers.yahoo.com 



More information about the syslog-ng mailing list