| View previous topic :: View next topic |
| Author |
Message |
raddaqii n00b


Joined: 27 Mar 2005 Posts: 40
|
Posted: Fri May 04, 2012 12:55 pm Post subject: MySQL 5.5.22 and mod_auth_mysql |
|
|
Hi, a couple of days ago I installed MySQL 5.5.22
| Code: |
[I] dev-db/mysql
Available versions: [M]4.0.27-r1 [M]4.1.22-r1 [M]5.0.91 [M]~5.0.92 [M]~5.0.96 [M]5.1.51 [M]~5.1.52 [M]~5.1.52-r1 [M]~5.1.53 5.1.56 ~5.1.56-r1 ~5.1.57 ~5.1.58-r1 ~5.1.59 5.1.61 ~5.1.62 5.1.62-r1 [M]~5.5.19 [M](~)5.5.20 [M]~5.5.21 {M}(~)5.5.22 [M]~5.5.22-r1 {berkdb big-tables cluster +community debug embedded extraengine latin1 max-idx-128 minimal pbxt (+)perl profiling raid selinux ssl static systemtap test xtradb}
Installed versions: 5.5.22(12:42:28 03.05.2012)(berkdb cluster community perl profiling ssl test -debug -embedded -extraengine -latin1 -max-idx-128 -minimal -selinux -static -systemtap)
Homepage: http://www.mysql.com/
Description: A fast, multi-threaded, multi-user SQL database server.
|
happily skipping the comment about it being "crazy experimental". My install is for experiments anyhow. I had mod_auth_mysql installed before, and now revdep-rebuild wants to rebuild it, but fails. Build log:
| Code: |
* Package: www-apache/mod_auth_mysql-3.0.0-r2
* Repository: gentoo
* Maintainer: apache-bugs@gentoo.org mysql-bugs@gentoo.org
* USE: amd64 elibc_glibc kernel_linux multilib userland_GNU
* FEATURES: ccache sandbox
>>> Unpacking source...
>>> Unpacking mod_auth_mysql-3.0.0.tar.gz to /tmp/portage/www-apache/mod_auth_mysql-3.0.0-r2/work
>>> Source unpacked in /tmp/portage/www-apache/mod_auth_mysql-3.0.0-r2/work
>>> Preparing source in /tmp/portage/www-apache/mod_auth_mysql-3.0.0-r2/work/mod_auth_mysql-3.0.0 ...
* Applying mod_auth_mysql-3.0.0-apache-2.2.patch ...
[ ok ]
* Applying mod_auth_mysql-3.0.0-htpasswd2-auth-style.patch ...
[ ok ]
>>> Source prepared.
>>> Configuring source in /tmp/portage/www-apache/mod_auth_mysql-3.0.0-r2/work/mod_auth_mysql-3.0.0 ...
>>> Source configured.
>>> Compiling source in /tmp/portage/www-apache/mod_auth_mysql-3.0.0-r2/work/mod_auth_mysql-3.0.0 ...
/usr/bin/libtool --silent --mode=compile x86_64-pc-linux-gnu-gcc -prefer-pic -O2 -pipe -march=core2 -msse4.1 -msahf -maes -mpclmul -mpopcnt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache2 -I/usr/include/apr-1 -I/usr/include/apr-1 -I/usr/include/db4.8 -I/usr/include/mysql -c -o mod_auth_mysql.lo mod_auth_mysql.c && touch mod_auth_mysql.slo
mod_auth_mysql.c: In function 'str_format':
mod_auth_mysql.c:899:7: warning: format '%d' expects type 'int', but argument 7 has type 'long int'
/usr/bin/libtool --silent --mode=link x86_64-pc-linux-gnu-gcc -o mod_auth_mysql.la -lmysqlclient_r -lm -lz -Wl,-O1 -Wl,--as-needed -rpath /usr/lib64/apache2/modules -module -avoid-version mod_auth_mysql.lo
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
apxs:Error: Command failed with rc=65536
.
* ERROR: www-apache/mod_auth_mysql-3.0.0-r2 failed (compile phase):
* /usr/sbin/apxs2 -c -I/usr/include/mysql -lmysqlclient_r -lm -lz mod_auth_mysql.c failed
*
* Call stack:
* ebuild.sh, line 85: Called src_compile
* environment, line 2075: Called apache-module_src_compile
* environment, line 280: Called die
* The specific snippet of code:
* ${APXS} ${APXS2_ARGS} || die "${APXS} ${APXS2_ARGS} failed"
*
* If you need support, post the output of 'emerge --info =www-apache/mod_auth_mysql-3.0.0-r2',
* the complete build log and the output of 'emerge -pqv =www-apache/mod_auth_mysql-3.0.0-r2'.
* The complete build log is located at '/tmp/portage/www-apache/mod_auth_mysql-3.0.0-r2/temp/build.log'.
* The ebuild environment file is located at '/tmp/portage/www-apache/mod_auth_mysql-3.0.0-r2/temp/environment'.
* S: '/tmp/portage/www-apache/mod_auth_mysql-3.0.0-r2/work/mod_auth_mysql-3.0.0'
|
and
| Code: |
# emerge --info =www-apache/mod_auth_mysql-3.0.0-r2
Portage 2.1.10.49 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.14.1-r3, 3.3.0-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-3.3.0-gentoo-x86_64-Intel-R-_Core-TM-_i5-2450M_CPU_@_2.50GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 04 May 2012 08:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.6 [enabled]
app-shells/bash: 4.2_p20
dev-java/java-config: 2.1.11-r3
dev-lang/python: 2.6.6-r2, 2.7.2-r3, 3.2.2
dev-util/ccache: 3.1.6
dev-util/cmake: 2.8.6-r4
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.0.3
sys-apps/openrc: 0.9.8.4
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.13, 2.68
sys-devel/automake: 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils: 2.21.1-r1
sys-devel/gcc: 4.5.3-r2
sys-devel/gcc-config: 1.5-r2
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc: 2.14.1-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -msse4.1 -msahf -maes -mpclmul -mpopcnt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=core2 -msse4.1 -msahf -maes -mpclmul -mpopcnt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=3072 -mtune=generic"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://ftp.klid.dk/ftp/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://de-mirror.org/distro/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi aes alsa amd64 avahi bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac fortran gdbm gdu gif gnome gnome-keyring gnome-online-accounts gnutls gpm gstreamer gtk gtk2 gtk3 i18n iconv ipv6 jpeg lcms libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio readline samba sdl session socialweb spell sqlite sqlite3 sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg sysfs tcpd tiff truetype udev unicode usb vim-syntax vorbis wxwidgets x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="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 auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid 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 dav dav_fs dav_lock userdir" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev mouse keyboard synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
=================================================================
Package Settings
=================================================================
www-apache/mod_auth_mysql-3.0.0-r2 was built with the following:
USE="(multilib)"
|
Would that qualify as a bug? Or should I just tame my CFLAGS? :P
(Edit: br0ken title fixed) |
|
| Back to top |
|
 |
