Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 173048 - dev-db/unixODBC-2.2.12 fails to compile with --as-needed
Summary: dev-db/unixODBC-2.2.12 fails to compile with --as-needed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2007-04-01 21:05 UTC by Patrizio Bassi
Modified: 2007-09-01 17:01 UTC (History)
2 users (show)

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


Attachments
as-needed.patch (as-needed.patch,382 bytes, patch)
2007-08-27 18:12 UTC, Olivier Huber
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrizio Bassi 2007-04-01 21:05:25 UTC
creating libgtkodbcconfig.la
(cd .libs && rm -f libgtkodbcconfig.la && ln -s ../libgtkodbcconfig.la libgtkodbcconfig.la)
/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O3 -pipe -march=nocona -mtune=nocona -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse -DORBIT2=1 -pthread -D_REENTRANT -DPNG_NO_MMX_CODE -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib64/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/libxml2    -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--hash-style=both -pthread -L/usr/lib64 -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnome-keyring -lxml2 -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lpangoft2-1.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lbonobo-2 -lgnomevfs-2 -lbonobo-activation -lgconf-2 -lgmodule-2.0 -ldl -lORBit-2 -lgthread-2.0 -lrt -lgobject-2.0 -lglib-2.0   -o gODBCConfig main.o    -L/mnt/Dati/Gentoo/tmp/portage/dev-db/unixODBC-2.2.12/work/unixODBC-2.2.12/lib -lodbcinst libgtkodbcconfig.la ../../odbcinst/libodbcinst.la ../../ini/libinilc.la
x86_64-pc-linux-gnu-gcc -O3 -pipe -march=nocona -mtune=nocona -fomit-frame-pointer -mmmx -msse -msse2 -msse3 -mfpmath=sse -DORBIT2=1 -pthread -D_REENTRANT -DPNG_NO_MMX_CODE -I/usr/include/libgnomeui-2.0 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/libbonoboui-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib64/gnome-vfs-2.0/include -I/usr/include/gnome-keyring-1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/libxml2 -Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--as-needed -Wl,--hash-style=both -pthread -o .libs/gODBCConfig main.o  -L/usr/lib64 -L/mnt/Dati/Gentoo/tmp/portage/dev-db/unixODBC-2.2.12/work/unixODBC-2.2.12/lib /usr/lib64/libodbcinst.so ./.libs/libgtkodbcconfig.so /usr/lib64/libgnomeui-2.so /usr/lib64/libjpeg.so /usr/lib64/libbonoboui-2.so /usr/lib64/libSM.so /usr/lib64/libICE.so /usr/lib64/libgnome-keyring.so /usr/lib64/libgnomecanvas-2.so /usr/lib64/libgnome-2.so /usr/lib64/libpopt.so /usr/lib64/libart_lgpl_2.so /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libgdk-x11-2.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libpangocairo-1.0.so /usr/lib64/libpangoft2-1.0.so /usr/lib64/libpango-1.0.so /usr/lib64/libcairo.so /usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so /usr/lib64/libdirectfb.so /usr/lib64/libfusion.so /usr/lib64/libdirect.so /usr/lib64/libglitz.so /usr/lib64/libpng12.so /usr/lib64/libXrender.so /usr/lib64/libX11.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so /usr/lib64/libbonobo-2.so /usr/lib64/libgnomevfs-2.so /usr/lib64/libxml2.so /usr/lib64/libdbus-glib-1.so /usr/lib64/libdbus-1.so /usr/lib64/libgnutls.so -lz /usr/lib64/libtasn1.so /usr/lib64/libgcrypt.so -lnsl /usr/lib64/libgpg-error.so -lresolv -lselinux -lutil /usr/lib64/libbonobo-activation.so /usr/lib64/libORBitCosNaming-2.so /usr/lib64/libgconf-2.so -lm /usr/lib64/libORBit-2.so /usr/lib64/libgmodule-2.0.so /usr/lib64/libgthread-2.0.so -lrt /usr/lib64/libgobject-2.0.so /usr/lib64/libglib-2.0.so ../../odbcinst/.libs/libodbcinst.so -ldl ../../ini/.libs/libinilc.a -lpthread
./.libs/libgtkodbcconfig.so: undefined reference to `SQLGetPrivateProfileString'
./.libs/libgtkodbcconfig.so: undefined reference to `odbcinst_system_file_path'
./.libs/libgtkodbcconfig.so: undefined reference to `SQLSetConfigMode'
./.libs/libgtkodbcconfig.so: undefined reference to `SQLWritePrivateProfileString'
./.libs/libgtkodbcconfig.so: undefined reference to `ODBCINSTDestructProperties'
./.libs/libgtkodbcconfig.so: undefined reference to `ODBCINSTConstructProperties'
./.libs/libgtkodbcconfig.so: undefined reference to `SQLConfigDataSource'
collect2: ld returned 1 exit status
make[2]: *** [gODBCConfig] Error 1
make[2]: Leaving directory `/mnt/Dati/Gentoo/tmp/portage/dev-db/unixODBC-2.2.12/work/unixODBC-2.2.12/gODBCConfig/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/mnt/Dati/Gentoo/tmp/portage/dev-db/unixODBC-2.2.12/work/unixODBC-2.2.12/gODBCConfig


