Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135187 - dev-db/postgresql-7.3.15 compile failure; cubeparse.y
Summary: dev-db/postgresql-7.3.15 compile failure; cubeparse.y
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Alpha Linux
: Highest major (vote)
Assignee: PgSQL Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 134168
  Show dependency tree
 
Reported: 2006-06-01 11:13 UTC by Thomas Cort (RETIRED)
Modified: 2007-09-23 00:12 UTC (History)
3 users (show)

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


Attachments
error messages (postgres-7.3.15.txt,20.69 KB, text/plain)
2006-06-01 11:13 UTC, Thomas Cort (RETIRED)
Details
lex sources patch (postgresql-7.3.15-lex.patch,1.27 KB, patch)
2006-07-06 01:30 UTC, Giacomo Cariello
Details | Diff
lex sources patch (postgresql-7.3.15-lex.patch,1.27 KB, patch)
2006-07-06 01:57 UTC, Giacomo Cariello
Details | Diff
lex sources patch (postgresql-7.3.15-lex.patch,1.27 KB, patch)
2006-07-06 02:07 UTC, Giacomo Cariello
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Cort (RETIRED) gentoo-dev 2006-06-01 11:13:11 UTC
postgresql-7.3.15 failed to compile. The error messages are long, so I'll make an attachment.

# emerge --info
Portage 2.1_rc1-r2 (default-linux/alpha/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.14.2 alpha)
=================================================================
System uname: 2.6.14.2 alpha EV56
Gentoo Base System version 1.12.0_pre19
distcc 2.18.3 alpha-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="alpha ~alpha"
AUTOCLEAN="yes"
CBUILD="alpha-unknown-linux-gnu"
CFLAGS="-mieee -pipe -O2 -mcpu=ev56"
CHOST="alpha-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-mieee -pipe -O2 -mcpu=ev56"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks metadata-transfer sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j10"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="alpha X alsa apache2 arts berkdb bitmap-fonts cli crypt cups dri eds encode esd foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib isdnlog jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nptl nptlonly ogg opengl oss pam pcre pdflib perl png pppd python qt quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml xmms xorg xv zlib elibc_glibc kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Thomas Cort (RETIRED) gentoo-dev 2006-06-01 11:13:51 UTC
Created attachment 88120 [details]
error messages
Comment 2 Konstantin Arkhipov (RETIRED) gentoo-dev 2006-06-01 12:05:15 UTC
uhh.

it's probably need <flex-2.5.30.

please, try it with =flex-2.5.4a-r6
Comment 3 Tobias Scherbaum (RETIRED) gentoo-dev 2006-06-01 12:10:42 UTC
Also fails on ppc, same error messages.

Downgrading flex isn't an option from my pov, as flex isn't slotted.
Comment 4 Gustavo Zacarias (RETIRED) gentoo-dev 2006-06-01 12:49:48 UTC
same for sparc.
Comment 5 René Nussbaumer (RETIRED) gentoo-dev 2006-06-03 08:23:40 UTC
Stable on hppa
Comment 6 Jason Wever (RETIRED) gentoo-dev 2006-06-25 16:32:19 UTC
As comment #2 suggests, postgres-7.3.15 builds fine with flex-2.5.4a-r6 on SPARC
Comment 7 Joshua Jackson (RETIRED) gentoo-dev 2006-06-29 21:40:52 UTC
Same problem on x86, as well. I concur that the older version of flex is not a solution that we should go down as a true fix. Especially considering what version we have stable on most arches now.
Comment 8 Christian Faulhammer (RETIRED) gentoo-dev 2006-06-29 23:08:37 UTC
Is this still a problem?  Because newer versions like 7.4.13 and 8.0.8 are stable.
Comment 9 Giacomo Cariello 2006-07-06 01:30:05 UTC
Created attachment 91025 [details, diff]
lex sources patch

The attached patch fixes compilation on x86 with flex-2.5.33-r1 and USE="java libg++ nls pam perl python readline ssl zlib -doc -tcltk -threads".

emerge --info follows:

Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1000MHz
Gentoo Base System version 1.6.15
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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-r3
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-mtune=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cli crypt cups dlloader dri eds emboss encode esd foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog java jpeg kde libg++ libwww mad mailwrapper mikmod motif mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 10 Giacomo Cariello 2006-07-06 01:57:20 UTC
Created attachment 91027 [details, diff]
lex sources patch

The attached patch fixes compilation on x86 with flex-2.5.33-r1 and USE="java libg++ nls pam perl python readline ssl zlib -doc -tcltk -threads".

emerge --info follows:

Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1000MHz
Gentoo Base System version 1.6.15
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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-r3
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-mtune=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cli crypt cups dlloader dri eds emboss encode esd foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog java jpeg kde libg++ libwww mad mailwrapper mikmod motif mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 11 Giacomo Cariello 2006-07-06 02:07:05 UTC
Created attachment 91030 [details, diff]
lex sources patch

The attached patch fixes compilation on x86 with flex-2.5.33-r1 and USE="java libg++ nls pam perl python readline ssl zlib -doc -tcltk -threads".

