Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60956 - when emerging dev-libs/fcgi for the first time c++ support doesn't get installed.
Summary: when emerging dev-libs/fcgi for the first time c++ support doesn't get instal...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-19 15:54 UTC by Michael Krelin
Modified: 2006-12-26 03:12 UTC (History)
1 user (show)

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 Michael Krelin 2004-08-19 15:54:34 UTC
To get fcgi c++ working you need to emerge fcgi ebuild twice, because the first time fails:
 /bin/sh ../libtool --mode=install /bin/install -c  libfcgi++.la /var/tmp/portage/fcgi-2.4.0/image//usr/lib/libfcgi++.la                                        
libtool: install: warning: relinking `libfcgi++.la'                                                                                                             
cd /var/tmp/portage/fcgi-2.4.0/work/fcgi-2.4.0/libfcgi; /bin/sh ../libtool --mode=relink g++ -O3 -pipe -march=i686 -fomit-frame-pointer -o libfcgi++.la -lfcgi -rpath /usr/lib fcgio.lo -lnsl                                                                                                                                   
gcc -shared  fcgio.lo  -L/usr/lib -lfcgi -lnsl   -Wl,-soname -Wl,libfcgi++.so.0 -o .libs/libfcgi++.so.0.0.0                                                     
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.3/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lfcgi                                                               
collect2: ld returned 1 exit status                                                                                                                             
libtool: install: error: relink `libfcgi++.la' with the above command before installing it                                                                      

this can be easily fixed:
--- /usr/portage/dev-libs/fcgi/fcgi-2.4.0.ebuild        2004-07-14 16:40:19.000000000 +0200
+++ fcgi-2.4.0-r1.ebuild        2004-08-19 23:48:51.274145240 +0200
@@ -22,7 +22,7 @@
 }
 
 src_install() {
-       make DESTDIR=${D} install || die
+       make DESTDIR=${D} install LIBRARY_PATH=${D}/usr/lib || die
        dodoc LICENSE.TERMS README
        mv doc/*.[13] . && doman *.[13]
        dohtml doc/*


Reproducible: Always
Steps to Reproduce:
1. emerge unmerge fcgi
2. emerge fcgi
3.

Actual Results:  
no libfcgi++ installed. 

Expected Results:  
install libfci++ 

Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r0, 
2.6.8-gentoo)                                                                         
=================================================================                                                                                                
System uname: 2.6.8-gentoo i686 Intel(R) Celeron(R) M processor         
1300MHz                                                                                  
Gentoo Base System version 1.4.16                                                                                                                                
Autoconf: sys-devel/autoconf-2.59-r4                                                                                                                             
Automake: sys-devel/automake-1.8.5-r1                                                                                                                            
ACCEPT_KEYWORDS="x86 ~x86"                                                                                                                                       
AUTOCLEAN="yes"                                                                                                                                                  
CFLAGS="-O3 -pipe -march=i686 -fomit-frame-pointer"                                                                                                              
CHOST="i686-pc-linux-gnu"                                                                                                                                        
COMPILER="gcc3"                                                                                                                                                  
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"      
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"                                                                                                        
CXXFLAGS="-O3 -pipe -march=i686 -fomit-frame-pointer"                                                                                                            
DISTDIR="/usr/portage/distfiles"                                                                                                                                 
FEATURES="autoaddcvs buildpkg ccache noauto sandbox"                                                                                                             
GENTOO_MIRRORS="http://ftp.heanet.ie/pub/gentoo/ 
ftp://ftp.linux.ee/pub/gentoo/distfiles/"                                                                       
MAKEOPTS="-j2"                                                                                                                                                   
PKGDIR="/usr/portage/packages"                                                                                                                                   
PORTAGE_TMPDIR="/var/tmp"                                                                                                                                        
PORTDIR="/usr/portage"                                                                                                                                           
PORTDIR_OVERLAY="/usr/local/portage"                                                                                                                             
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"                                                                                                            
USE="X alsa apm arts avi berkdb crypt cups encode esd foomaticdb gdbm gif 
gnome gpm gtk gtk2 imlib java jpeg kde libg++ libwww mad mikmod motif mpeg 
ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime 
readline sdl slang spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Comment 1 Matthew Kennedy (RETIRED) gentoo-dev 2004-11-08 15:46:11 UTC
thanks for this bug report. committed to cvs
Comment 2 Jaak Ristioja 2006-12-26 03:12:38 UTC
(In reply to comment #1)
> thanks for this bug report. committed to cvs
> 

When will we see this fixed in stable?