Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 227403

Summary: libpqxx-2.6.8 fails to build with gcc-4.3
Product: Gentoo Linux Reporter: georgi
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED WONTFIX    
Severity: normal CC: jaak, rmedina
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description georgi 2008-06-16 11:26:50 UTC
The error message is:

Making all in src
make[1]: Entering directory `/var/tmp/portage/dev-libs/libpqxx-2.6.8/work/libpqxx-2.6.8/src'
if /bin/sh ../libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H  -I../include -I../include -I/usr/include/postgresql-8.3    -march=core2 -O2 -pipe -MT binarystring.lo -MD -MP -MF ".deps/binarystring.Tpo" -c -o binarystring.lo binarystring.cxx; \
        then mv -f ".deps/binarystring.Tpo" ".deps/binarystring.Plo"; else rm -f ".deps/binarystring.Tpo"; exit 1; fi
if /bin/sh ../libtool --tag=CXX --mode=compile x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H  -I../include -I../include -I/usr/include/postgresql-8.3    -march=core2 -O2 -pipe -MT cachedresult.lo -MD -MP -MF ".deps/cachedresult.Tpo" -c -o cachedresult.lo cachedresult.cxx; \
        then mv -f ".deps/cachedresult.Tpo" ".deps/cachedresult.Plo"; else rm -f ".deps/cachedresult.Tpo"; exit 1; fi
mkdir .libs
mkdir .libs
mkdir: cannot create directory `.libs': File exists
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I../include -I../include -I/usr/include/postgresql-8.3 -march=core2 -O2 -pipe -MT binarystring.lo -MD -MP -MF .deps/binarystring.Tpo -c binarystring.cxx  -fPIC -DPIC -o .libs/binarystring.o
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I../include -I../include -I/usr/include/postgresql-8.3 -march=core2 -O2 -pipe -MT cachedresult.lo -MD -MP -MF .deps/cachedresult.Tpo -c cachedresult.cxx  -fPIC -DPIC -o .libs/cachedresult.o
binarystring.cxx: In function 'std::string pqxx::escape_binary(const unsigned char*)':
binarystring.cxx:168: error: 'strlen' was not declared in this scope
binarystring.cxx: In function 'std::string pqxx::escape_binary(const char*)':
binarystring.cxx:178: error: 'strlen' was not declared in this scope
make[1]: *** [binarystring.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
 x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I../include -I../include -I/usr/include/postgresql-8.3 -march=core2 -O2 -pipe -MT cachedresult.lo -MD -MP -MF .deps/cachedresult.Tpo -c cachedresult.cxx -o cachedresult.o >/dev/null 2>&1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/libpqxx-2.6.8/work/libpqxx-2.6.8/src'
make: *** [all-recursive] Error 1
 *
 * ERROR: dev-libs/libpqxx-2.6.8 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2101:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-libs/libpqxx-2.6.8/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libpqxx-2.6.8/temp/environment'.
 *

emerge --info:

Portage 2.1.5.5 (default-linux/amd64/2007.0, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r4 x86_64 Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz
Timestamp of tree: Mon, 16 Jun 2008 11:00:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner --with-bdeps y --alphabetical"
FEATURES="collision-protect distlocks sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS=""
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="   "
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acpi alisp alsa amd64 amr amrnb amrwb ao archive audiofile bash-completion bios bluetooth boost branding bzip2 cairo calendar captury cdda cdio chm cli context cracklib crypt css curl cyrillic dbus dhcp djbfft djvu doc dri dts dvd dvdr dvdread dynamic eap-tls emovix encode exif extra extrafilters fam fame fbcondecor ffmpeg fftw firefox fits flac fluidsynth fontconfig fpx games gd gdbm gif glitz gmp gnuplot gnutls graphics graphviz gs gtk hal hdri hpn htmlhandbook humanities hyperestraier iconv icu id3tag idea idn imagemagick imlib inotify ipv6 isdnlog ithreads java javascript jbig jce joystick jpeg jpeg2k jsapi kde kig-scripting kipi ktts ladspa lame latex lcms libedit libffi libgcrypt libnotify libssh2 libwww lm_sensors lzo mad matroska mbrola midi mjpeg mmap mmx mng mod modplug mp3 mp4 mpeg mudflap musepack music ncurses network network-cron networkmanager nls nptl nptlonly nsplugin nuv odbc offensive ogg omega openal openexr opengl openmp oscar pam pango paste64 pcre pdf pg-intdatetime plotutils png portaudio postgres ppds pppd pstricks pth publishers python qemu qt3 qt3support qt4 quicktime rdesktop readline reflection rle rtsp sasl science sdl sdl-image session slang smp sndfile sound soundtouch speex spell spl sql sse sse2 ssl startup-notification stream subversion svg symlink theora threads tiff toolbar truetype unicode usb utempter vamp vcd visualization vlc vlm vnc vorbis vorbis-psy wavpack wideband wifi wmf x264 xcb xcomposite xetex xforms xml xmp xorg xprint xscreensaver xv xvid xvmc zip zlib zrtp" ALSA_CARDS="hda-intel" 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" 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 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" ELIBC="glibc" INPUT_DEVICES="evdev joystick mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Note that 2.6.9 is in Portage and works fine, but app-office/kexi requires 2.6.8.
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2008-06-16 13:53:55 UTC
We do only fix the latest ebuilds.
Comment 2 Andrew John Hughes 2008-11-29 11:44:38 UTC
This needs to be fixed as koffice depends on this version.  The same patch as for 2.6.9 can simply be applied.
Comment 3 Ramon Medina 2009-03-26 16:53:00 UTC
I would really like to compile koffice. Please fix this bug.
Comment 4 Jaak Ristioja 2009-06-25 13:34:02 UTC
(In reply to comment #3)
> I would really like to compile koffice. Please fix this bug.
> 

Since Gentoo is reluctant to fix 2.6.8, probably the simplest workaround is to merge version 2.6.9 instead, e.g. add the newer version to your package.keywords file.
Comment 5 Ramon Medina 2009-06-25 18:22:45 UTC
I have 2.6.9 merged right now, but koffice wants to downgrade to 2.6.8

Calculating dependencies... done!
[ebuild     UD] dev-libs/libpqxx-2.6.8 [2.6.9] 0 kB
[ebuild  N    ] app-office/koffice-1.6.3-r2  USE="doc mysql postgres -arts -debug -xinerama" 0 kB