>>> Emerging (1 of 1) www-apache/mod_auth_mysql-3.0.0-r1 to / * mod_auth_mysql-3.0.0.tar.gz RMD160 ;-) ... [ ok ] * mod_auth_mysql-3.0.0.tar.gz SHA1 ;-) ... [ ok ] * mod_auth_mysql-3.0.0.tar.gz SHA256 ;-) ... [ ok ] * mod_auth_mysql-3.0.0.tar.gz size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking mod_auth_mysql-3.0.0.tar.gz ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking mod_auth_mysql-3.0.0.tar.gz to /var/tmp/portage/www-apache/mod_auth_mysql-3.0.0-r1/work >>> Source unpacked. >>> Compiling source in /var/tmp/portage/www-apache/mod_auth_mysql-3.0.0-r1/work/mod_auth_mysql-3.0.0 ... /usr/bin/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -prefer-pic -march=nocona -O2 -pipe -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -DAP_DEBUG -pthread -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/db4.5 -I/usr/include/mysql -c -o mod_auth_mysql.lo mod_auth_mysql.c && touch mod_auth_mysql.slo mod_auth_mysql.c:591: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:591: warning: cast to pointer from integer of different size mod_auth_mysql.c:591: error: initializer element is not constant mod_auth_mysql.c:591: error: (near initialization for 'mysql_auth_cmds[0].cmd_data') mod_auth_mysql.c:595: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:595: warning: cast to pointer from integer of different size mod_auth_mysql.c:595: error: initializer element is not constant mod_auth_mysql.c:595: error: (near initialization for 'mysql_auth_cmds[1].cmd_data') mod_auth_mysql.c:599: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:599: warning: cast to pointer from integer of different size mod_auth_mysql.c:599: error: initializer element is not constant mod_auth_mysql.c:599: error: (near initialization for 'mysql_auth_cmds[2].cmd_data') mod_auth_mysql.c:603: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:603: warning: cast to pointer from integer of different size mod_auth_mysql.c:603: error: initializer element is not constant mod_auth_mysql.c:603: error: (near initialization for 'mysql_auth_cmds[3].cmd_data') mod_auth_mysql.c:607: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:607: warning: cast to pointer from integer of different size mod_auth_mysql.c:607: error: initializer element is not constant mod_auth_mysql.c:607: error: (near initialization for 'mysql_auth_cmds[4].cmd_data') mod_auth_mysql.c:611: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:611: warning: cast to pointer from integer of different size mod_auth_mysql.c:611: error: initializer element is not constant mod_auth_mysql.c:611: error: (near initialization for 'mysql_auth_cmds[5].cmd_data') mod_auth_mysql.c:615: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:615: warning: cast to pointer from integer of different size mod_auth_mysql.c:615: error: initializer element is not constant mod_auth_mysql.c:615: error: (near initialization for 'mysql_auth_cmds[6].cmd_data') mod_auth_mysql.c:619: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:619: warning: cast to pointer from integer of different size mod_auth_mysql.c:619: error: initializer element is not constant mod_auth_mysql.c:619: error: (near initialization for 'mysql_auth_cmds[7].cmd_data') mod_auth_mysql.c:623: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:623: warning: cast to pointer from integer of different size mod_auth_mysql.c:623: error: initializer element is not constant mod_auth_mysql.c:623: error: (near initialization for 'mysql_auth_cmds[8].cmd_data') mod_auth_mysql.c:627: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:627: warning: cast to pointer from integer of different size mod_auth_mysql.c:627: error: initializer element is not constant mod_auth_mysql.c:627: error: (near initialization for 'mysql_auth_cmds[9].cmd_data') mod_auth_mysql.c:631: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:631: warning: cast to pointer from integer of different size mod_auth_mysql.c:631: error: initializer element is not constant mod_auth_mysql.c:631: error: (near initialization for 'mysql_auth_cmds[10].cmd_data') mod_auth_mysql.c:635: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:635: warning: cast to pointer from integer of different size mod_auth_mysql.c:635: error: initializer element is not constant mod_auth_mysql.c:635: error: (near initialization for 'mysql_auth_cmds[11].cmd_data') mod_auth_mysql.c:639: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:639: warning: cast to pointer from integer of different size mod_auth_mysql.c:639: error: initializer element is not constant mod_auth_mysql.c:639: error: (near initialization for 'mysql_auth_cmds[12].cmd_data') mod_auth_mysql.c:643: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:643: warning: cast to pointer from integer of different size mod_auth_mysql.c:643: error: initializer element is not constant mod_auth_mysql.c:643: error: (near initialization for 'mysql_auth_cmds[13].cmd_data') mod_auth_mysql.c:651: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:651: warning: cast to pointer from integer of different size mod_auth_mysql.c:651: error: initializer element is not constant mod_auth_mysql.c:651: error: (near initialization for 'mysql_auth_cmds[14].cmd_data') mod_auth_mysql.c:655: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:655: warning: cast to pointer from integer of different size mod_auth_mysql.c:655: error: initializer element is not constant mod_auth_mysql.c:655: error: (near initialization for 'mysql_auth_cmds[15].cmd_data') mod_auth_mysql.c:659: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:659: warning: cast to pointer from integer of different size mod_auth_mysql.c:659: error: initializer element is not constant mod_auth_mysql.c:659: error: (near initialization for 'mysql_auth_cmds[16].cmd_data') mod_auth_mysql.c:663: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:663: warning: cast to pointer from integer of different size mod_auth_mysql.c:663: error: initializer element is not constant mod_auth_mysql.c:663: error: (near initialization for 'mysql_auth_cmds[17].cmd_data') mod_auth_mysql.c:667: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:667: warning: cast to pointer from integer of different size mod_auth_mysql.c:667: error: initializer element is not constant mod_auth_mysql.c:667: error: (near initialization for 'mysql_auth_cmds[18].cmd_data') mod_auth_mysql.c:671: error: expected expression before 'mysql_auth_config_rec' mod_auth_mysql.c:671: warning: cast to pointer from integer of different size mod_auth_mysql.c:671: error: initializer element is not constant mod_auth_mysql.c:671: error: (near initialization for 'mysql_auth_cmds[19].cmd_data') mod_auth_mysql.c: In function 'hex2chr': mod_auth_mysql.c:797: warning: passing argument 1 of 'ap_strchr' discards qualifiers from pointer target type mod_auth_mysql.c: In function 'format_request': mod_auth_mysql.c:947: warning: pointer/integer type mismatch in conditional expression mod_auth_mysql.c: In function 'format_cookie': mod_auth_mysql.c:991: warning: passing argument 1 of 'ap_strchr' discards qualifiers from pointer target type mod_auth_mysql.c:1006: warning: passing argument 1 of 'ap_strchr' discards qualifiers from pointer target type apxs:Error: Command failed with rc=65536 . !!! ERROR: www-apache/mod_auth_mysql-3.0.0-r1 failed. Call stack: ebuild.sh, line 1638: Called dyn_compile ebuild.sh, line 985: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile ebuild.sh, line 1328: Called apache-module_src_compile apache-module.eclass, line 364: Called apache2_src_compile apache-module.eclass, line 257: Called die !!! /usr/sbin/apxs2 -c -I/usr/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c 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_auth_mysql-3.0.0-r1/temp/build.log'. Reproducible: Always Steps to Reproduce: 1.emerge mod_auth_mysql 2. 3. Actual Results: fails # apache version [ebuild R ] www-servers/apache-2.2.6 USE="ssl -debug -doc -ldap -mpm-event -mpm-itk -mpm-peruser -mpm-prefork -mpm-worker -no-suexec (-selinux) -static-modules -threads" #patch which solves problem: --- mod_auth_mysql.c.orig 2007-09-13 09:36:14.000000000 +0200 +++ mod_auth_mysql.c 2007-09-13 09:41:49.000000000 +0200 @@ -589,87 +589,87 @@ static command_rec mysql_auth_cmds[] = { AP_INIT_TAKE1("AuthMySQLHost", ap_set_string_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlhost), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlhost), OR_AUTHCFG, "mysql server host name"), AP_INIT_TAKE1("AuthMySQLPort", ap_set_int_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlport), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlport), OR_AUTHCFG, "mysql server port number"), AP_INIT_TAKE1("AuthMySQLSocket", ap_set_string_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlsocket), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlsocket), OR_AUTHCFG, "mysql server socket path"), AP_INIT_TAKE1("AuthMySQLUser", ap_set_string_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqluser), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqluser), OR_AUTHCFG, "mysql server user name"), AP_INIT_TAKE1("AuthMySQLPassword", ap_set_string_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlpasswd), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlpasswd), OR_AUTHCFG, "mysql server user password"), AP_INIT_TAKE1("AuthMySQLDB", ap_set_string_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlDB), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlDB), OR_AUTHCFG, "mysql database name"), AP_INIT_TAKE1("AuthMySQLUserTable", ap_set_string_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlpwtable), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlpwtable), OR_AUTHCFG, "mysql user table name"), AP_INIT_TAKE1("AuthMySQLGroupTable", ap_set_string_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlgrptable), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlgrptable), OR_AUTHCFG, "mysql group table name"), AP_INIT_TAKE1("AuthMySQLNameField", ap_set_string_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlNameField), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlNameField), OR_AUTHCFG, "mysql User ID field name within User table"), AP_INIT_TAKE1("AuthMySQLGroupField", ap_set_string_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlGroupField), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlGroupField), OR_AUTHCFG, "mysql Group field name within table"), AP_INIT_TAKE1("AuthMySQLGroupUserNameField", ap_set_string_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlGroupUserNameField), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlGroupUserNameField), OR_AUTHCFG, "mysql User ID field name within Group table"), AP_INIT_TAKE1("AuthMySQLPasswordField", ap_set_string_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlPasswordField), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlPasswordField), OR_AUTHCFG, "mysql Password field name within table"), AP_INIT_TAKE1("AuthMySQLPwEncryption", ap_set_string_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlEncryptionField), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlEncryptionField), OR_AUTHCFG, "mysql password encryption method"), AP_INIT_TAKE1("AuthMySQLSaltField", ap_set_string_slot, - (void*) APR_XtOffsetOf(mysql_auth_config_rec, mysqlSaltField), + (void*) APR_OFFSETOF(mysql_auth_config_rec, mysqlSaltField), OR_AUTHCFG, "mysql salfe field name within table"), /* AP_INIT_FLAG("AuthMySQLKeepAlive", ap_set_flag_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlKeepAlive), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlKeepAlive), OR_AUTHCFG, "mysql connection kept open across requests if On"), */ AP_INIT_FLAG("AuthMySQLAuthoritative", ap_set_flag_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlAuthoritative), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlAuthoritative), OR_AUTHCFG, "mysql lookup is authoritative if On"), AP_INIT_FLAG("AuthMySQLNoPasswd", ap_set_flag_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlNoPasswd), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlNoPasswd), OR_AUTHCFG, "If On, only check if user exists; ignore password"), AP_INIT_FLAG("AuthMySQLEnable", ap_set_flag_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlEnable), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlEnable), OR_AUTHCFG, "enable mysql authorization"), AP_INIT_TAKE1("AuthMySQLUserCondition", ap_set_string_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlUserCondition), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlUserCondition), OR_AUTHCFG, "condition to add to user where-clause"), AP_INIT_TAKE1("AuthMySQLGroupCondition", ap_set_string_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlGroupCondition), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlGroupCondition), OR_AUTHCFG, "condition to add to group where-clause"), AP_INIT_TAKE1("AuthMySQLCharacterSet", ap_set_string_slot, - (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlCharacterSet), + (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlCharacterSet), OR_AUTHCFG, "mysql character set to be used"), { NULL }
Try w/ -r2 and report back please.
-r2 is OK, thanks a lot!
amd64 - please stabilize 3.0.0-r2 for apache-2.2.x
www-apache/mod_auth_mysql-3.0.0-r2 - Emerges on AMD64 - Works properly despite finding this on apache logs: [Fri Sep 28 23:51:04 2007] [error] Internal error: pcfg_openfile() called with NULL filename [Fri Sep 28 23:51:04 2007] [error] [client 127.0.0.1] (9)Bad file descriptor: Could not open password file: (null) - - - Portage 2.1.3.9 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r4, 2.6.22-gentoo-r5 x86_64) ================================================================= System uname: 2.6.22-gentoo-r5 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-56 Timestamp of tree: Fri, 28 Sep 2007 20:30:01 +0000 app-shells/bash: 3.2_p17 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -Os -msse3 -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/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/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/terminfo" CXXFLAGS="-march=k8 -Os -msse3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="collision-protect distlocks metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j3" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X acpi alsa amd64 bash-completion berkdb bitmap-fonts branding bzip2 cairo cli cracklib crypt cups dbus dri dvd dvdr emerald ffmpeg firefox flac fortran gdbm gif glade glib glitz gtk gtkspell hal iconv insecure-savers isdnlog jpeg libnotify midi mmx mmxext mp2 mp3 mpeg mudflap musicbrainz mysql ncurses nls nptl nptlonly offensive ogg opengl openmp pam pcre png pppd python readline reflection samba sdl session smp spell spl sse sse2 ssl stream svg syslog taglib tcpd threads truetype truetype-fonts type1 type1-fonts unicode v4l v4l2 vim-syntax vorbis xcomposite xorg xosd xscreensaver 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="xosd" USERLAND="GNU" VIDEO_CARDS="nv nvidia none" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
amd64 stable