I'm not able to emerge ebuild www-apache/mod_security-2.5.9. apxs:Error: Unknown option: s. Usage: apxs -g [-S <var>=<val>] -n <modname> apxs -q [-S <var>=<val>] <query> ... apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]] [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>] [-Wl,<flags>] [-p] <files> ... apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ... apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ... make: *** [mod_security2.la] Fehler 1 * * ERROR: www-apache/mod_security-2.5.9 failed. * Call stack: * ebuild.sh, line 48: Called src_compile * environment, line 2871: Called die * The specific snippet of code: * emake APXS_CFLAGS="${CFLAGS}" APXS_LDFLAGS="${LDFLAGS}" APXS_EXTRA_CFLAGS="${APXS_FLAGS}" || die "emake failed" * The die message: * emake failed
Please attach a full build log and emerge --info. Blocker severity is not appropriate in this case.
Sorry. Here the asked Information: emerge mod_security Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) www-apache/mod_security-2.5.9 * modsecurity-apache_2.5.9.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking modsecurity-apache_2.5.9.tar.gz to /var/tmp/portage/www-apache/mod_security-2.5.9/work * Applying mod_security-2.5.9-broken-autotools.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/www-apache/mod_security-2.5.9/work/modsecurity-apache_2.5.9/apache2' ... * Running aclocal ... [ ok ] * Running autoconf ... [ ok ] * Running autoheader ... [ ok ] * Running elibtoolize in: modsecurity-apache_2.5.9/apache2/build * Applying portage-2.2.patch ... * Applying sed-1.5.6.patch ... * Applying as-needed-2.2.6.patch ... >>> Source unpacked in /var/tmp/portage/www-apache/mod_security-2.5.9/work >>> Compiling source in /var/tmp/portage/www-apache/mod_security-2.5.9/work/modsecurity-apache_2.5.9 ... ./configure --prefix=/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-apxs=/usr/sbin/apxs2 --without-curl --with-lua checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++ 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 i686-pc-linux-gnu-g++ accepts -g... yes checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc checking whether we are using the GNU C compiler... yes checking whether i686-pc-linux-gnu-gcc accepts -g... yes checking for i686-pc-linux-gnu-gcc option to accept ISO C89... none needed checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E checking for a BSD-compatible install... /usr/bin/install -c checking whether ln -s works... yes checking whether make sets $(MAKE)... yes checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib checking for perl... /usr/bin/perl checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for C/C++ restrict keyword... __restrict checking for size_t... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for uint8_t... yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes checking for working memcmp... yes checking for atexit... yes checking for fchmod... yes checking for getcwd... yes checking for memset... yes checking for strcasecmp... yes checking for strchr... yes checking for strdup... yes checking for strerror... yes checking for strncasecmp... yes checking for strrchr... yes checking for strstr... yes checking for strtol... yes configure: looking for Apache module support via DSO through APXS configure: found apxs at /usr/sbin/apxs2 configure: checking httpd version configure: httpd is recent enough checking for libpcre config script... /usr/bin/pcre-config configure: using '-L/usr/lib -lpcre' for pcre Library checking for libapr config script... /usr/bin/apr-1-config configure: using ' -luuid -lrt -lcrypt -lpthread -ldl' for apr Library checking for libapr-util config script... /usr/bin/apu-1-config configure: using ' -L/usr/lib -laprutil-1' for apu Library checking for libxml2 config script... /usr/bin/xml2-config configure: using '-lxml2 -lz -lm' for libxml Library checking for pkg-config script for lua library... no checking for lua install... no configure: optional lua library not found checking for libcurl config script... no configure: *** curl library not found. configure: NOTE: curl library is only required for building mlogc configure: creating ./config.status config.status: creating Makefile config.status: creating build/apxs-wrapper config.status: creating mlogc-src/mlogc-batch-load.pl config.status: creating t/run-unit-tests.pl config.status: creating t/run-regression-tests.pl config.status: creating t/gen_rx-pm.pl config.status: creating t/csv_rx-pm.pl config.status: creating t/regression/server_root/conf/httpd.conf config.status: creating ../tools/rules-updater.pl config.status: creating mlogc-src/Makefile config.status: creating mod_security2_config.h make -j4 'APXS_CFLAGS=-O2 -s -pipe -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -momit-leaf-frame-pointer -fomit-frame-pointer -funit-at-a-time -fweb' 'APXS_LDFLAGS=-Wl,-O1 -Wl,--sort-common -Wl,-zdynsort -s' 'APXS_EXTRA_CFLAGS= -Wc,-O2 -Wc,-s -Wc,-pipe -Wc,-march=pentium4 -Wc,-mfpmath=sse -Wc,-mmmx -Wc,-msse -Wc,-msse2 -Wc,-momit-leaf-frame-pointer -Wc,-fomit-frame-pointer -Wc,-funit-at-a-time -Wc,-fweb -Wl,-Wl,-O1 -Wl,-Wl,--sort-common -Wl,-Wl,-zdynsort -Wl,-s' apxs:Error: Unknown option: s. Usage: apxs -g [-S <var>=<val>] -n <modname> apxs -q [-S <var>=<val>] <query> ... apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]] [-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>] [-Wl,<flags>] [-p] <files> ... apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ... apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ... make: *** [mod_security2.la] Fehler 1 * * ERROR: www-apache/mod_security-2.5.9 failed. * Call stack: * ebuild.sh, line 48: Called src_compile * environment, line 2871: Called die * The specific snippet of code: * emake APXS_CFLAGS="${CFLAGS}" APXS_LDFLAGS="${LDFLAGS}" APXS_EXTRA_CFLAGS="${APXS_FLAGS}" || 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_security-2.5.9/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/www-apache/mod_security-2.5.9/temp/environment'. * emerge --info Portage 2.1.6.11 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r5 i686) ================================================================= System uname: Linux-2.6.29-gentoo-r5-i686-Intel-R-_Pentium-R-_4_CPU_2.53GHz-with-glibc2.0 Timestamp of tree: Wed, 03 Jun 2009 07:45:02 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.7 dev-lang/python: 2.4.6, 2.5.4-r2 dev-python/pycrypto: 2.0.1-r8 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 sys-devel/automake: 1.4_p6, 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.28-r1 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -s -pipe -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -momit-leaf-frame-pointer -fomit-frame-pointer -funit-at-a-time -fweb" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openfire/resources/security/ /var/service" 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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -s -pipe -march=pentium4 -mfpmath=sse -mmmx -msse -msse2 -momit-leaf-frame-pointer -fomit-frame-pointer -funit-at-a-time -fweb" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo" LANG="de_DE.UTF-8" LC_ALL="de_DE.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,-zdynsort -s" LINGUAS="de en" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" 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" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="7zip a52 aac aalib acl acpi adns animgif apache2 ares audiofile bash-completion bcmath berkdb branding bzip2 bzlib cairo calendar caps cdb cgi charconv chicken cli corefonts cracklib crypt ctype curl curlwrappers cyrus daemon dbus dcraw de dedicated device-mapper dio discard-path discouraged djvu dkim dri dts dvd dvdread ecc eds emboss enca encode evo exif expat extensions extraengine faac faad fam fastcgi fftw filter firefox flac flatfile fontconfig force-cgi-redirect fortran fpx ftp gd gdbm geoip gif glibc-omitfp gnutls gold gpm graphviz gs gstreamer guile hal hash hdri icecast iconv icu idea idn imap imlib inifile innodb isdnlog ithreads java javascript jbig jce jpeg jpeg2k json kerberos krb4 lcms libcaca libedit libnotify libsamplerate libssh2 lingerd lm_sensors logrotate lua lzma lzo lzw mad mailwrapper max-idx-128 mbox mcal memlimit mhash midi mikmod mime ming mmx mmxext mng modperl mp3 mpeg msession mudflap musepack mysql mysqli mzscheme nagios-dns nagios-ping nagios-ssh ncurses network-cron networking nls nptl nptlonly ogg openexr openmp openssl overlays pam pam-mysql pcntl pcre pdf pdo pear perl php plugins png posix postfix ppds pppd prefixaq prelude procmail pth python qt3support rar raw readline recode reflection regex resolvconf rle rrdcgi rrdtool sasl session sha512 sharedext sharedmem showlistmodes simplexml slang sndfile soap sockets spell spf spl sse sse-filters sse2 ssl startup-notification stats suhosin svg symlink sysfs syslog sysvipc szip tcltk tcpd tetex theora threads tidy tiff tokenizer truetype unicode urandom usb userlocales utf8 vhosts virus-scan vorbis win32codecs wmf x264 x86 xml xml2 xmlreader xmlrpc xmlwriter xorg xpm xsl xulrunner xvid yaz zip 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 mmap_emul 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 cgi 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 rewrite setenvif so speling status unique_id userdir usertrack vhost_alias substitute" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS=" " Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTDIR_OVERLAY
After looking again on the output i found the problem: it was my LDFLAGS variable. If ever someone else stumbles upon this error: comment out the LDFLAGS at all or remove the strip option "-s". So could be marked closed, sorry for my oversight.