Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 196422

Summary: dev-libs/clearsilver --as-needed problem with zlib
Product: Gentoo Linux Reporter: Priit Laes (IRC: plaes) <plaes>
Component: [OLD] LibraryAssignee: Julien Allanos (RETIRED) <dju>
Status: VERIFIED TEST-REQUEST    
Severity: normal CC: web-apps
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 129413    
Attachments: build.log
clearsilver-as-flags-fix.patch

Description Priit Laes (IRC: plaes) 2007-10-19 14:54:54 UTC
When LDFLAGS has been set to "-Wl,--as-needed", dev-libs/clearsilver is not linked against zlib, even when zlib is in USE flags.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-10-19 16:50:17 UTC
Attach the complete compile log here, as well as emerge --info output. Thanks.
Comment 2 Priit Laes (IRC: plaes) 2007-10-21 13:06:35 UTC
dev ~ # emerge --info
Portage 2.1.3.9 (default-linux/x86/2007.0/server, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r8 i686)
=================================================================
System uname: 2.6.22-gentoo-r8 i686 Intel(R) Celeron(R) CPU 2.53GHz
Timestamp of tree: Fri, 19 Oct 2007 13:30:01 +0000
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61-r1
sys-devel/automake:  1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -ggdb -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -ggdb -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 berkdb bitmap-fonts bzip2 cli cracklib crypt cups dri exif gdbm gmp iconv ipv6 isdnlog mailwrapper midi mudflap ncurses nls nptl nptlonly openmp pam pcre pppd python readline reflection session snmp spl ssl tcpd truetype truetype-fonts type1-fonts unicode vhosts x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Priit Laes (IRC: plaes) 2007-10-21 13:07:04 UTC
When compiled with USE="zlib"

dev ~ # ldd /usr/lib/python2.4/site-packages/neo_cgi.so
        linux-gate.so.1 =>  (0xffffe000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7f4b000)
        libc.so.6 => /lib/libc.so.6 (0xb7e24000)
        /lib/ld-linux.so.2 (0x80000000)
Comment 4 Priit Laes (IRC: plaes) 2007-10-21 13:10:25 UTC
Created attachment 134023 [details]
build.log
Comment 5 Julien Allanos (RETIRED) gentoo-dev 2007-10-23 06:37:37 UTC
So what's wrong then? Is there something that doesn't work when libz isn't linked in?
Comment 6 Priit Laes (IRC: plaes) 2007-10-23 09:44:38 UTC
(In reply to comment #5)
> So what's wrong then? Is there something that doesn't work when libz isn't
> linked in?

Yup, for example trac doesn't work spewing out an error about undefined symbol "deflate".

There is some discussion going on in the Clearsilver message board, including a patch:
http://tech.groups.yahoo.com/group/ClearSilver/message/1074
Comment 7 Priit Laes (IRC: plaes) 2007-10-28 19:07:20 UTC
This is the error what it causes:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 387, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 206, in dispatch
    req.hdf = HDFWrapper(loadpaths=chrome.get_all_templates_dirs())
  File "/usr/lib/python2.4/site-packages/trac/web/clearsilver.py", line 135, in __init__
    raise TracError, "ClearSilver not installed (%s)" % e
TracError: ClearSilver not installed (/usr/lib/python2.4/site-packages/neo_cgi.so: undefined symbol: deflate)
Comment 8 Priit Laes (IRC: plaes) 2007-10-28 19:26:17 UTC
Created attachment 134556 [details, diff]
clearsilver-as-flags-fix.patch

Fixes the problem for me...


Any ideas whether 0.10.5 will be bumped and/or stabilized...
Comment 9 Julien Allanos (RETIRED) gentoo-dev 2007-11-02 15:53:03 UTC
Well, trac works for me if clearsilver is compiled with -zlib, I don't get the "no deflate symbol" error. Anyway, I added your patch to the clearsilver-0.10.5 ebuild I just commited. Please test and report, thanks.
Comment 10 Priit Laes (IRC: plaes) 2007-11-02 17:43:00 UTC
(In reply to comment #9)
> Well, trac works for me if clearsilver is compiled with -zlib, I don't get the
> "no deflate symbol" error. Anyway, I added your patch to the clearsilver-0.10.5
> ebuild I just commited. Please test and report, thanks.
> 

Works fine on x86 (after keywording).