Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223911 - x11-libs/qscintilla-2.2 - ld cannot find -lqscintilla2
Summary: x11-libs/qscintilla-2.2 - ld cannot find -lqscintilla2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal with 1 vote (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 228667 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-28 03:15 UTC by bryce verdier
Modified: 2008-07-08 12:42 UTC (History)
9 users (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 bryce verdier 2008-05-28 03:15:08 UTC
qscintilla-2.2 fails to compile, not sure of the reason why.

Reproducible: Always

Steps to Reproduce:
1.emerge qscintilla
2.wait
3.

Actual Results:  
g++ -Wl,-O1 -Wl,--as-needed -shared -o libqscintillaplugin.so qscintillaplugin.o moc_qscintillaplugin.o   -L/usr/lib64/qt4 -L../Qt4/lib -lqscintilla2 -lQtScript -L/usr/lib64 -L/usr/lib64/qt4 -lQtXml -lQtGui -L/usr/lib -lpng -lSM -lICE -lXrender -lXrandr -lXfixes -lXcursor -lfreetype -lfontconfig -lXext -lX11 -lQtCore -lz -lm -lrt -ldl -lQtDesigner -lpthread 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lqscintilla2
collect2: ld returned 1 exit status
make: *** [libqscintillaplugin.so] Error 1

Expected Results:  
compile without errors

I have tried compiling with both -O2 and -Os. Fails for both of them. Have tried adding in the qt4 useflag, failed for both of those as well.

Not sure what i'm doing wrong

Portage 2.1.5.2 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.7-r2, 2.6.25-gen                  too-r4 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3                  800+
Timestamp of tree: Wed, 28 May 2008 02:33:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r6, 2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.4-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -Os -pipe -ftracer -fweb -frename-registers"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu                  tdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gcon                  f /etc/gentoo-release /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -Os -pipe -ftracer -fweb -frename-registers"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch sandbox sfperms strict unmerge-orphans                   userfetch"
GENTOO_MIRRORS=" #http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http                  ://gentoo.osuosl.org/   "
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress                   --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclu                  de=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa amd64 berkdb bzip2 canvas cli cracklib crypt cups dlload                  er dri dvd dvdr dvdread extrafilters ffmpeg fortran gdbm glitz gpm gtk gtk2 icon                  v imagemagick ipv6 isdnlog jpeg midi mmx mozsvg mudflap multilib musicbrainz ncu                  rses nls noxalan nptl nptlonly nsplugin nvidia opengl openmp pam pcre pdf perl p                  ng pppd python quotes readline reflection session spl sse sse2 ssl svg tcpd thre                  ads truetype unicode visualization x264 xorg xvid zlib" ALSA_CARDS="intel8x0 usb                  -audio" 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 r                  oute share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias au                  thn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupf                  ile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflat                  e dir disk_cache env expires ext_filter file_cache filter headers include info l                  og_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling s                  tatus unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyb                  oard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd4478                  0 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nv                  idia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORT                  AGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Markus Ullmann (RETIRED) gentoo-dev 2008-05-28 21:02:13 UTC
-L is missing the builddir... upstream bug ;)
Comment 2 Andrew Schaefer 2008-05-30 00:36:32 UTC
(In reply to comment #1)
> -L is missing the builddir... upstream bug ;)
> 

So how can we work around this?
Comment 3 Edwin Smulders 2008-05-30 18:31:47 UTC
confirming this bug, any solution in sight?
Comment 4 regomodo 2008-05-30 21:35:15 UTC
i too have this bug preventing the compile of PyQt [very important for me].

emerge --info

Portage 2.1.5.2 (default-linux/amd64/2007.0, gcc-4.2.4, glibc-2.7-r2, 2.6.24-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r8 x86_64 Intel(R) Core(TM)2 Duo CPU E6750 @ 2.66GHz
Timestamp of tree: Fri, 30 May 2008 10:33:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p39
dev-lang/python:     2.4.4-r9, 2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.virginmedia.com/ "
LANG="C"
LDFLAGS=""
LINGUAS="en_GB en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aac acl acpi alsa amd64 berkdb cdparanoia cdr cli cracklib crypt css cups dbus divx dri dvb dvd dvdr dvdread esd ffmpeg flac fonts fortran gif gimp gphoto2 gpm hal iconv ieee1394 imagemagick imlib ipv6 isdnlog joystick jpeg kde latex lcms logitech-mouse matroska midi mmx mp3 mudflap mysql ncurses nls nptl nptlonly ogg openal opengl openmp pam pcre pdf perl png pppd python qt3 qt4 readline realplayer reflection samba seamonkey session spell spl sse sse2 ssl svg tcpd theora tiff tk truetype unicode usb vorbis x264 xcomposite xine xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS



Comment 5 Ben de Groot (RETIRED) gentoo-dev 2008-05-31 14:41:46 UTC
Workaround:
1. mask =x11-libs/qscintilla-2.2 and =dev-python/qscintilla-python-2.2
2. emerge the 2.1 version of the above packages
3. remove the mask
4. now you can emerge the 2.2 version

Ugly, but it works.
Comment 6 Ryan Voots 2008-06-11 15:25:06 UTC

(In reply to comment #5)
> Workaround:
> 1. mask =x11-libs/qscintilla-2.2 and =dev-python/qscintilla-python-2.2
> 2. emerge the 2.1 version of the above packages
> 3. remove the mask
> 4. now you can emerge the 2.2 version
>
> Ugly, but it works.


also if you're willing to interviene during the building (by using Ctrl+Z), (this is probably not recommended), you can go into /var/tmp/portage/x11-libs/qscintilla-2.2/work/QScintilla-2.2/

and run make in the Qt4 directory (this probably also applies to the Qt3 directory, but i haven't tested that)

and after it builds successfully there, do

mkdir lib

cp lib* lib

and then go ahead and unpause the emerge and it'll build and then clean it all up for you.  This will avoid possible bugs with linking part of the library against an older version of qscintilla which the above will do (unless you remerge it a second time).

this is happening because in the 'designer-Qt4' directory, the makefile does appear to have a bug, where it wants to link against -L../Qt4/lib where it thinks the libraries are, you could also edit this makefile to make things work too. in theory this could be patched by us, but i don't think that's standard procedure.
Comment 7 Alex 2008-06-23 03:08:17 UTC
(In reply to comment #6)
> 
> (In reply to comment #5)
> > Workaround:
> > 1. mask =x11-libs/qscintilla-2.2 and =dev-python/qscintilla-python-2.2
> > 2. emerge the 2.1 version of the above packages
> > 3. remove the mask
> > 4. now you can emerge the 2.2 version
> >
> > Ugly, but it works.
> 
> 
> also if you're willing to interviene during the building (by using Ctrl+Z),
> (this is probably not recommended), you can go into
> /var/tmp/portage/x11-libs/qscintilla-2.2/work/QScintilla-2.2/
> 
> and run make in the Qt4 directory (this probably also applies to the Qt3
> directory, but i haven't tested that)
> 
> and after it builds successfully there, do
> 
> mkdir lib
> 
> cp lib* lib
> 
> and then go ahead and unpause the emerge and it'll build and then clean it all
> up for you.  This will avoid possible bugs with linking part of the library
> against an older version of qscintilla which the above will do (unless you
> remerge it a second time).
> 
> this is happening because in the 'designer-Qt4' directory, the makefile does
> appear to have a bug, where it wants to link against -L../Qt4/lib where it
> thinks the libraries are, you could also edit this makefile to make things work
> too. in theory this could be patched by us, but i don't think that's standard
> procedure.
> 

Another way that works with me

download the development snapshot at http://www.riverbankcomputing.co.uk/software/qscintilla/download

QScintilla-gpl-2.2.1-snapshot-20080619.tar.gz

extract and compile manually, after reemerge qscintilla-2.2
Comment 8 Tais P. Hansen 2008-06-23 14:55:27 UTC
(In reply to comment #5)
> Workaround:
> 1. mask =x11-libs/qscintilla-2.2 and =dev-python/qscintilla-python-2.2
> 2. emerge the 2.1 version of the above packages
> 3. remove the mask
> 4. now you can emerge the 2.2 version
> 
> Ugly, but it works.
> 

I just did paludis --install "=x11-libs/qscintilla-2.1*" and paludis took care of the rest; no masks required.
Comment 9 Bob Raitz 2008-06-23 18:41:04 UTC
(In reply to comment #5)
> Workaround:
> 1. mask =x11-libs/qscintilla-2.2 and =dev-python/qscintilla-python-2.2
> 2. emerge the 2.1 version of the above packages
> 3. remove the mask
> 4. now you can emerge the 2.2 version
> 
> Ugly, but it works.
> 

Thanks for that. Maybe now I can get hplip installed. This definitely works for me.

Blessed be!
Pappy
Comment 10 Till Heikamp 2008-06-30 16:50:36 UTC
emerge -1 =x11-libs/qscintilla-2.1-r1 =dev-python/qscintilla-python-2.1
emerge -1 =x11-libs/qscintilla-2.2 =dev-python/qscintilla-python-2.2

worked for me.

anyway, it would be nice if the maintainer adds a fixed version (-r1) instead of letting people run into an over 1 month old bug, regardless whether this is an upstream bug or not.
Comment 11 Maurice van der Pot (RETIRED) gentoo-dev 2008-07-08 12:35:26 UTC
*** Bug 228667 has been marked as a duplicate of this bug. ***
Comment 12 Maurice van der Pot (RETIRED) gentoo-dev 2008-07-08 12:42:23 UTC
Starting from qscintilla-2.2, the libraries that are built end up in ../Qt[34] instead of ../Qt[34]/lib. I adapted the library paths used in the patches to the new location.