Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469938 - www-servers/apache should depend on dev-libs/apr-util[nss]
Summary: www-servers/apache should depend on dev-libs/apr-util[nss]
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-15 10:20 UTC by Xavier Miller (RETIRED)
Modified: 2016-02-08 18:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Miller (RETIRED) gentoo-dev 2013-05-15 10:20:17 UTC
Hello,

I installed apache-2.4 and got crashes at startup, until someone in the forum suggested to add USE="nss". I applied USE="nss" for apr-utils and I could get apache 2.2 and 2.4 to work.

So, please add a dependancy to apr-utils[nss] for apache ebuilds, or disable modules that depend on nss by default.

I didn't disabled nss globally, I use a standard profile.

Reproducible: Always




Portage 2.2.0_alpha174 (default/linux/x86/13.0/desktop, gcc-4.7.2, glibc-2.17, 3.9.2-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.9.2-gentoo-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-gentoo-2.2
KiB Mem:     1540056 total,    922288 free
KiB Swap:    1572860 total,   1572860 free
Timestamp of tree: Tue, 14 May 2013 14:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
distcc 3.1 i686-gentoo-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.4, 3.2.4
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo local pd-overlay proaudio
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="@FREE freedist as-is"
CBUILD="i686-gentoo-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=prescott -mtune=generic"
CHOST="i686-gentoo-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=prescott -mtune=generic"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --buildpkg --quiet-build=n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/var/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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/overlay /var/lib/layman/pd-overlay /var/lib/layman/pro-audio"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa branding bzip2 cairo cli cracklib crypt cups cxx dbus dri dts emboss encode exif fam firefox flac gif gpm gtk iconv ipv6 jack jpeg lcms libnotify libsamplerate mad mmx mng modules mp3 mp4 mpeg mudflap ncurses nls nptl ogg opengl openmp osc pam pango pcre pdf png ppds qt4 readline samba session sndfile spell sqlite sse sse2 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wmf wxwidgets x264 x86 xcb xinerama xml xv xvid zlib" ABI_X86="32" ALSA_CARDS="hda-intel usb-audio virmidi" 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="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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="keyboard synaptics mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr fr_FR" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="arm i386" QEMU_USER_TARGETS="arm i386" RUBY_TARGETS="ruby18 ruby19" 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-servers/apache-2.4.4-r3 was built with the following:
USE="ssl -debug -doc -ldap (-selinux) -static -suexec -threads" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias -access_compat -asis -auth_digest -authn_dbd -cache_disk -cern_meta -charset_lite -dbd -dumpio -ident -imagemap -lbmethod_bybusyness -lbmethod_byrequests -lbmethod_bytraffic -lbmethod_heartbeat -log_forensic -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_fcgi -proxy_ftp -proxy_http -proxy_scgi -ratelimit -remoteip -reqtimeout -slotmem_shm -substitute -version" APACHE2_MPMS="-event -itk -peruser -prefork -worker"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--no-as-needed"
Comment 1 Xavier Miller (RETIRED) gentoo-dev 2013-05-15 10:20:59 UTC
The given emerge --info above was when I got crashes.
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-07-18 10:59:53 UTC
What do you think, Patrick?
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-02-19 10:02:32 UTC
Xavier, I know I may do this request damn late but can you maybe find out which module crashed for you without nss?
Comment 4 Xavier Miller (RETIRED) gentoo-dev 2014-02-19 10:03:38 UTC
nope, I uninstalled apache on the Raspberry Pi.
Comment 5 Xavier Miller (RETIRED) gentoo-dev 2014-05-04 17:28:48 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #3)
> Xavier, I know I may do this request damn late but can you maybe find out
> which module crashed for you without nss?

Hello Lars,

I've installed apache again.

How can I figure it out? the service crashes immediately.
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-05-05 07:24:14 UTC
(In reply to Xavier Miller from comment #5)
> 
> Hello Lars,
> 
> I've installed apache again.
> 
> How can I figure it out? the service crashes immediately.

Hello Xavier,

there should be a file

  /var/log/apache/startuperror.log

which might contain some messages that could be related to this problem.
Comment 7 Xavier Miller (RETIRED) gentoo-dev 2014-05-05 09:36:04 UTC
Hello,

The actual version (~arm) of apache works with apr-util[-nss]

I don't have any crash for now, and PHP works well on it (tested with owncloud).
Comment 8 maurerpe 2014-08-01 04:20:05 UTC
I am not sure that apr-util[nss] is needed, since I just filed a bug that USE=nss has no effect on apr-util. Bug 518708

What version of apr-util was used?  Is it possible that just rebuilding apr-util fixed the issue regardless of the use flag?  Where any other packages rebuilt when you did USE=nss?  Are you able to repoduce the bug?

I just did:
USE="-openssl -nss" emerge -1 apr-util
emerge -1 apache
systemctl start apache2  (Yes, I know, I don't systemd either, I just haven't switched back to openrc yet...)
ps aux | grep apache2
<<clear evidence of apache running, see below>>
lynx http://localhost
<<page that displays "It Works!">>

I used apache-2.2.7 and apr-utils-1.5.3-r1 (modified per 518708)

ps output:
 root      5691  0.5  0.1 131092  8308 ?        Ss   00:07   0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -DFOREGROUND
apache    5692  0.0  0.0 130320  4680 ?        S    00:07   0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -DFOREGROUND
apache    5693  0.0  0.0 420056  5620 ?        Sl   00:07   0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -DFOREGROUND
apache    5694  0.0  0.0 420056  5620 ?        Sl   00:07   0:00 /usr/sbin/apache2 -D DEFAULT_VHOST -D INFO -D SSL -D SSL_DEFAULT_VHOST -D LANGUAGE -DFOREGROUND
root      5757  0.0  0.0  10892  2136 pts/4    S+   00:07   0:00 grep --colour=auto apache2
Comment 9 Pacho Ramos gentoo-dev 2016-02-08 18:57:26 UTC
It looks like finally it wasn't needed, right?