Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108681 - dev-libs/libol-0.3.16 and others do not build static libraries
Summary: dev-libs/libol-0.3.16 and others do not build static libraries
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-09 19:31 UTC by Mihai Limbasan
Modified: 2005-10-10 21:35 UTC (History)
0 users

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


Attachments
config.log for dev-libs/libol-0.3.16 (config.log,51.21 KB, text/plain)
2005-10-10 17:24 UTC, Mihai Limbasan
Details
config.log for app-admin/syslog-ng-1.6.8 (config.log,47.02 KB, text/plain)
2005-10-10 17:28 UTC, Mihai Limbasan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mihai Limbasan 2005-10-09 19:31:31 UTC
As per bug title.
Can't figure out the reason - an ebuild unpack -> ./configure -> make 
CFLAGS="blah blah" -> make DESTDIR=/what/ever install procedure does indeed 
produce the required static library. This started to happen around two weeks 
ago.
This is a pretty annoying problem since it blocks a remerge of syslog-ng, which 
eems to absolutely require libol.a.
I noticed a similar situation on several other packages (net-libs/libnet comes 
to mind, which fails to build /usr/lib/libnet.a causing tcptraceroute to fail on 
build), so this may be a toolchain problem. I re-emerged the toolchain cleanly 
twice in a row with no effect. Upgraded and downgraded binutils and gcc to 
known-good versions with no effect.
I'm sticking this in as a libol bug since the libol ebuild is very simple, hence 
diagnosing this will probably be easier.
The hardware is fine, I've ruled that out as a cause.
I'm stumped.

Portage 2.0.51.22-r3 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.
11-hardened-r15 i686)
=================================================================
System uname: 2.6.11-hardened-r15 i686 Intel(R) Celeron(R) CPU 2.40GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -msse -msse2 -O2 -fomit-frame-pointer -fno-ident -pipe -
fstack-protector"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/
vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium4 -msse -msse2 -O2 -fomit-frame-pointer -fno-ident -pipe 
-fstack-protector"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://mirrors.napocastar.ro/gentoo.org http://ftp.roedu.net/
pub/mirrors/gentoo.org ftp://ftp.roedu.net/pub/mirrors/gentoo.org http://ftp.
lug.ro/gentoo http://gentoo.osuosl.org"
LDFLAGS="-Wl,-O1"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://ftp.roedu.net/gentoo-portage"
USE="x86 acl adns apache2 bash-completion berkdb bindist bzip2 bzlib caps cdr 
crypt cups curl doc dvd dvdr encode exif expat fam foomaticdb gd gdbm gif gmp 
gnutls gpm graphviz iconv imagemagick imap imlib imlib2 ipv6 javascript jbig 
jpeg jpeg2k libwww logrotate lzo maildir mailwrapper memlimit mhash mime mmap 
mmx mono mysql ncurses nptl odbc offensive pam pcre pdflib perl php pic pie png 
postgres pwdb python readline samba sasl slang slp snmp soap socks5 source spell 
sqlite sse sse2 ssl subversion tcpd tetex tidy tiff truetype unicode vhosts wddx 
wmf xml xml2 xmlrpc xsl zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS


package.keywords excerpt with all remotely relevant atoms:

~sys-devel/gcc-3.4.4
~sys-devel/binutils-2.16.1
~sys-devel/patch-2.5.9
~sys-libs/libstdc++-v3-3.3.6
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2005-10-09 22:20:52 UTC
Attach the config.log from the build directory as text/plain please.
Comment 2 Mihai Limbasan 2005-10-10 17:24:38 UTC
Created attachment 70329 [details]
config.log for dev-libs/libol-0.3.16
Comment 3 Mihai Limbasan 2005-10-10 17:26:11 UTC
Comment on attachment 70329 [details]
config.log for dev-libs/libol-0.3.16

You didn't specify whether you needed the config.log for syslog-ng or for
libol, so here go both.
Note that libol builds fine, it's just that the built package doesn't build the
static library.
Comment 4 Mihai Limbasan 2005-10-10 17:28:26 UTC
Created attachment 70330 [details]
config.log for app-admin/syslog-ng-1.6.8

syslog-ng of course fails on linking:

i686-pc-linux-gnu-gcc  -march=pentium4 -msse -msse2 -O2 -fomit-frame-pointer
-fno-ident -pipe -fstack-protector -Wall -I/usr/include/libol -D_GNU_SOURCE 
-Wl,-O1 -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 macros.o  -lnsl -lresolv  /usr/lib/libol.a -lnsl -Wl,-Bstatic
-lfl -lwrap    -Wl,-Bdynamic
i686-pc-linux-gnu-gcc: /usr/lib/libol.a: No such file or directory
make[3]: *** [syslog-ng] Error 1
Comment 5 Mihai Limbasan 2005-10-10 17:30:01 UTC
And libol-config output:

router ~ # libol-config --libs
-L/usr/lib -lol -lnsl
router ~ # libol-config --static-libs
/usr/lib/libol.a -lnsl
router ~ # libol-config --cflags     
-I/usr/include/libol
router ~ # libol-config --local-cflags
-I/var/tmp/portage/libol-0.3.16/work/libol-0.3.16/src
router ~ # libol-config --local-static-libs  
/var/tmp/portage/libol-0.3.16/work/libol-0.3.16/src/.libs/libol.a -lnsl
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2005-10-10 17:44:15 UTC
Well, it doesn't build static libraries because you told it not to by passing
--disable-static to configure.
Comment 7 Mihai Limbasan 2005-10-10 19:30:29 UTC
Ugh. EXTRA_ECONF. PEBKAC.
I'll locate the nearest hole and crawl into it...
I apologize for wasting your time and owe you a drink of your choice...
Comment 8 Mr. Bones. (RETIRED) gentoo-dev 2005-10-10 21:35:08 UTC
No problem, glad it's working for you now.