Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266079 - www-servers/nginx fails to build without SSL support
Summary: www-servers/nginx fails to build without SSL support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Konstantin Arkhipov (RETIRED)
URL:
Whiteboard:
Keywords:
: 268553 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-04-14 06:51 UTC by Alex
Modified: 2010-01-03 17:51 UTC (History)
6 users (show)

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


Attachments
nginx-0.7.50 build.log (build.log,22.25 KB, text/plain)
2009-04-17 06:25 UTC, Alex
Details
build log nginx 0.7.50 (build.log,23.65 KB, text/plain)
2009-04-18 16:54 UTC, .:deadhead:.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2009-04-14 06:51:41 UTC
nginx 0.7.50 fails to build without SSL support enabled.

Reproducible: Always

Steps to Reproduce:
emerge --sync
USE="-ssl" emerge =www-servers/nginx-0.7.50
Actual Results:  
USE="-ssl" emerge =www-servers/nginx-0.7.50
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) www-servers/nginx-0.7.50
 * nginx-0.7.50.tar.gz RMD160 SHA1 SHA256 size ;-) ...                                                                                                 [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                 [ ok ]
 * Creating nginx user and group ...                                                                                                                    [ ok ]
>>> Unpacking source...
>>> Unpacking nginx-0.7.50.tar.gz to /var/tmp/portage/www-servers/nginx-0.7.50/work
>>> Source unpacked in /var/tmp/portage/www-servers/nginx-0.7.50/work
>>> Compiling source in /var/tmp/portage/www-servers/nginx-0.7.50/work/nginx-0.7.50 ...
...
checking for PCRE library ... found
grep: /usr/include/md5.h: No such file or directory
checking for zlib library ... found
...

Configuration summary
  + using system PCRE library
  + OpenSSL library is not used
  + using md5 library: /usr/include
  + using sha1 library: /usr/include
  + using system zlib library

  nginx path prefix: "/usr"
  nginx binary file: "/usr/sbin/nginx"
  nginx configuration prefix: "/etc/nginx"
  nginx configuration file: "/etc/nginx/nginx.conf"
  nginx pid file: "/var/run/nginx.pid"
  nginx error log file: "/var/log/nginx/error_log"
  nginx http access log file: "/var/log/nginx/access_log"
  nginx http client request body temporary files: "/var/tmp/nginx/client"
  nginx http proxy temporary files: "/var/tmp/nginx/proxy"
  nginx http fastcgi temporary files: "/var/tmp/nginx/fastcgi"

make -j1 'LINK=i686-pc-linux-gnu-gcc -Wl,-O1' OTHERLDFLAGS=-Wl,-O1
make -f objs/Makefile
make[1]: Entering directory `/var/tmp/portage/www-servers/nginx-0.7.50/work/nginx-0.7.50'
...
i686-pc-linux-gnu-gcc -c -O2 -march=athlon-xp -pipe  -I src/core -I src/event -I src/event/modules -I src/os/unix -I /usr/include -I objs -I src/http -I src/http/modules \
                -o objs/src/http/ngx_http_file_cache.o \
                src/http/ngx_http_file_cache.c
In file included from src/http/ngx_http_file_cache.c:10:
src/core/ngx_md5.h:18:17: error: md5.h: No such file or directory
In file included from src/http/ngx_http_file_cache.c:10:
src/core/ngx_md5.h:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ngx_md5_t'
src/http/ngx_http_file_cache.c: In function 'ngx_http_file_cache_create_key':
src/http/ngx_http_file_cache.c:135: error: 'ngx_md5_t' undeclared (first use in this function)
src/http/ngx_http_file_cache.c:135: error: (Each undeclared identifier is reported only once
src/http/ngx_http_file_cache.c:135: error: for each function it appears in.)
src/http/ngx_http_file_cache.c:135: error: expected ';' before 'md5'
src/http/ngx_http_file_cache.c:143: error: 'md5' undeclared (first use in this function)
make[1]: *** [objs/src/http/ngx_http_file_cache.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/www-servers/nginx-0.7.50/work/nginx-0.7.50'
make: *** [build] Error 2
 *
 * ERROR: www-servers/nginx-0.7.50 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2288:  Called die
 * The specific snippet of code:
 *       emake LINK="${CC} ${LDFLAGS}" OTHERLDFLAGS="${LDFLAGS}" || die "failed to compile"
 *  The die message:
 *   failed to compile
 *
 * 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-servers/nginx-0.7.50/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-servers/nginx-0.7.50/temp/environment'.
 *

>>> Failed to emerge www-servers/nginx-0.7.50, Log file:

>>>  '/var/tmp/portage/www-servers/nginx-0.7.50/temp/build.log'

 * Messages for package www-servers/nginx-0.7.50:

 *
 * ERROR: www-servers/nginx-0.7.50 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2288:  Called die
 * The specific snippet of code:
 *       emake LINK="${CC} ${LDFLAGS}" OTHERLDFLAGS="${LDFLAGS}" || die "failed to compile"
 *  The die message:
 *   failed to compile
 *
 * 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-servers/nginx-0.7.50/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-servers/nginx-0.7.50/temp/environment'.
 *


Expected Results:  
nginx builds correctly without SSL support

I was able to fix it by removing --with-md5=/usr/include --with-sha1=/usr/include from ebuild.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-04-15 18:23:48 UTC
Please always post your "emerge --info" when you report bugs and most of the time it's also useful to attach the full build.log file of a failed emerge, too.
Comment 2 Alex 2009-04-17 06:25:14 UTC
Created attachment 188644 [details]
nginx-0.7.50 build.log
Comment 3 Alex 2009-04-17 06:26:47 UTC
Comment on attachment 188644 [details]
nginx-0.7.50 build.log

Sorry, here it is
emerge --info
Portage 2.1.6.7 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.28.2-grsec i686)
=================================================================
System uname: Linux-2.6.28.2-grsec-i686-AMD_Athlon-tm-_XP_2500+-with-glibc2.0
Timestamp of tree: Tue, 14 Apr 2009 00:25:01 +0000
distcc 3.0 i686-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p17
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.4.4-r14, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 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.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-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/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict suidctl unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.KOI8-R"
LDFLAGS="-Wl,-O1"
LINGUAS="ru en"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/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="/var/tmp"
PORTDIR="/var/spool/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/overlays/rusxmms"
SYNC="rsync://172.16.29.165/gentoo-portage"
USE="3dnow 3dnowext X acl acpi alsa arts bash-completion berkdb bluetooth cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread emboss encode evo fam firefox fortran gd gif gpm gstreamer hal iconv isdnlog jpeg kde kipi libnotify lm_sensors mad midi mikmod mmx mmxext mozilla mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qt3 qt3support quicktime readline reflection scanner sdl session spell spl sse ssl startup-notification svg tcpd tiff truetype unicode usb vorbis wifi win32codecs x86 xinerama xml xorg xscreensaver xulrunner xv zlib" ALSA_CARDS="emu10k1 emu10k1x ens1370 ens1371 es1938 es1968  intel8x0 intel8x0m  usb-audio" 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 authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_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 logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" LIRC_DEVICES="all" USERLAND="GNU" VIDEO_CARDS="radeon vesa s3 mga s3virge savage r128 mach64"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 .:deadhead:. 2009-04-18 16:54:58 UTC
Created attachment 188809 [details]
build log nginx 0.7.50
Comment 5 .:deadhead:. 2009-04-18 16:57:51 UTC
Same problem here :

emerge --info
Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r1-vienna i686)
=================================================================
System uname: Linux-2.6.29-gentoo-r1-vienna-i686-Intel-R-_Celeron-R-_M_CPU_430_@_1.73GHz-with-glibc2.0
Timestamp of tree: Sat, 18 Apr 2009 16:15:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2-r1
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.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.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
ALSA_CARDS="hda-intel"
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"
APACHE2_MODULES="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 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"
ARCH="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -Os -pipe -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
COLLISION_IGNORE="/lib/modules"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
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/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-march=pentium-m -Os -pipe -mfpmath=sse"
DCCC_PATH="/usr/lib/distcc/bin"
DISPLAY=":0"
DISTCC_LOG="/var/log/distcc.log"
DISTCC_VERBOSE="1"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="-tDv --with-bdeps y"
EMERGE_WARNING_DELAY="10"
FEATURES="collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans"
FETCHCOMMAND="/usr/bin/curl -L --retry 5 -o ${DISTDIR}/${FILE} ${URI}"
FTP_PROXY=""
GCC_SPECS=""
GDK_USE_XFT="1"
GENERATION="2"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://distfiles.gentoo.org"
HOME="/root"
HTTP_PROXY=""
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info"
INPUT_DEVICES="evdev synaptics"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KDEDIRS="/usr:/usr/local:/usr/kde/3.5"
KERNEL="linux"
LANG="it_IT.UTF-8"
LC_COLLATE="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LINGUAS="it"
LOGNAME="root"
MAKEOPTS="-j2"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man:/opt/sun-jdk-1.4.2.16/man:/etc/java-config/system-vm/man/:/usr/lib/php5/man/:/usr/kde/3.5/share/man:/usr/qt/3/doc/man:/opt/opera/share/man"
MM_CHARSET="UTF-8"
OPENGL_PROFILE="xorg-x11"
PAGER="/usr/bin/less"
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/opt/sun-jdk-1.4.2.16/bin:/opt/sun-jdk-1.4.2.16/jre/bin:/opt/sun-jdk-1.4.2.16/jre/javaws:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
PKGDIR="/usr/portage/packages"
PKG_CONFIG_PATH="/usr/qt/3/lib/pkgconfig"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa amd64-fbsd sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png"
PORTAGE_CONFIGROOT="/"
PORTAGE_COUNTER_HASH="8bfdb23c0a79957ac603d55a7da0c5e1"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="warn error log"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save"
PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5"
PORTAGE_FETCH_RESUME_MIN_SIZE="350K"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_VERBOSE="1"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/lu_zero /usr/local/portage"
PROFILE_ONLY_VARIABLES="ARCH ELIBC KERNEL USERLAND"
PWD="/root"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/curl -L -C - --retry 5 -o ${DISTDIR}/${FILE} ${URI}"
ROOT="/"
ROOTPATH="/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/opt/sun-jdk-1.4.2.16/bin:/opt/sun-jdk-1.4.2.16/jre/bin:/opt/sun-jdk-1.4.2.16/jre/javaws:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin"
RPMDIR="/usr/portage/rpm"
SHELL="/bin/bash"
SHLVL="1"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
TERM="xterm"
TMP="/tmp/.private/root"
TMPDIR="/tmp/.private/root"
USE="7zip X a52 aac acpi alsa asf audiofile bash-completion branding bzip2 cairo cddb cdparanoia cdr cracklib cups curl curlwrappers dbus djvu dri dts dv dvd dvdr dvdread encode exif fam ffmpeg firefox flac foomaticdb ftp geoip gif gmp gpm gs gtk gtk2 hal ia32 iconv idn imagemagick imap ithreads jabber java jbig jpeg jpeg2k kde lcms libsamplerate live logitech-mouse lzma mad maildir matroska midi mmx mng mp3 mp4 mpeg mplayer musepack musicbrainz ncurses network network-cron nls nocxx nptl nptlonly nsplugin nvidia offensive ogg openexr opengl oscar pam pcmcia pcre pdf php plotutils png posix ppds qt3 qt3support qt4 quicktime readline samba sdl sndfile speex sse sse2 ssl startup-notification svg sysfs theora threads tiff truetype unicode usb utempter vcd vhosts vorbis wavpack webdav wifi win32codecs wma wmf x264 x86 xine xorg xpm xulrunner 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 mulaw multi null plug rate route 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 authz_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 logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="intel"
USER="root"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS NETBEANS_MODULES USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="intel"
VMHANDLE="sun-jdk-1.4"
XAUTHORITY="/root/.xauthH5v7WC"
XDG_DATA_DIRS="/usr/share:/usr/kde/3.5/share:/usr/local/share"
_="/usr/bin/emerge"
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-04-28 09:39:35 UTC
ssl support should be mandatory on Linux at least since the C library does not provide md5 implementations (unlike FreeBSD's).
Comment 7 Alex 2009-04-28 10:51:59 UTC
No, I don't think, that presence of md5 in C library affects this. OpenSSL is present on almost all systems(ssh for servers, https for desktops).
ssl support in nginx *can* be disabled and md5 will function - see configure output below
==========================================================================
nginx-0.7.50 # ./configure --prefix=/usr --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access_log --error-log-path=/var/log/nginx/error_log --pid-path=/var/run/nginx.pid --http-client-body-temp-path=/var/tmp/nginx/client --http-proxy-temp-path=/var/tmp/nginx/proxy --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi --with-md5-asm --with-sha1-asm  --with-http_realip_module --with-debug --with-http_stub_status_module --with-http_dav_module
checking for OS
 + Linux 2.6.29.1-grsec i686
checking for C compiler ... found
...
checking for PCRE library ... found
checking for rsaref md5 library ... not found
checking for rsaref md library ... not found
checking for OpenSSL md5 crypto library ... found
checking for zlib library ... found
...
Configuration summary
  + using system PCRE library
  + OpenSSL library is not used
  + md5: using system crypto library
  + sha1 library is not used
  + using system zlib library
...
==========================================================================

ssl in nginx ebuild does not mean "use openssl library"  or "not use openssl library", it means https support in web-server.
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-04-28 11:02:30 UTC
checking for OpenSSL md5 crypto library ... found
  + md5: using system crypto library

It means it's using libcrypto, which is part of OpenSSL, the ssl USE flag in Gentoo means to disable OpenSSL, so yes we have to force OpenSSL enabled (with or without https is another thing) for glibc for md5 to work.

Note: FreeBSD's C library uses _the same interface as OpenSSL_, glibc does not have that interface.
Comment 9 Alex 2009-04-28 11:23:41 UTC
(In reply to comment #8)
> checking for OpenSSL md5 crypto library ... found
>   + md5: using system crypto library
> 
> It means it's using libcrypto, which is part of OpenSSL, the ssl USE flag in
> Gentoo means to disable OpenSSL, so yes we have to force OpenSSL enabled (with
> or without https is another thing) for glibc for md5 to work.
So, adding http_ssl flag(there will be mail_ssl sometimes) or something like that and forcing OpenSSL enabled is the only option I see now. 
Comment 10 Alex Pogodin 2009-07-11 09:37:21 UTC
same error compiling nginx-0.7.61 on amd64
Comment 11 Tiziano Müller (RETIRED) gentoo-dev 2009-09-08 12:34:47 UTC
The point is:
On userland_GNU you need OpenSSL for http-cache and http_secure_link_module since glibc doesn't implement the MD5 interface. SHA1 gets checked for but not actually used. The problem with the ebuild is that it sets the md5-root-library to /usr/include which overrides the automatic detection of the header and sets it to the wrong directory (it would be /usr/include/openssl, but which is again wrong since nginx expects a libmd5.a in that dir).
So, the solution is to depend on dev-libs/openssl in case you want http-cache or http_secure_link_module functionality and if userland is GNU. In addition it is safe to leave the detection to the build system because it does it correctly (meaning: using system's libmd/libmd5 where present, dev-libs/openssl otherwise and in case you want ssl-support anyway it always uses openssl).

A corrected ebuild is in my overlay (contains a looot of improvements):
http://git.overlays.gentoo.org/gitweb/?p=dev/dev-zero.git;a=tree;f=www-servers/nginx;hb=HEAD
Comment 12 Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2009-10-14 21:50:12 UTC
*** Bug 268553 has been marked as a duplicate of this bug. ***
Comment 13 Dirkjan Ochtman (RETIRED) gentoo-dev 2010-01-03 17:51:01 UTC
This has been fixed in the current 0.7.64 ebuild.