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

Bug 281206

Summary: www-apache/mod_python-3.3.1-r1 - mod_python.c:564: error: 'ap_unixd_config' undeclared
Product: Gentoo Linux Reporter: Wim Muskee <wimmuskee>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: krzysztof
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Wim Muskee 2009-08-12 12:49:28 UTC
I get the following failure when I try to merge mod_python:

>>> Emerging (1 of 5) www-apache/mod_python-3.3.1-r1
 * mod_python-3.3.1.tgz RMD160 SHA1 SHA256 size ;-) ...                                                                   [ ok ]
 * checking ebuild checksums ;-) ...                                                                                      [ ok ]
 * checking auxfile checksums ;-) ...                                                                                     [ ok ]
 * checking miscfile checksums ;-) ...                                                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking mod_python-3.3.1.tgz to /var/tmp/portage/www-apache/mod_python-3.3.1-r1/work
>>> Source unpacked in /var/tmp/portage/www-apache/mod_python-3.3.1-r1/work
>>> Preparing source in /var/tmp/portage/www-apache/mod_python-3.3.1-r1/work/mod_python-3.3.1 ...
 * Applying mod_python-apr_brigade_sentinel.patch ...                                                                      [ ok ]
 * Applying mod_python-3.3.1-apache-2.4.patch ...                                                                          [ ok ]
 * Applying mod_python-3.3.1-LDFLAGS.patch ...                                                                             [ ok ]
 * Running eautoreconf in '/var/tmp/portage/www-apache/mod_python-3.3.1-r1/work/mod_python-3.3.1' ...
 * Running aclocal ...                                                                                                     [ ok ]
 * Running autoconf ...                                                                                                    [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/www-apache/mod_python-3.3.1-r1/work/mod_python-3.3.1 ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/inf
o --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --with-apxs=/usr/sbin/apxs2
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 ISO C89... 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.11
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.6
checking Python install prefix... /usr
checking checking where python libraries are installed... /usr/lib64/python2.6
checking for Py_NewInterpreter in -lpython2.6... yes
checking what libraries Python was linked with... -lpython2.6   -lpthread -ldl  -lutil   -lm                
checking linker flags used to link Python... checking where Python include files are... -I/usr/include/python2.6
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
>>> Source configured.
>>> Compiling source in /var/tmp/portage/www-apache/mod_python-3.3.1-r1/work/mod_python-3.3.1 ...
make -j2 'OPT=-march=core2 -msse4 -msse4.1 -msse4.2 -mcx16 -msahf -O2 -pipe -fPIC' 
make[1]: Entering directory `/var/tmp/portage/www-apache/mod_python-3.3.1-r1/work/mod_python-3.3.1/src'

Compiling for DSO.

/usr/sbin/apxs2 -I/var/tmp/portage/www-apache/mod_python-3.3.1-r1/work/mod_python-3.3.1/src/include -I/usr/include/apache2 -I/usr
/include/python2.6 -c mod_python.c _apachemodule.c requestobject.c tableobject.c util.c serverobject.c connobject.c filterobject.
c hlist.c hlistobject.c finfoobject.c -Wl,-O1 -L/usr/lib64/python2.6/config  -Xlinker -export-dynamic  -lm  -lpython2.6   -lpthre
ad -ldl  -lutil   -lm                 
/usr/bin/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -prefer-pic -march=core2 -msse4 -msse4.1 -msse4.2 -mcx16 -msahf 
-O2 -pipe  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1  -I/
var/tmp/portage/www-apache/mod_python-3.3.1-r1/work/mod_python-3.3.1/src/include -I/usr/include/apache2 -I/usr/include/python2.6 
 -c -o mod_python.lo mod_python.c && touch mod_python.slo
mod_python.c: In function 'init_mutexes':
mod_python.c:564: error: 'ap_unixd_config' undeclared (first use in this function)
mod_python.c:564: error: (Each undeclared identifier is reported only once
mod_python.c:564: error: for each function it appears in.)
mod_python.c: In function 'python_init':
mod_python.c:826: warning: initialization from incompatible pointer type
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-r1/work/mod_python-3.3.1/src'
make: *** [do_dso] Error 2
 * 
 * ERROR: www-apache/mod_python-3.3.1-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3533:  Called die
 * The specific snippet of code:
 *       emake OPT="`apxs2 -q CFLAGS` -fPIC" || 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/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'.
 * 

Giving the same results using apr-1.3.5 to apr-1.3.8.


emerge --info:

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7400_@_2.80GHz-with-gentoo-1.12.11.1
Timestamp of tree: Sun, 09 Aug 2009 10:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -msse4 -msse4.1 -msse4.2 -mcx16 -msahf -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"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -msse4 -msse4.1 -msse4.2 -mcx16 -msahf -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/sunrise /usr/local/portage/layman/bangert /usr/local/portage/layman/flavour /usr/local/portage/layman/ltsp-dev"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa amd64 apache2 bash-completion branding bzip2 cgi cli cracklib crypt ctype curl dri exif expat fastcgi fortran gif graphics gtk guidexml icc iconv imagemagick innodb ipv6 isdnlog ithreads jabber java jpeg kpathsea mailwrapper mmx mp3 msn mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ogg openmp pam pcre perl php png pppd pulseaudio python qt3 readline reflection ruby sdk session spl sql sse sse2 ssl svg sysfs syslog tcpd theora threads tiff tokenizer truetype unicode vhosts vorbis wav x264 xml xorg xulrunner xvid 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="alias autoindex auth_basic auth_digest authn_dbd authn_default authz_host         cache   dav dbd deflate dir     filter  log_config logio        mem_cache mime mime_magic        negotiation     proxy proxy_http        rewrite         userdir         vhost_alias" APACHE2_MPMS="worker" CAMERAS="canon" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Krzysiek 2009-08-12 16:41:55 UTC
Confirmed on i686.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-13 01:33:24 UTC
You failed to run `emerge --sync`.

*** This bug has been marked as a duplicate of bug 280904 ***