Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147140 - dev-db/unixODBC-2.2.11 fails compile when USE="gtk" and LDFLAGS="--as-needed"
Summary: dev-db/unixODBC-2.2.11 fails compile when USE="gtk" and LDFLAGS="--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:
 
Reported: 2006-09-11 00:23 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2006-12-19 04:40 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 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2006-09-11 00:23:31 UTC
=====
/bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc  -O2 -march=i686 
-mtune=athlon-xp -pipe -ggdb -Wall -Wunused   -Wl,-O1,-z,combreloc,--as-needed,--sort-common,--enable-new-dtags -o gODBCConfig  main.o -rdynamic -L/usr/lib -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -lasound -laudiofile -lm -ldb1 -lglib  -L/var/tmp/portage/unixODBC-2.2.11-r1/work/unixODBC-2.2.11/lib -lodbcinst libgtkodbcconfig.la ../../ini/.libs/libinilc.la

i686-pc-linux-gnu-gcc -O2 -march=i686 -mtune=athlon-xp -pipe -ggdb -Wall -Wunused -Wl,-O1 -Wl,-z -Wl,combreloc -Wl,--as-needed -Wl,--sort-common -Wl,--enable-new-dtags -o .libs/gODBCConfig main.o -rdynamic -rdynamic  -L/usr/lib /usr/lib/libgnomeui.so /usr/lib/libart_lgpl.so /usr/lib/libgdk_imlib.so /usr/lib/libSM.so /usr/lib/libICE.so /usr/lib/libgtk.so /usr/lib/libgdk.so /usr/lib/libgmodule.so /usr/lib/libXi.so /usr/lib/libXext.so /usr/lib/libX11.so /usr/lib/libXau.so /usr/lib/libXdmcp.so /usr/lib/libgnome.so /usr/lib/libpopt.so /usr/lib/libgnomesupport.so /usr/lib/libesd.so /usr/lib/libasound.so /usr/lib/libaudiofile.so -lm -ldb1 /usr/lib/libglib.so -L/var/tmp/portage/unixODBC-2.2.11-r1/work/unixODBC-2.2.11/lib /usr/lib/libodbcinst.so -ldl ./.libs/libgtkodbcconfig.so ../../ini/.libs/libinilc.a -lpthread
./.libs/libgtkodbcconfig.so: undefined reference to `odbcinst_system_file_path'
./.libs/libgtkodbcconfig.so: undefined reference to `ODBCINSTDestructProperties'
./.libs/libgtkodbcconfig.so: undefined reference to `SQLWritePrivateProfileString'
./.libs/libgtkodbcconfig.so: undefined reference to `SQLSetConfigMode'
./.libs/libgtkodbcconfig.so: undefined reference to `ODBCINSTConstructProperties'
./.libs/libgtkodbcconfig.so: undefined reference to `SQLGetPrivateProfileString'
./.libs/libgtkodbcconfig.so: undefined reference to `SQLConfigDataSource'
collect2: ld returned 1 exit status
make: *** [gODBCConfig] Error 1

===========

So after tinkering around, i managed to find an instruction that worked.

/bin/sh ../libtool --mode=link i686-pc-linux-gnu-gcc  -O2 -march=i686 -mtune=athlon-xp -pipe -ggdb -Wall -Wunused   -Wl,-O1,-z,combreloc,--as-needed,--sort-common,--enable-new-dtags -L/usr/lib -L/var/tmp/portage/unixODBC-2.2.11-r1/work/unixODBC-2.2.11/lib -o gODBCConfig  main.o libgtkodbcconfig.la ../../lib/libodbcinstlc.la ../../ini/.libs/libinilc.la ../../libltdl/ltdl.lo ../../log/libloglc.la ../../lst/liblstlc.la -rdynamic -lgnomeui -lart_lgpl -lgdk_imlib -lSM -lICE -lgtk -lgdk -lgmodule -lXi -lXext -lX11 -lgnome -lgnomesupport -lesd -lasound -laudiofile -lm -ldb1 -lglib


which seemed to satisfy compilation acceptably ( program runs fine without segfaulting )

Hope this is of use to somebody else possibly encountering this problem, and possibly have this bug fixed :)


Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-r4kz i686)
=================================================================
System uname: 2.6.17-gentoo-r4kz i686 AMD Athlon(TM) XP 2000+
Gentoo Base System version 1.12.4
Last Sync: Sun, 10 Sep 2006 15:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r3
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2, 2.17
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=athlon-xp -pipe -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/local/kdeextra/share/config /usr/local/kdeextra/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -mtune=athlon-xp -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig buildpkg ccache cvs distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict usepkg userfetch userpriv usersandbox"
LANG="C"
LC_ALL="C"
LDFLAGS="-Wl,-O1,-z,combreloc,--as-needed,--sort-common,--enable-new-dtags"
LINGUAS="en_NZ en_GB en en_US"
MAKEOPTS="-j6"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/src/gnome/gnome-experimental /usr/src/musicbrainz-overlay_svn /usr/src/xemacs/xemacs"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Sergey Ilinykh 2006-12-11 23:50:02 UTC
2.2.11-r1 doesn't have gtk flag
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-12-19 04:40:38 UTC
No gtk flag any more, closing.