Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147923 - mail-mta/nbsmtp-1.00 fails to compile against dev-libs/openssl-0.9.8c-r1
Summary: mail-mta/nbsmtp-1.00 fails to compile against dev-libs/openssl-0.9.8c-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Fernando J. Pereda (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 155708
  Show dependency tree
 
Reported: 2006-09-17 06:19 UTC by Marco Squarcina
Modified: 2006-11-19 11:53 UTC (History)
2 users (show)

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


Attachments
Fix nbsmtp compilation (nbsmtp-fix.patch,259 bytes, patch)
2006-09-17 09:56 UTC, Charlie Shepherd (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Squarcina 2006-09-17 06:19:01 UTC
[...]
cc -Wall -pedantic -DPACKAGE_NAME=\"nbsmtp\" -DPACKAGE_TARNAME=\"nbsmtp\" -DPACKAGE_VERSION=\"1.00\" -DPACKAGE_STRING=\"nbsmtp\ 1.00\" -DPACKAGE_BUGREPORT=\"nbsmtp@ferdyx.org\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_FCNTL_H=1 -DHAVE_CTYPE_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_STRING_H=1 -DHAVE_PWD_H=1 -D_GNU_SOURCE=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DHAVE_STRFTIME=1 -DHAVE_VPRINTF=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETHOSTNAME=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRCASESTR=1 -DHAVE_ASPRINTF=1 -DHAVE_MEMSET=1 -DHAVE_GETOPT=1 -DHAVE_STRSEP=1 -DHAVE_SSL=1 -DHAVE_OPENSSL_CRYPTO_H=1 -DHAVE_OPENSSL_X509_H=1 -DHAVE_OPENSSL_PEM_H=1 -DHAVE_OPENSSL_SSL_H=1 -DHAVE_OPENSSL_ERR_H=1 -DHAVE_OPENSSL_MD5_H=1 -DHAVE_LIBSSL=1 -DHAVE_LIBCRYPTO=1 -DHAVE_CRYPTO_CLEANUP_ALL_EX_DATA=1  -DSYSCONFDIR=\"/etc\"  -O2 -march=pentium4 -pipe -fomit-frame-pointer   -c -o hmac_md5.o hmac_md5.c
In file included from hmac_md5.c:8:
/usr/include/openssl/md5.h:108: error: expected declaration specifiers or 
Comment 1 Marco Squarcina 2006-09-17 06:19:01 UTC
[...]
cc -Wall -pedantic -DPACKAGE_NAME=\"nbsmtp\" -DPACKAGE_TARNAME=\"nbsmtp\" -DPACKAGE_VERSION=\"1.00\" -DPACKAGE_STRING=\"nbsmtp\ 1.00\" -DPACKAGE_BUGREPORT=\"nbsmtp@ferdyx.org\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDIO_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_NETDB_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_FCNTL_H=1 -DHAVE_CTYPE_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_STRING_H=1 -DHAVE_PWD_H=1 -D_GNU_SOURCE=1 -DHAVE_STDLIB_H=1 -DHAVE_MALLOC=1 -DHAVE_STDLIB_H=1 -DHAVE_REALLOC=1 -DHAVE_STRFTIME=1 -DHAVE_VPRINTF=1 -DHAVE_GETHOSTBYNAME=1 -DHAVE_GETHOSTNAME=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRCASESTR=1 -DHAVE_ASPRINTF=1 -DHAVE_MEMSET=1 -DHAVE_GETOPT=1 -DHAVE_STRSEP=1 -DHAVE_SSL=1 -DHAVE_OPENSSL_CRYPTO_H=1 -DHAVE_OPENSSL_X509_H=1 -DHAVE_OPENSSL_PEM_H=1 -DHAVE_OPENSSL_SSL_H=1 -DHAVE_OPENSSL_ERR_H=1 -DHAVE_OPENSSL_MD5_H=1 -DHAVE_LIBSSL=1 -DHAVE_LIBCRYPTO=1 -DHAVE_CRYPTO_CLEANUP_ALL_EX_DATA=1  -DSYSCONFDIR=\"/etc\"  -O2 -march=pentium4 -pipe -fomit-frame-pointer   -c -o hmac_md5.o hmac_md5.c
In file included from hmac_md5.c:8:
/usr/include/openssl/md5.h:108: error: expected declaration specifiers or ... before size_t
/usr/include/openssl/md5.h:110: error: expected declaration specifiers or ... before size_t
hmac_md5.c: In function hmac_md5:
hmac_md5.c:35: error: too many arguments to function MD5_Update
hmac_md5.c:70: error: too many arguments to function MD5_Update
hmac_md5.c:71: error: too many arguments to function MD5_Update
hmac_md5.c:78: error: too many arguments to function MD5_Update
hmac_md5.c:79: error: too many arguments to function MD5_Update
make: *** [hmac_md5.o] Error 1

!!! ERROR: mail-mta/nbsmtp-1.00 failed

My emerge --info:
Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.16-suspend2-r8 i686)
=================================================================
System uname: 2.6.16-suspend2-r8 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz
Gentoo Base System version 1.12.5
Last Sync: Sun, 17 Sep 2006 10:30:06 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 2.0.28-r1
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j2"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X alsa bash-completion berkdb bitmap-fonts cairo cli crypt dlloader dri dvd elibc_glibc fortran gdbm gpm input_devices_keyboard input_devices_mouse isdnlog jpeg kernel_linux libg++ linguas_en madwifi mmx mp3 ncurses nls nptl nptlonly nsplugin opengl pam pcre png ppds pppd python readline reflection session spl sse sse2 ssl svg tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_radeon vorbis xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Cheers
Comment 2 Francisco J. Vazquez 2006-09-17 06:30:13 UTC
An easy way to solve it is to include string.h before openssl/md5 in hmac_md5.c.
Comment 3 Charlie Shepherd (RETIRED) gentoo-dev 2006-09-17 09:56:14 UTC
Same here. Attached patch does what Francisco advises, fixes compilation here.
Comment 4 Charlie Shepherd (RETIRED) gentoo-dev 2006-09-17 09:56:58 UTC
Created attachment 97261 [details, diff]
Fix nbsmtp compilation

Patch to fix compilation
Comment 5 Fernando J. Pereda (RETIRED) gentoo-dev 2006-09-17 10:14:31 UTC
Sorry for the delay guys. Fixed in >=mail-mta/nbsmtp-1.00-r2

Thanks.

- ferdy