raddaqii n00b


Joined: 27 Mar 2005 Posts: 40
|
Posted: Mon May 07, 2012 10:42 am Post subject: |
|
|
The above broke sth else as well..
| Code: |
beetham objects # /etc/init.d/apache2 start
* Caching service dependencies ... [ ok ]
* apache2 has detected an error in your setup:
apache2: Syntax error on line 170 of /etc/apache2/httpd.conf: Syntax error on line 2 of /etc/apache2/modules.d/12_mod_auth_mysql.conf: Cannot load /usr/lib64/apache2/modules/mod_auth_mysql.so into server: libmysqlclient_r.so.16: cannot open shared object file: No such file or directory
* ERROR: apache2 failed to start
beetham objects # cd /usr/
beetham usr # find . -name libmysqlclient_r.so.16
./lib32/mysql/libmysqlclient_r.so.16
./lib32/libmysqlclient_r.so.16
|
/usr/lib32/mysql/libmysqlclient_r.so.16 is part of
| Code: |
beetham usr # equery b /usr/lib32/mysql/libmysqlclient_r.so.16
* Searching for /usr/lib32/mysql/libmysqlclient_r.so.16 ...
app-emulation/emul-linux-x86-db-20120127 (/usr/lib32/mysql/libmysqlclient_r.so.16 -> libmysqlclient_r.so.16.0.0)
app-emulation/emul-linux-x86-db-20120127 (/usr/lib32/mysql/libmysqlclient_r.so.16.0.0)
|
Erm, why do I need all those emul-linux-x86 packages again?
Anyhow, I noticed that mod_auth_mysql is indeed antique, and portage has mod-auth-mysql-4.3.9 ready, so un-keyworded that and emerged it. Now I get a different error:
| Code: |
beetham mysql # /etc/init.d/apache2 restart
* Caching service dependencies ... [ ok ]
* apache2 has detected an error in your setup:
apache2: Syntax error on line 170 of /etc/apache2/httpd.conf: Syntax error on line 2 of /etc/apache2/modules.d/12_mod_auth_mysql.conf: Can't locate API module structure `apache2_mysql_auth_module' in file /usr/lib64/apache2/modules/apache2_mod_auth_mysql.so: /usr/lib64/apache2/modules/apache2_mod_auth_mysql.so: undefined symbol: apache2_mysql_auth_module
* ERROR: apache2 failed to start
|
Running revdep-rebuild found unrelated stuff only. I'm confused. Pointers anyone? |
|
| Back to top |
|
 |
m27315 Apprentice


Joined: 10 Dec 2004 Posts: 228 Location: 2 workstations down
|
Posted: Mon Dec 10, 2012 6:29 pm Post subject: patched ebuild available |
|
|
I also had this problem, and I found a related bug report. I installed the patched ebuild here:
| Code: | | /usr/local/portage/www-apache/mod_auth_mysql/mod_auth_mysql-3.0.0-r2.ebuild |
And, I patched the ebuild using correction provided in comment #2. And, after sealing the ebuild:
| Code: | # cp -pR /usr/portage/www-apache/mod_auth_mysql/files /usr/local/portage/www-apache/mod_auth_mysql/
# ebuild /usr/local/portage/www-apache/mod_auth_mysql/mod_auth_mysql-3.0.0-r2.ebuild manifest |
I was able to build without errors. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|