Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 230211 - www-apache/mod_python-3.3.1 - connobject.c:142: error: request for member 'next' in something not a structure or union
Summary: www-apache/mod_python-3.3.1 - connobject.c:142: error: request for member 'ne...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-30 15:54 UTC by Darren Dale
Modified: 2008-08-26 20:12 UTC (History)
10 users (show)

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


Attachments
mod_python-3.3.1-r1.ebuild (mod_python-3.3.1-r1.ebuild,1.61 KB, text/plain)
2008-07-14 23:20 UTC, cilly
Details
mod_python-apr_brigade_sentinel.patch (mod_python-apr_brigade_sentinel.patch,520 bytes, text/plain)
2008-07-14 23:21 UTC, cilly
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Darren Dale 2008-06-30 15:54:52 UTC
I get the following failure when I try to merge mod_python:

Emerging (3 of 4) www-apache/mod_python-3.3.1 to /
 * mod_python-3.3.1.tgz RMD160 SHA1 SHA256 size ;-) ...                                 [ ok ]
 * checking ebuild checksums ;-) ...                                                    [ ok ]
 * checking auxfile checksums ;-) ...                                                   [ ok ]
 * checking miscfile checksums ;-) ...                                                  [ ok ]
 * checking mod_python-3.3.1.tgz ;-) ...                                                [ ok ]
>>> Unpacking source...
>>> Unpacking mod_python-3.3.1.tgz to /var/tmp/portage/www-apache/mod_python-3.3.1/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/www-apache/mod_python-3.3.1/work/mod_python-3.3.1 ...
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-apxs=/usr/sbin/apxs2 --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for ar... ar
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... yes
checking for main in -lm... yes
checking for an ANSI C-conforming const... yes
checking your blood pressure... a bit high, but we can proceed
configure: checking whether apxs is available...
checking for --with-apxs... /usr/sbin/apxs2 executable, good
checking Apache version... 2.2.9
checking for Apache libexec directory... /usr/lib64/apache2/modules
checking for Apache include directory... -I/usr/include/apache2
checking for --with-python... no
checking for python... /usr/bin/python
checking Python version... 2.5
checking Python install prefix... /usr
checking checking where python libraries are installed... /usr/lib64/python2.5
checking for Py_NewInterpreter in -lpython2.5... yes
checking what libraries Python was linked with... -lpython2.5   -lpthread -ldl  -lutil   -lm  
checking linker flags used to link Python...
checking where Python include files are... -I/usr/include/python2.5
checking for --with-python-src... no
checking for --with-mutex-dir... no
Using MUTEX_DIR /tmp
checking for --with-max-locks... no
Using 8 MAX_LOCKS.
checking for --with-flex... no
checking for flex... /usr/bin/flex
found /usr/bin/flex, we'll use this. Use --with-flex to specify another.
checking flex version... 2.5.35. Good
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating Doc/Makefile
config.status: creating src/include/mod_python.h
config.status: creating test/Makefile
config.status: creating test/testconf.py
config.status: creating dist/setup.py
config.status: creating dist/Makefile
make[1]: Entering directory `/var/tmp/portage/www-apache/mod_python-3.3.1/work/mod_python-3.3.1/src'

Compiling for DSO.

/usr/sbin/apxs2 -I/var/tmp/portage/www-apache/mod_python-3.3.1/work/mod_python-3.3.1/src/include -I/usr/include/apache2 -I/usr/include/python2.5 -c mod_python.c _apachemodule.c requestobject.c tableobject.c util.c serverobject.c connobject.c filterobject.c hlist.c hlistobject.c finfoobject.c -L/usr/lib64/python2.5/config  -Xlinker -export-dynamic    -L.   -lm  -lpython2.5   -lpthread -ldl  -lutil   -lm
/usr/bin/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -prefer-pic -O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include/db4.5 -I/var/tmp/portage/www-apache/mod_python-3.3.1/work/mod_python-3.3.1/src/include -I/usr/include/apache2 -I/usr/include/python2.5  -c -o mod_python.lo mod_python.c && touch mod_python.slo
mod_python.c: In function 'python_init':
mod_python.c:826: warning: initialization from incompatible pointer type
/usr/bin/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -prefer-pic -O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include/db4.5 -I/var/tmp/portage/www-apache/mod_python-3.3.1/work/mod_python-3.3.1/src/include -I/usr/include/apache2 -I/usr/include/python2.5  -c -o _apachemodule.lo _apachemodule.c && touch _apachemodule.slo
/usr/bin/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -prefer-pic -O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include/db4.5 -I/var/tmp/portage/www-apache/mod_python-3.3.1/work/mod_python-3.3.1/src/include -I/usr/include/apache2 -I/usr/include/python2.5  -c -o requestobject.lo requestobject.c && touch requestobject.slo
/usr/bin/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -prefer-pic -O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include/db4.5 -I/var/tmp/portage/www-apache/mod_python-3.3.1/work/mod_python-3.3.1/src/include -I/usr/include/apache2 -I/usr/include/python2.5  -c -o tableobject.lo tableobject.c && touch tableobject.slo
tableobject.c:329: warning: initialization from incompatible pointer type
tableobject.c:1092: warning: initialization from incompatible pointer type
/usr/bin/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -prefer-pic -O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include/db4.5 -I/var/tmp/portage/www-apache/mod_python-3.3.1/work/mod_python-3.3.1/src/include -I/usr/include/apache2 -I/usr/include/python2.5  -c -o util.lo util.c && touch util.slo
/usr/bin/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -prefer-pic -O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include/db4.5 -I/var/tmp/portage/www-apache/mod_python-3.3.1/work/mod_python-3.3.1/src/include -I/usr/include/apache2 -I/usr/include/python2.5  -c -o serverobject.lo serverobject.c && touch serverobject.slo
serverobject.c:387: warning: initialization from incompatible pointer type
/usr/bin/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -prefer-pic -O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1 -I/usr/include/db4.5 -I/var/tmp/portage/www-apache/mod_python-3.3.1/work/mod_python-3.3.1/src/include -I/usr/include/apache2 -I/usr/include/python2.5  -c -o connobject.lo connobject.c && touch connobject.slo
connobject.c: In function '_conn_read':
connobject.c:142: error: request for member 'next' in something not a structure or union
apxs:Error: Command failed with rc=65536
.
make[1]: *** [mod_python.so] Error 1
make[1]: Leaving directory `/var/tmp/portage/www-apache/mod_python-3.3.1/work/mod_python-3.3.1/src'
make: *** [do_dso] Error 2
 *
 * ERROR: www-apache/mod_python-3.3.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 1182:  Called die
 * The specific snippet of code:
 *       emake OPT="`apxs2 -q CFLAGS` -fPIC" || die "econf failed"
 *  The die message:
 *   econf failed
 *


