Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7757 - syslog-ng will not compile with USE="-tcpd"
Summary: syslog-ng will not compile with USE="-tcpd"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Bruce A. Locke (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-10 11:59 UTC by Maurizio Disimino
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maurizio Disimino 2002-09-10 11:59:36 UTC
app-admin/syslog-ng will not emerge correctly with USE="-tcpd"
since the src_compile() is b0rked. (!!!!!)

gcc  -march=i686 -O3 -pipe -Wall -I/usr/include/libol -D_GNU_SOURCE  -o
syslog-ng  main.o sources.o center.o filters.o destinations.o log.o cfgfile.o
cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o afinet.o afinter.o afuser.o
afstreams.o afprogram.o afremctrl.o nscache.o utils.o syslog-names.o  -lfl
/usr/lib/libol.a -lwrap
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lwrap
collect2: ld returned 1 exit status
make[2]: *** [syslog-ng] Error 1

<snip>
cd ${S}/src
	mv Makefile Makefile.orig
	sed -e "s|-lnsl|-lwrap|" Makefile.orig > Makefile  || die
</snip>

the ^^^^^^ should be:

use tcpd && {
mv Makefile Makefile.orig
sed -e "s|-lnsl|-lwrap|" Makefile.orig > Makefile || \
die "Can't patch Makefile" ; }

Thanks to Filippo Giunchedi <godog@esaurito.net> for catching this.
Filippo is a new gentoo (user)?

regards,

Maurizio aka j2ee