removing it works.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-04-01 21:07:16 UTC
(In reply to comment #0)
> removing it works.

Removing what?
 

Comment 2 Patrizio Bassi 2007-04-01 21:25:41 UTC
removing --as-needed switch manually.
Comment 3 Patrizio Bassi 2007-04-17 19:57:55 UTC
why is it assigned to php team?
Comment 4 Steve Yin 2007-07-23 14:19:22 UTC
confirmed here, it will fail if LDFLAGS have --as-needed, here is the emere info 

Portage 2.1.2.9 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.21-gentoo-r3 i686)
=================================================================
System uname: 2.6.21-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 23 Jul 2007 13:00:11 +0000
dev-java/java-config: 2.0.33-r1
dev-lang/python:     2.5.1-r2
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17.50.0.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mtune=pentium4 -msse2 -fomit-frame-pointer -pipe -DNDEBUG -fweb -ftracer -fno-ident -momit-leaf-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4 -mtune=pentium4 -msse2 -fomit-frame-pointer -pipe -DNDEBUG -fweb -ftracer -fno-ident -momit-leaf-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://modzer0.cs.uaf.edu/public/gentoo/ http://ftp.gentoo.or.kr/"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--enable-new-dtags -Wl,--hash-style=both"
MAKEOPTS="-j5"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://221.231.141.141/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi alsa ao apache2 arts authdaemond avahi bash-completion bcmath berkdb bitmap-fonts bluetooth bzip2 bzlib cairo caps cdr cjk cli cracklib crypt cscope ctype cups curl curlwrappers dbus directfb dmi dmx dri dts dvd dvdr dvdread eds emacs-w3 emboss encode esd evo exif expat fam fbcon ffmpeg firefox flac foomaticdb fortran gd gdbm ggi gif glitz gmp gnome gpm gstreamer gtk gtkhtml guile hal iconv idn imagemagick imap innodb ipv6 isdnlog ithreads jack java javascript jbig jpeg jpeg2k kde kerberos lcms ldap libcaca libg++ libnotify lm_sensors logrotate lua mad maildir mailwrapper midi mikmod mime mmap mmx mng motif mp3 mpeg mudflap mysql mysqli nas nautilus ncurses nis nls nntp nptl nptlonly nsplugin odbc ogg openal openexr opengl openmp pam pcmcia pcntl pcre pda pdf pear perl php pie png pnp posix postgres pppd profile pulseaudio python qt3 qt3support qt4 quicktime readline reflection ruby samba sasl sdl session sftplogging sharedext simplexml skey slang slp sndfile snmp soap sockets socks5 speex spell spl sqlite sse sse2 ssl startup-notification svg svga symlink tcl tcltk tcpd tetex theora threads tidy tiff tk truetype truetype-fonts type1-fonts unicode usb vhosts vorbis win32codecs x86 xcb xine xinerama xinetd xml xml2 xmlrpc xorg xpm xprint xv xvmc 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="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nv none nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 5 Patrizio Bassi 2007-08-04 11:15:19 UTC
ping :)
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-08-10 18:20:23 UTC
(In reply to comment #5)
> ping :)

Attaching a working patch will help a whole lot more that random pings. :P 

Comment 7 Olivier Huber 2007-08-27 18:12:06 UTC
Created attachment 129348 [details, diff]
as-needed.patch

ping ... :)

With this it compiles and it seems to work, but check it because I'm very new to Makefile.am
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-09-01 07:56:01 UTC
Thanks. WFM, fixed in PHP overlay [1] and will get merged to CVS soon. 

(In reply to comment #7)
> With this it compiles and it seems to work, but check it because I'm very new
> to Makefile.am

The USE=gnome part is so much FUBARed that I really don't care whether the above it technically correct or not; I'd pretty much love to see this use flag vanished from the ebuild.

[1] http://overlays.gentoo.org/proj/php/changeset/1766
Comment 9 Patrizio Bassi 2007-09-01 08:38:47 UTC
confirm it works.
can we have it in the main portage?
Comment 10 Jakub Moc (RETIRED) gentoo-dev 2007-09-01 17:01:53 UTC
In CVS.