Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 484770 - dev-db/postgresql-server-9.3.0 - In function `BaseBackup': pg_basebackup.c:(.text+0x1872): undefined reference to `tarCreateHeader'
Summary: dev-db/postgresql-server-9.3.0 - In function `BaseBackup': pg_basebackup.c:(....
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-13 14:24 UTC by Robert McGehee
Modified: 2013-10-20 21:37 UTC (History)
0 users

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


Attachments
build.log for postgresql-server-9.3.0 (build.log,421.53 KB, text/plain)
2013-09-13 14:24 UTC, Robert McGehee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert McGehee 2013-09-13 14:24:21 UTC
Created attachment 358580 [details]
build.log for postgresql-server-9.3.0

Hello,
I'm unable to compile the latest postgresql-server-9.3.0 (postgresql-base-9.3.0 and server-9.2.4 compile fine). My complete build log is attached and the portion with the compile error and emerge --info output is below.

Please let me know if you have any ideas or need any more information.
Thanks, Robert

make[3]: Leaving directory `/bos/gcm_price/hal_backups/prefix/var/tmp/portage/dev-db/postgresql-server-9.3.0/work/postgresql-9.3.0/src/bin/pg_resetxlog'
x86_64-pc-linux-gnu-gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -I../../../src/include pg_ctl.o  -L../../../src/port -lpgport -L../../../src/common -lpgcommon -L../../../src/interfaces/libpq -lpq -L../../../src/port -L../../../src/common -Wl,-O1 -L/bos/gcm_price/hal_backups/prefix/usr/lib  -L/bos/gcm_price/hal_backups/prefix/usr/lib/postgresql-9.3/lib -Wl,--as-needed -Wl,-rpath,'/bos/gcm_price/hal_backups/prefix/usr/lib/postgresql-9.3/lib',--enable-new-dtags -Wl,-O1 -lpgport -lpgcommon -lxslt -lxml2 -lssl -lcrypto -lz -lreadline -lcrypt -ldl -lm  -o pg_ctl
x86_64-pc-linux-gnu-gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -I../../../src/include pg_basebackup.o receivelog.o streamutil.o  -L../../../src/port -lpgport -L../../../src/common -lpgcommon -L../../../src/interfaces/libpq -lpq -L../../../src/port -L../../../src/common -Wl,-O1 -L/bos/gcm_price/hal_backups/prefix/usr/lib  -L/bos/gcm_price/hal_backups/prefix/usr/lib/postgresql-9.3/lib -Wl,--as-needed -Wl,-rpath,'/bos/gcm_price/hal_backups/prefix/usr/lib/postgresql-9.3/lib',--enable-new-dtags -Wl,-O1 -lpgport -lpgcommon -lxslt -lxml2 -lssl -lcrypto -lz -lreadline -lcrypt -ldl -lm  -o pg_basebackup
make[3]: Leaving directory `/bos/gcm_price/hal_backups/prefix/var/tmp/portage/dev-db/postgresql-server-9.3.0/work/postgresql-9.3.0/src/bin/pg_ctl'
pg_basebackup.o: In function `BaseBackup':
pg_basebackup.c:(.text+0x1872): undefined reference to `tarCreateHeader'
pg_basebackup.c:(.text+0x1a2f): undefined reference to `escape_single_quotes_ascii'
collect2: error: ld returned 1 exit status


Here is the output of
> emerge --info '=dev-db/postgresql-server-9.3.0'

Portage 2.2.01.22124-prefix (prefix/linux/amd64, gcc-4.7.2, unavailable, 2.6.18-308.24.1.0.1.el5 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.18-308.24.1.0.1.el5-x86_64-Intel-R-_Xeon-R-_CPU_X7560_@_2.27GHz-with-redhat-5.8-Tikanga
KiB Mem:   264125584 total,  33650300 free
KiB Swap:  522188144 total, 521824700 free
Timestamp of tree: Wed, 11 Sep 2013 22:06:07 +0000
ld GNU ld (GNU Binutils) 2.23
app-shells/bash:          4.2_p39-r1
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.5-r2
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.69
sys-devel/automake:       1.12.4
sys-devel/binutils:       2.23
sys-devel/gcc:            4.6.3, 4.7.2-r1
sys-devel/gcc-config:     1.8-r00.1
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
Repositories: gentoo_prefix science
ACCEPT_KEYWORDS="~amd64-linux"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=24576 -mtune=generic -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=24576 -mtune=generic -pipe"
DISTDIR="/bos/gcm_price/hal_backups/prefix/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=core2 -mcx16 -msahf -mno-movbe -mno-aes -mno-pclmul -mno-popcnt -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm -mno-avx -mno-avx2 -mno-sse4.2 -mno-sse4.1 -mno-lzcnt -mno-rdrnd -mno-f16c -mno-fsgsbase --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=24576 -mtune=generic -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j16"
PKGDIR="/bos/gcm_price/hal_backups/prefix/usr/portage/packages"
PORTAGE_CONFIGROOT="/bos/gcm_price/hal_backups/prefix/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/bos/gcm_price/hal_backups/prefix/var/tmp"
PORTDIR="/bos/gcm_price/hal_backups/prefix/usr/portage"
PORTDIR_OVERLAY="/bos/gcm_price/hal_backups/prefix/var/lib/layman/science"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="X amd64 bash-completion berkdb bindist blas bzip2 cairo cli crypt curl curlwrappers cxx emacs flatfile fortran freetds gcj gdbm gtk gzip iconv libcaca mmx modules mpi ncurses nls nptl odbc openmp pango pcre pdf posix postgres prefix readline sasl spell sse sse2 ssl subversion tcl tcpd threads tk truetype unicode xft xml xorg zlib" ABI_X86="64" 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 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" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Aaron W. Swenson gentoo-dev 2013-09-15 20:38:17 UTC
Please try using a stable gcc. I am unable to reproduce this.
Comment 2 Robert McGehee 2013-09-16 15:04:22 UTC
(In reply to Aaron W. Swenson from comment #1)
> Please try using a stable gcc. I am unable to reproduce this.

Thanks, but I get nearly the same error using gcc 4.6.3 (Gentoo 4.6.3 p1.11, pie-0.5.2).

pg_basebackup.o: In function `BaseBackup':
pg_basebackup.c:(.text+0x18d9): undefined reference to `tarCreateHeader'
pg_basebackup.c:(.text+0x1aa1): undefined reference to `escape_single_quotes_ascii'

However, after some trial and error, I was able to "fix" the problem by setting USE="-xml", which then leads to a successful installation. Since I don't need XML support, this solution is fine for my needs.
Comment 3 Aaron W. Swenson gentoo-dev 2013-09-20 14:19:40 UTC
I still can't reproduce this issue. Which version of dev-libs/libxml2 and dev-libs/libxslt do you have installed?