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

Bug 281104

Summary: www-apache/mod_python-3.3.1-r1 compile fails on undeclared ap_unixd_config
Product: Gentoo Linux Reporter: Noah Sheppard <nlshep>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Noah Sheppard 2009-08-11 13:39:01 UTC
Reproducibility: 100%

What happens:
When I attempt to compile =www-apache/mod_python-3.3.1-r1 on amd64, the compile fails because 'ap_unixd_config' is undeclared:

/usr/bin/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -prefer-pic -O2 -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.6 -I/exclude/port-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 `/exclude/port-tmp/portage/www-apache/mod_python-3.3.1-r1/work/mod_python-3.3.1/src'
make: *** [do_dso] Error 2

What should happen: Compile should succeed.

The previous version of mod_python in portage (3.3.1) used "unixd_config", which is provided in /usr/include/apache2/unixd.h (part of www-servers/apache).  mod_python-3.3.1-r1 changes this to "ap_unixd_config", which doesn't seem to be provided in stable apache on amd64 (currently 2.2.11-r3).

As shown here (http://svn.apache.org/viewvc/httpd/httpd/trunk/os/unix/unixd.h?view=log&r1=7394&pathrev=739487), revision 722399 in apache's svn repo changed unixd_config to ap_unixd_config, but this change has apparently not been merged into any of the apache versions in portage.

emerge --info:
Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, 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-_i7_CPU_920_@_2.67GHz-with-gentoo-1.12.11.1
Timestamp of tree: Fri, 07 Aug 2009 11:25:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.8-r1
dev-lang/python:     2.5.4-r2, 2.6.2-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 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="-O2 -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/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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ex
active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /et
texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer"
DISTDIR="/exclude/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch prelink protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tds.net/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
PKGDIR="/exclude/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="/exclude/port-tmp"
PORTDIR="/exclude/portage"
PORTDIR_OVERLAY="/exclude/overlays/tucse"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 arts audiofile bash-completion berkdb bluetooth bzip2 cairo cdparanoia cdr cli cracklib crypt cups curl dbus dri dvd dvdr dvdread eds e
cs emboss encode esd evo exif fam ffmpeg firefox flac fortran ftp gcj gd gdbm gif gnome gphoto2 gpm gstreamer gtk hal iconv ieee1394 isdnlog java javascript jpeg 
e lame latex ldap libnotify mad mikmod mmx mp3 mpeg mplayer mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds
ppd python qt3 qt3support qt4 quicktime readline reflection ruby samba scanner sdl session slang sndfile spell spl sqlite sse sse2 ssl startup-notification svg sy
ink sysfs tcpd tiff tk truetype unicode usb vim-syntax vorbis wxwindows xine xinerama xml xorg xscreensaver xulrunner xv zlib" ALSA_CARDS="ali5451 als4000 atiixp 
iixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 
SA_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 rou
 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 au
z_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 
gio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KE
EL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-08-11 13:42:12 UTC

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