Reproducible: Always





emerge --info:

Portage 2.2_rc1 (default-linux/amd64/2007.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.25-gentoo-r5-x86_64-Dual_Core_AMD_Opteron-tm-_Processor_275-with-glibc2.2.5
Timestamp of tree: Mon, 30 Jun 2008 12:03:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r5
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
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-r2
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="-O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer"
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/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config /var/lib/hsqldb"
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/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=k8 -mtune=k8 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks fixpackages parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
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 en_US"
MAKEOPTS="-j5"
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="/usr/local/layman/soor-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aac acl acpi alsa amd64 apache2 arts atlas avahi bash-completion berkdb blas bookmarks branding bzip2 cairo cblas cdr cli cracklib crypt ctype cups dbus doc dri dvd dvdr dvdread eds emacs emboss encode esd evo examples f77 fam fftw firefox foomativdb fortran gdbm gfortran gif gimpprint glitz gpm gstreamer gtk hal iconv imagemagick imap isdnlog ivman java jpeg jpeg2k kde kdrive kerberos lapack latex ldap lzo mad mdnsresponder-compat midi mikmod mime mmap mmx mozbranding mozilla mozsvg mp3 mpeg mplayer mudflap multislot ncurses newspr nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl pertty pic png ppds pppd python qt3 qt3support qt4 quicktime readline reflection rss samba sdl session spell spl sse sse2 ssl subversion svg symlink tcltk tcpd tetex threads tiff tk transparency truetype ubuntu umfpack unicode usb v4l v4l2 vorbis webdav winbind xcomposite xfs xft xinerama xml xorg xulrunner xv zeroconf zlib" 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" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nvidia vga nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Pedro Ferreira 2008-07-03 12:25:43 UTC
Same here...
Comment 2 Michał Lipski 2008-07-04 06:33:21 UTC
confirmed
Comment 3 Jan Van Uytven 2008-07-07 16:08:04 UTC
Confirmed on x86_64.

Comment 4 Jan Van Uytven 2008-07-07 16:17:01 UTC
Downloaded the 3.3.1 source from the Apache site and tried to compile, and got the same error.  So it looks like an upstream bug. :(
Comment 5 Jan Van Uytven 2008-07-07 16:26:28 UTC
Looks like the problem is with apr 1.3.2, see:

http://www.mail-archive.com/dev@apr.apache.org/msg20588.html
Comment 6 Jan Van Uytven 2008-07-07 17:20:20 UTC
There's two potential workarounds to this:

1.  Downgrading to apr-1.3.0 allows you to emerge mod_python-3.3.1.  Not sure what the deleterious effects of downgrading may be, hopefully nothing serious.

2.  You can download the source and implement a suggested fix - on line 142 of connobject.c you can replace 

!(b == APR_BRIGADE_SENTINEL(b) ||

with 

!(b == APR_BRIGADE_SENTINEL(bb) ||

suggested here:
http://www.mail-archive.com/dev@apr.apache.org/msg20588.html

However this is obviously untested, though it compiles fine.

Comment 7 cilly 2008-07-14 23:20:16 UTC
Created attachment 160399 [details]
mod_python-3.3.1-r1.ebuild

ebuild with fix from: http://bugs.gentoo.org/show_bug.cgi?id=230211#c6
Comment 8 cilly 2008-07-14 23:21:18 UTC
Created attachment 160400 [details]
mod_python-apr_brigade_sentinel.patch

patch for ebuild: http://bugs.gentoo.org/attachment.cgi?id=160399
Comment 9 cilly 2008-07-15 10:01:46 UTC
Tested ebuild:
http://bugs.gentoo.org/show_bug.cgi?id=230211#c7

with patch:
http://bugs.gentoo.org/show_bug.cgi?id=230211#c8

Pls check and add to portage tree, since it is required by Apache 2.2.9 which is marked stable already.

Portage 2.1.4.4 (hardened/x86/2.6, gcc-4.2.4, glibc-2.6.1-r1, 2.6.24-r3 i686)
=================================================================
System uname: 2.6.24-r3 i686 VIA Nehemiah
Timestamp of tree: Sun, 13 Jul 2008 13:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=i686 -msse -mmmx -mfpmath=sse -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict suidctl unmerge-orphans"
GENTOO_MIRRORS="rsync://ftp.join.uni-muenster.de/gentoo                 rsync://ftp-stud.fht-esslingen.de/gentoo                 rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo                 ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo                 ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror                 ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo                 ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo                 ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo                 ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo                 ftp://ftp.tu-clausthal.de/pub/linux/gentoo                 ftp://ftp.mneisen.org/gentoo                 ftp://pandemonium.tiscali.de/pub/gentoo                 http://pandemonium.tiscali.de/pub/gentoo                 http://distfiles.gentoo.org                 http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
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="/usr/local/portage /usr/local/toolchain-overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl apache2 bash-completion berkdb bzip2 caps cracklib crypt ctype curl fam gd gmp hardened idn imap innodb ipv6 jbig jpeg jpeg2k libwww lm_sensors maildir mhash midi mmx mysql ncurses nls nptl nptlonly pam pcre perl pic png posix python random readline sasl session snmp sockets ssl tcpd threads tiff unicode usb vhosts x86 xattr xml zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 10 Henk 2008-07-16 22:12:36 UTC
How does this patch work, do I need to untar the tarball in my /usr/portage/distfiles and then make changes to that file as indicated below? 
Or is there any indication when the patch will be applied to the ebuild and that everythin works right of the box. I'm fairly new to this patching of stuff by hand so any hints or help would be appreciated.

Thanks in advance..
Comment 11 Ferris McCormick (RETIRED) gentoo-dev 2008-07-20 22:16:22 UTC
Caught me on sparc as a side effect of python version bump.  (It does not happen with stable apr-1.2.11.)
Comment 12 David Voge 2008-07-30 21:17:20 UTC
same here.
Comment 13 Francesco Riosa 2008-07-31 11:49:04 UTC
Reassuming:
The bug is from mod_python, it's exposed by apr >= 1.3.1, see
http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2008-July/145780.html
Comment 14 John J. Aylward 2008-08-13 19:23:08 UTC
dev-libs/apr-1.3.2 went stable on some platforms, but this bug is still here. Can we get something in portage so we don't have to mask apr?
Comment 15 Jesus Rivero (RETIRED) gentoo-dev 2008-08-14 17:09:03 UTC
Hello, 

   I've got dev-libs/apr-1.3.2 and www-apache/mod_python-3.3.1 compiles fine. I applied the patch mod_python-apr_brigade_sentinel.patch and it continues to work/compile OK. Could you guys confirm that this patch works for you so I can bump it?

Regards, 
Comment 16 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2008-08-14 20:07:07 UTC
I can confirm on x86 - mod_python emerged and worked fine after applying the patch (on my system it was necessary to compile).
Comment 17 Nick Dowsett 2008-08-15 00:44:05 UTC
Confirmed on amd64 - with dev-libs/apr-1.3.2, www-apache/mod_python-3.3.1 compiled and worked fine when I applied the patch.
Comment 18 Marek Sapota 2008-08-15 21:58:30 UTC
Patched ebuild also dies for me:
 * Messages for package www-apache/mod_python-3.3.1-r1:

 * Applying mod_python-apr_brigade_sentinel.patch ...
 *
 * ERROR: www-apache/mod_python-3.3.1-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_install
 *             environment, line 2559:  Called apache-module_src_install
 *             environment, line  388:  Called die
 * The specific snippet of code:
 *           newins "${FILESDIR}/${1}.conf" "$(basename ${2:-$1}).conf" || die "internal ebuild error: '${FILESDIR}/${1}.conf' not found";
 *  The die message:
 *   internal ebuild error: '/usr/portage/local/overlay/www-apache/mod_python/files/16_mod_python.conf' not found
 *
 * 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/www-apache/mod_python-3.3.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-apache/mod_python-3.3.1-r1/temp/environment'.
 *


Portage 2.2_rc8 (default/linux/amd64/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r6 x86_64)
=================================================================                                               
System uname: Linux-2.6.25-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T5250_@_1.50GHz-with-glibc2.2.5          
Timestamp of tree: Fri, 15 Aug 2008 11:04:01 +0000                                                              
app-shells/bash:     3.2_p39                                                                                    
dev-java/java-config: 1.3.7, 2.1.6-r1                                                                           
dev-lang/python:     2.5.2-r7                                                                                   
dev-python/pycrypto: 2.0.1-r6                                                                                   
sys-apps/baselayout: 2.0.0                                                                                      
sys-apps/openrc:     0.2.5                                                                                      
sys-apps/sandbox:    1.2.18.1-r3                                                                                
sys-devel/autoconf:  2.13, 2.62-r1                                                                              
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-r3                                                                                    
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=native -O2 -pipe"                                                                                
CHOST="x86_64-pc-linux-gnu"                                                                                     
CONFIG_PROTECT="/etc /usr/kde/4.1/env /usr/kde/4.1/share/config /usr/kde/4.1/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="collision-protect distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en_GB en pl"
MAKEOPTS="-j4"
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="/usr/local/portage/layman/java-overlay /usr/local/portage/layman/sunrise /usr/local/portage/layman/gnash-cvs /usr/local/portage/layman/bazaar /usr/local/portage/layman/kdesvn-portage /usr/portage/local/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi addressbook alsa amd64 apache2 archive audiofile bash-completion berkdb bindist bittorrent bluetooth branding bsf bzip2 cairo caps cdio cdparanoia cdr chroot cli cracklib crypt cups dbus disk-partition dri dvd dvdr dvdread eds emboss encode esd evo exif exiv2 expat fam fat fbcon firefox flac fortran fuse gcj gdbm gdl gif git glib glitz gmp gnome gnome-keyring gnutls gpg gpm gps gstreamer gtk gtkhtml hal hfs hpn htmlhandbook iceweasel iconv imagemagick imlib ipv6 isdnlog jabber java jfs jpeg jpeg2k kde kerberos laptop lcms ldap libnotify libsamplerate lm_sensors mad marble matroska midi mikmod mmxmmxext mng mp3 mpeg mudflap multilib musepack musicbrainz ncurses nepomuk network-cron networkmanager nls nptl nptlonly ntfs ogg opengl openmp pam pcre pdf perl php plasma png ppds pppd pulseaudio python qt3support qt4 quicktime readline reflection reiser4 reiserfs ruby samba sasl scrobbler sdl sdl-image sessionsftp smp sndfile speex spell spl sqlite sqlite3 srt sse sse2 ssh ssl ssse3 startup-notification stream subversion svg symlink sysfs taglib tagwriting tcpd theora threads tiff tk toolbar truetype twolame unicode usb utils v4l v4l2 vcd vcdx vim-syntax vlm vorbis xattr xfs xft xinerama xml xorg xulrunner xv zero zip zlib" ALSA_CARDS="snd-hda-intel" 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 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="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en pl" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 19 Nick Dowsett 2008-08-16 02:29:05 UTC
(In reply to comment #18)
# cp /usr/portage/www-apache/mod_python/files/* /usr/portage/local/overlay/www-apache/mod_python/files/
Comment 20 Jesus Rivero (RETIRED) gentoo-dev 2008-08-16 03:33:50 UTC
(In reply to comment #18)
> Patched ebuild also dies for me:
>  * Messages for package www-apache/mod_python-3.3.1-r1:
> 
>  * Applying mod_python-apr_brigade_sentinel.patch ...
>  *
>  * ERROR: www-apache/mod_python-3.3.1-r1 failed.
>  * Call stack:
>  *               ebuild.sh, line   49:  Called src_install
>  *             environment, line 2559:  Called apache-module_src_install
>  *             environment, line  388:  Called die
>  * The specific snippet of code:
>  *           newins "${FILESDIR}/${1}.conf" "$(basename ${2:-$1}).conf" || die
> "internal ebuild error: '${FILESDIR}/${1}.conf' not found";

Hello Marek, 
   
  You have to copy 16_mod_python.conf from /usr/portage/www-apache/mod_python/files to your overlay for it to work

Regards, 
Comment 21 Marek Sapota 2008-08-16 09:04:44 UTC
It works now, thanks!
Comment 22 Matt Summers (RETIRED) gentoo-dev 2008-08-22 17:56:06 UTC
Why is this fix not in the portage tree? Seems like the solution in well known at the moment.  Does the package maintainer need assistance in closing this bug?
 Please remedy this bug as soon as possible, for the love of $deity.
Comment 23 Jesus Rivero (RETIRED) gentoo-dev 2008-08-22 20:14:47 UTC
(In reply to comment #22)
> Why is this fix not in the portage tree? Seems like the solution in well known
> at the moment.  Does the package maintainer need assistance in closing this
> bug?
>  Please remedy this bug as soon as possible, for the love of $deity.
> 

Hello Matt, 

  I don't think this is the best way to ask for a feature. I need one more person to confirm this works on an amd64 before I can close this bug. Are you the one missing?

Best regards, 
Comment 24 Jasper Bryant-Greene 2008-08-23 20:13:30 UTC
Compiles and runs fine for me on amd64.
Comment 25 ruckc 2008-08-24 06:30:02 UTC
compiles and works fine for me.
Comment 26 Charles Stewart 2008-08-24 19:11:33 UTC
confirmed fix on x86
Comment 27 Jesus Rivero (RETIRED) gentoo-dev 2008-08-25 01:53:50 UTC
www-apache/mod_python-3.3.1-r1.ebuild has been added to the tree. Thanks Cilly for the patch and thank you all for testing and confirming. 

Best regards, 
Comment 28 Matt Summers (RETIRED) gentoo-dev 2008-08-26 02:39:18 UTC
Thanks for the fix!

Builds & functions as expected on hardened(server) amd64 & stable gentoo amd64

Best
Comment 29 Jesus Rivero (RETIRED) gentoo-dev 2008-08-26 03:57:17 UTC
(In reply to comment #30)
> Thanks for the fix!
> 
> Builds & functions as expected on hardened(server) amd64 & stable gentoo amd64
> 
> Best
> 

No problem, glad I can help :)
Comment 30 Axel Dyks 2008-08-26 20:12:34 UTC
(In reply to comment #27)
> www-apache/mod_python-3.3.1-r1.ebuild has been added to the tree. Thanks Cilly
> for the patch and thank you all for testing and confirming. 
> 
> Best regards, 
> 

Yes! Indeed thanks to Cilly!
Please stabilize (also) for x86.

Cheers
Axel