Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 378709 - dev-db/freetds-0.82-r3: because of incorrect linking with libiconv
Summary: dev-db/freetds-0.82-r3: because of incorrect linking with libiconv
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Solaris
: Normal normal (vote)
Assignee: Gentoo Prefix
URL: https://github.com/brianb/FreeTDS/com...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-10 20:30 UTC by Hector Rivas
Modified: 2011-08-26 20:10 UTC (History)
0 users

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 Hector Rivas 2011-08-10 20:30:33 UTC
Using gentoo portage prefix on Solaris 10.

Trying to install dev-db/freetds-0.82-r3:


libtool: link: sparc-sun-solaris2.10-gcc -D_REENTRANT -pthreads -Wdeclaration-after-statement -o .libs/fisql fisql.o terminal.o edit.o handlers.o interrupt.o  ../../dblib/.libs/libsybdb.so ../../replacements/.libs/libreplacements.a -lsocket -lreadline -pthreads -Wl,-rpath -Wl,/apps/local/SunOS-sparc/gentoo/usr/lib
../../dblib/.libs/libsybdb.so: undefined reference to `libiconv'
../../dblib/.libs/libsybdb.so: undefined reference to `libiconv_close'
../../dblib/.libs/libsybdb.so: undefined reference to `libiconv_open'
collect2: ld returned 1 exit status
make[3]: *** [fisql] Error 1
make[3]: Leaving directory `/tmp/portage/dev-db/freetds-0.82-r3/work/freetds-0.82/src/apps/fisql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/tmp/portage/dev-db/freetds-0.82-r3/work/freetds-0.82/src/apps'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/portage/dev-db/freetds-0.82-r3/work/freetds-0.82/src'
make: *** [all-recursive] Error 1
emake failed
 * ERROR: dev-db/freetds-0.82-r3 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line   62:  Called call-ebuildshell 'src_compile'
 *   environment, line  467:  Called src_compile
 *   environment, line 2775:  Called _eapi2_src_compile
 *     ebuild.sh, line  673:  Called die
 * The specific snippet of code:
 *            emake || die "emake failed"
 *
 * If you need support, post the output of 'emerge --info =dev-db/freetds-0.82-r3',
 * the complete build log and the output of 'emerge -pqv =dev-db/freetds-0.82-r3'.
 * The complete build log is located at '/tmp/portage/dev-db/freetds-0.82-r3/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/dev-db/freetds-0.82-r3/temp/environment'.
 * S: '/tmp/portage/dev-db/freetds-0.82-r3/work/freetds-0.82'

>>> Failed to emerge dev-db/freetds-0.82-r3, Log file:

>>>  '/tmp/portage/dev-db/freetds-0.82-r3/temp/build.log'

 * Messages for package dev-db/freetds-0.82-r3:

 * ERROR: dev-db/freetds-0.82-r3 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line   62:  Called call-ebuildshell 'src_compile'
 *   environment, line  467:  Called src_compile
 *   environment, line 2775:  Called _eapi2_src_compile
 *     ebuild.sh, line  673:  Called die
 * The specific snippet of code:
 *             emake || die "emake failed"
 *
 * If you need support, post the output of 'emerge --info =dev-db/freetds-0.82-r3',
 * the complete build log and the output of 'emerge -pqv =dev-db/freetds-0.82-r3'.
 * The complete build log is located at '/tmp/portage/dev-db/freetds-0.82-r3/temp/build.log'.
 * The ebuild environment file is located at '/tmp/portage/dev-db/freetds-0.82-r3/temp/environment'.
 * S: '/tmp/portage/dev-db/freetds-0.82-r3/work/freetds-0.82'


$ emerge --info =dev-db/freetds-0.82-r3
Portage 2.2.01.19011-prefix (prefix/sunos/solaris/5.10/sparc, gcc-4.2.4, unavailable, 5.10 sun4u)
=================================================================
                        System Settings
=================================================================
System uname: Solaris-2.10-sun4u-sparc-32bit-ELF
Timestamp of tree: Wed, 10 Aug 2011 15:38:46 +0000
app-shells/bash:      4.2_p10
dev-lang/python:      2.7.2
dev-util/pkgconfig:   0.25-r2
sys-devel/autoconf:   2.68
sys-devel/automake:   1.11.1
sys-devel/binutils:   2.20.1-r1
sys-devel/gcc:        4.2.4-r01.3
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:    2.4-r01.1
sys-devel/make:       3.82
Repositories: gentoo_prefix
Installed sets:
ACCEPT_KEYWORDS="~sparc-solaris"
ACCEPT_LICENSE="* -@EULA"
CBUILD="sparc-sun-solaris2.10"
CFLAGS=""
CHOST="sparc-sun-solaris2.10"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/portage /etc/terminfo"
CXXFLAGS=""
DISTDIR="/apps/local/SunOS-sparc/gentoo/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles fixpackages news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS=""
PKGDIR="/apps/local/SunOS-sparc/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/apps/local/SunOS-sparc/gentoo/"
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="/tmp"
PORTDIR="/apps/local/SunOS-sparc/gentoo/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="cracklib cxx modules ncurses prefix readline sparc-solaris ssl zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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 cgi cgid 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="SunOS" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="SunOS" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-db/freetds-0.82-r3 was built with the following:
USE="(prefix) -iodbc -mssql -odbc"
LDFLAGS="-liconv"

Tried to add LDFLAGS="-liconv" as a test, did not solve the problem.

I think that this patch solves the problem:

https://github.com/brianb/FreeTDS/commit/f749249e453a6c124aabce34ba5b1ecff0200871
Comment 1 Fabian Groffen gentoo-dev 2011-08-26 20:10:54 UTC
That patch doesn't apply to the sources, so I took a bit more rigorous approach to fixing it :)