emerge --info follows:

Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-gentoo-r9 i686)
=================================================================
System uname: 2.6.16-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1000MHz
Gentoo Base System version 1.6.15
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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-r3
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-mtune=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-mtune=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts avi berkdb bitmap-fonts cli crypt cups dlloader dri eds emboss encode esd foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 isdnlog java jpeg kde libg++ libwww mad mailwrapper mikmod motif mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl png pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml xmms xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 12 Giacomo Cariello 2006-07-06 02:43:12 UTC
Actually, it looks like gentoo bugzilla is buggy and returns Internal Server Error 500, but infact accepts the post.
Comment 13 Konstantin Arkhipov (RETIRED) gentoo-dev 2006-07-12 11:03:53 UTC
7.3.15-r1 with patch from Giacomo Cariello committed in portage.
Comment 14 Tobias Scherbaum (RETIRED) gentoo-dev 2006-07-16 05:13:54 UTC
ppc stable
Comment 15 Luca Longinotti (RETIRED) gentoo-dev 2006-08-07 02:32:29 UTC
Reminder to all CCed arches: please stable dev-db/libpq-7.3.15 and dev-db/postgresql-7.3.15-r1 ASAP wrt bug #134168 (security bug with exploits et all running around). The compile failure was now fixed and I can confirm compilation is ok on x86, and ppc/mips already marked it stable, so please test and mark stable, tnx!
Best regards, CHTEKK.
Comment 16 Thomas Cort (RETIRED) gentoo-dev 2006-08-10 13:40:01 UTC
(In reply to comment #15)
> Reminder to all CCed arches: please stable dev-db/libpq-7.3.15 and
> dev-db/postgresql-7.3.15-r1 ASAP wrt bug #134168 (security bug with exploits
> et all running around). The compile failure was now fixed and I can confirm
> compilation is ok on x86, and ppc/mips already marked it stable, so please
> test and mark stable, tnx!
> Best regards, CHTEKK.

alpha and amd64 stable.

A note on testing...

emerge --config failed. I had to add "kernel.sem = 512 32000 100 512" to /etc/sysctl.conf and run `sysctl -p`. It was failing with the following message "IpcSemaphoreCreate: semget(key=129, num=17, 03600) failed: No space left on device"

`/etc/init.d/postgresql start` also failed. I had to lower the values for -N and -B in /etc/conf.d/postgresql. It was failing with the following message: "IpcMemoryCreate: shmget(key=5432001, size=38461440, 03600) failed: Invalid argument"
Comment 17 Jason Wever (RETIRED) gentoo-dev 2006-08-10 19:51:50 UTC
Stable on SPARC
Comment 18 Sander Knopper 2006-08-15 05:49:01 UTC
on x86:

[ebuild  N    ] dev-db/libpq-7.3.15  USE="nls readline ssl zlib -kerberos -pam"
[ebuild  N    ] dev-db/postgresql-7.3.15-r1  USE="nls readline ssl zlib -doc -java -libg++ -pam -perl -python -tcl -threads -tk"


libpq went fine.

postgresql compiled without any serious issues.
Setting up the initial database caused no errors after which I started the daemon, created a database and played around a bit. Everything worked fine.


emerge --info
------------------------------------------------------------------

Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.17-gentoo-r5 i686)
=================================================================
System uname: 2.6.17-gentoo-r5 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks metadata-transfer sandbox sfperms strict test"
GENTOO_MIRRORS="http://gentoo.nedlinux.nl ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo/"
LINGUAS="en nl"
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"
SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac acpi alsa avi bitmap-fonts bzip2 cairo cdparanoia cli crypt ctype cups dlloader dri dvd dvdread firefox foomaticdb ftp gd gdbm gif gtk2 iconv icu idn jpeg jpeg2k kde kdeenablefinal libwww mad mmx mmxext mozsvg mp3 mpeg mplayer msn ncurses network nls nomotif nptl nptlonly nsplugin ogg opengl pcre pdflib php png posix ppds pppd qt3 qt4 quicktime rdesktop readline reflection rtc session sharedmem sockets spl sse sse2 ssl svg tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode userlocales vorbis win32codecs xml xorg xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en linguas_nl userland_GNU video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 19 Joshua Jackson (RETIRED) gentoo-dev 2006-08-15 21:15:19 UTC
glad to see this working, I'm just going to say x86 stable ^.^
Comment 20 Luca Longinotti (RETIRED) gentoo-dev 2006-09-30 08:27:23 UTC
~arm ~hppa ~ia64 ~s390 ~sh: please keyword this ASAP to fix the compile failures and the security issue (bug #134168). Thanks!
Best regards, CHTEKK.
Comment 21 Jeroen Roovers (RETIRED) gentoo-dev 2006-10-01 07:57:32 UTC
HPPA done.
Comment 22 Luca Longinotti (RETIRED) gentoo-dev 2006-11-07 15:00:26 UTC
This is long fixed... Closing.
Best regards, CHTEKK.