Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 537408 - dev-db/postgis-2.1.5 - ../liblwgeom/.libs/liblwgeom.so: error: undefined reference to 'sqrt'
Summary: dev-db/postgis-2.1.5 - ../liblwgeom/.libs/liblwgeom.so: error: undefined refe...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2015-01-22 23:52 UTC by Stefan de Konink
Modified: 2016-02-16 14:24 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,76.66 KB, text/plain)
2015-01-22 23:57 UTC, Stefan de Konink
Details
Simple workaround (postgis-2.1.8-ldflags-lm.patch,1.44 KB, patch)
2015-09-14 12:01 UTC, Jiří Moravec
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan de Konink 2015-01-22 23:52:58 UTC
/bin/sh ../libtool --mode=link \
  gcc -I ../liblwgeom -O2 -pipe  -fPIC -DPIC  -Wall -Wmissing-prototypes    shpopen.o dbfopen.o getopt.o shpcommon.o safileio.o shp2pgsql-core.o shp2pgsql-cli.o ../liblwgeom/liblwgeom.la -o shp2pgsql -L/usr/lib64/postgresql-9.4/lib64 -Wl,-O1 -Wl,--as-needed  -Wl,--as-needed -Wl,-rpath,'/usr/lib64/postgresql-9.4/lib64',--enable-new-dtags  -lc
libtool: link: gcc -I ../liblwgeom -O2 -pipe -fPIC -DPIC -Wall -Wmissing-prototypes shpopen.o dbfopen.o getopt.o shpcommon.o safileio.o shp2pgsql-core.o shp2pgsql-cli.o -o .libs/shp2pgsql -Wl,-O1 -Wl,-rpath -Wl,/usr/lib64/postgresql-9.4/lib64 -Wl,--enable-new-dtags  ../liblwgeom/.libs/liblwgeom.so -L/usr/lib64 -lgeos_c -lproj -ljson-c -L/usr/lib64/postgresql-9.4/lib64 -Wl,--as-needed -lc
../liblwgeom/.libs/liblwgeom.so: error: undefined reference to 'sqrt'
../liblwgeom/.libs/liblwgeom.so: error: undefined reference to 'atan'
../liblwgeom/.libs/liblwgeom.so: error: undefined reference to 'floor'
../liblwgeom/.libs/liblwgeom.so: error: undefined reference to 'atan2'
../liblwgeom/.libs/liblwgeom.so: error: undefined reference to 'sincos'
../liblwgeom/.libs/liblwgeom.so: error: undefined reference to 'remainder'
../liblwgeom/.libs/liblwgeom.so: error: undefined reference to 'acos'
../liblwgeom/.libs/liblwgeom.so: error: undefined reference to 'asin'
../liblwgeom/.libs/liblwgeom.so: error: undefined reference to 'sin'
../liblwgeom/.libs/liblwgeom.so: error: undefined reference to 'cos'
../liblwgeom/.libs/liblwgeom.so: error: undefined reference to 'log10'
../liblwgeom/.libs/liblwgeom.so: error: undefined reference to 'log'
../liblwgeom/.libs/liblwgeom.so: error: undefined reference to 'tan'
collect2: error: ld returned 1 exit status
Makefile:103: recipe for target 'shp2pgsql' failed
make[1]: *** [shp2pgsql] Error 1
make[1]: Leaving directory '/var/tmp/portage/dev-db/postgis-2.1.5/work/postgis-2.1.5/loader'


Reproducible: Always




=================================================================
System uname: Linux-3.17.1-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-2380P_CPU_@_3.10GHz-with-gentoo-2.2
KiB Mem:     8138296 total,   2016240 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Thu, 22 Jan 2015 20:15:01 +0000
sh bash 4.3_p33-r1
ld GNU gold (Gentoo 2.24 p1.4 2.24) 1.11
app-shells/bash:          4.3_p33-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.8, 3.3.5-r1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.7.3-r1, 4.9.2
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.20-r1
Repositories: gentoo science spiderlay x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/var/tmp/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/var/tmp/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/spiderlay /usr/local/portage"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage/"
USE="X aac aacplus alsa amd64 android apng auto-hinter avx berkdb bzip2 cairo caps cli corefonts cracklib crypt curl cxx dbus dri dv egl exif faac ffmpeg fftw flac fontconfig fortran g3dvl gdbm gimp gnuplot iconv icu infinality ipv6 jpeg kms latex lcms lensfun lzma mmx mmxext modules mp3 ncurses nls nptl ogg opengl openmp openvg opus pcre pdf png python2 qt3support qt4 raw readline savedconfig sdl session smp spatialite speex sqlite sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype unicode vaapi vdpau vorbis x264 x265 xcb xvmc zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="nl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="cris mipsel arm i386 x86_64" QEMU_USER_TARGETS="cris mipsel arm i386 x86_64" RUBY_TARGETS="ruby19 ruby20" SANE_BACKENDS="canon plustek" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Stefan de Konink 2015-01-22 23:57:22 UTC
Created attachment 394684 [details]
build.log
Comment 2 Jiří Moravec 2015-09-14 11:59:53 UTC
I had same problem with postgis-2.1.8.
Comment 3 Jiří Moravec 2015-09-14 12:01:28 UTC
Created attachment 411890 [details, diff]
Simple workaround
Comment 4 Aaron W. Swenson gentoo-dev 2015-12-15 12:34:44 UTC
Please check if this issue persists with 2.2.0. I'm unable to reproduce the issue so far.