Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136489 - x11-libs/fltk-1.1.7 fails to build with -Wl,--as-needed in LDFLAGS
Summary: x11-libs/fltk-1.1.7 fails to build with -Wl,--as-needed in LDFLAGS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Desktop Misc. Team
: 149570 159153 160308 (view as bug list)
Depends on:
Blocks: as-needed
  Show dependency tree
Reported: 2006-06-11 15:24 UTC by Maarten Bressers (RETIRED)
Modified: 2007-03-31 17:16 UTC (History)
6 users (show)

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

as-needed fix. (fltk-1.1.7-as-needed.patch,4.66 KB, patch)
2006-11-12 06:57 UTC, Alexis Ballier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Maarten Bressers (RETIRED) gentoo-dev 2006-06-11 15:24:44 UTC
this bug depends on bug #129413

emerge --info:
Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.6.15-gentoo-r1 i686)
System uname: 2.6.15-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
CFLAGS="-march=pentium4 -O2 -mmmx -msse -msse2 -mfpmath=sse -fomit-frame-pointer -pipe"
CONFIG_PROTECT="/etc /usr/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -mmmx -msse -msse2 -mfpmath=sse -fomit-frame-pointer -pipe -fvisibility-inlines-hidden"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS=" rsync://"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--sort-common -s"
USE="x86 X alsa apache2 apm audiofile avi bitmap-fonts bzip2 cdr cli crypt curl dri dvd dvdr dvdread eds emboss encode expat fam ffmpeg foomaticdb fortran gd gdbm gif glut gpm gstreamer imagemagick imlib isdnlog java jpeg lcms libg++ libwww mad mikmod mmx mng motif mp3 mpeg mysql ncurses nptl nvidia opengl pcre pdflib perl png pppd python quicktime readline reflection ruby sdl session slang spell spl sse sse2 ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts udev usb xml xml2 xmms xorg xv xvid zlib userland_GNU kernel_linux elibc_glibc"

build error:
=== making fluid ===
Compiling CodeEditor.cxx...
Compiling Fl_Function_Type.cxx...
Compiling Fl_Group_Type.cxx...
Compiling Fl_Menu_Type.cxx...
Compiling Fl_Type.cxx...
Compiling Fl_Widget_Type.cxx...
Compiling Fl_Window_Type.cxx...
Compiling Fluid_Image.cxx...
Compiling about_panel.cxx...
Compiling align_widget.cxx...
Compiling alignment_panel.cxx...
Compiling code.cxx...
Compiling factory.cxx...
Compiling file.cxx...
Compiling fluid.cxx...
Compiling function_panel.cxx...
Compiling template_panel.cxx...
Compiling widget_panel.cxx...
Compiling undo.cxx...
Linking fluid-shared...
Linking fluid...
../src/ undefined reference to `FcObjectSetBuild'
../src/ undefined reference to `FcNameUnparse'
../src/ undefined reference to `FcFontList'
../src/ undefined reference to `FcPatternGetDouble'
../src/ undefined reference to `FcInit'
../src/ undefined reference to `FcPatternCreate'
../src/ undefined reference to `FcPatternDestroy'
../src/ undefined reference to `FcFontSetDestroy'
collect2: ld returned 1 exit status
make[1]: *** [fluid-shared] Error 1
make[1]: *** Waiting for unfinished jobs....

(fluid is fltk's GUI designer)
Comment 1 Alexis Ballier gentoo-dev 2006-11-12 06:57:18 UTC
Created attachment 101738 [details, diff]
as-needed fix.

Hmm this one linking order was badly broken, attached patch fixes it to please as-needed ;)

You need to run eautoconf, which works fine with WANT_AUTOCONF=2.5
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-12-26 12:03:27 UTC
*** Bug 159153 has been marked as a duplicate of this bug. ***
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-12-26 13:43:40 UTC
*** Bug 159153 has been marked as a duplicate of this bug. ***
Comment 4 Alexis Ballier gentoo-dev 2007-01-06 13:27:19 UTC
*** Bug 160308 has been marked as a duplicate of this bug. ***
Comment 5 Alexis Ballier gentoo-dev 2007-01-06 13:30:47 UTC

we're getting dupes because fltk doesn't die on build/link errors. This patch has been there for months, I'll apply it during next week if nobody cares.
I'll try to find a way to let it die on errors also and will open another bug.
Comment 6 Krzysztof Pawlik (RETIRED) gentoo-dev 2007-01-08 21:29:34 UTC
Fixed in 1.1.7.
Comment 7 Alexis Ballier gentoo-dev 2007-03-31 17:16:25 UTC
*** Bug 149570 has been marked as a duplicate of this bug. ***