<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>147923</bug_id>
          
          <creation_ts>2006-09-17 06:19 0000</creation_ts>
          <short_desc>mail-mta/nbsmtp-1.00 fails to compile against dev-libs/openssl-0.9.8c-r1</short_desc>
          <delta_ts>2006-11-19 11:53:39 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>155708</blocked>
          
          <everconfirmed>1</everconfirmed>
          <reporter>lavish@gmail.com</reporter>
          <assigned_to>ferdy@gentoo.org</assigned_to>
          <cc>masterdriverz@gentoo.org</cc>
    
    <cc>net-mail@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>lavish@gmail.com</who>
            <bug_when>2006-09-17 06:19:01 0000</bug_when>
            <thetext>[...]
cc -Wall -pedantic -DPACKAGE_NAME=\&quot;nbsmtp\&quot; -DPACKAGE_TARNAME=\&quot;nbsmtp\&quot; -DPACKAGE_VERSION=\&quot;1.00\&quot; -DPACKAGE_STRING=\&quot;nbsmtp\ 1.00\&quot; -DPACKAGE_BUGREPORT=\&quot;nbsmtp@ferdyx.org\&quot; -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=\&quot;/etc\&quot;  -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 </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lavish@gmail.com</who>
            <bug_when>2006-09-17 06:19:01 0000</bug_when>
            <thetext>[...]
cc -Wall -pedantic -DPACKAGE_NAME=\&quot;nbsmtp\&quot; -DPACKAGE_TARNAME=\&quot;nbsmtp\&quot; -DPACKAGE_VERSION=\&quot;1.00\&quot; -DPACKAGE_STRING=\&quot;nbsmtp\ 1.00\&quot; -DPACKAGE_BUGREPORT=\&quot;nbsmtp@ferdyx.org\&quot; -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=\&quot;/etc\&quot;  -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=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=pentium4 -pipe -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/share/X11/xkb&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -march=pentium4 -pipe -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig distlocks metadata-transfer sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo&quot;
LC_ALL=&quot;en_US.UTF-8&quot;
LINGUAS=&quot;en&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=&apos;/distfiles&apos; --exclude=&apos;/local&apos; --exclude=&apos;/packages&apos;&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage&quot;
USE=&quot;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&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Cheers</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>franjva@terra.es</who>
            <bug_when>2006-09-17 06:30:13 0000</bug_when>
            <thetext>An easy way to solve it is to include string.h before openssl/md5 in hmac_md5.c.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>masterdriverz@gentoo.org</who>
            <bug_when>2006-09-17 09:56:14 0000</bug_when>
            <thetext>Same here. Attached patch does what Francisco advises, fixes compilation here.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>masterdriverz@gentoo.org</who>
            <bug_when>2006-09-17 09:56:58 0000</bug_when>
            <thetext>Created an attachment (id=97261)
Fix nbsmtp compilation

Patch to fix compilation</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ferdy@gentoo.org</who>
            <bug_when>2006-09-17 10:14:31 0000</bug_when>
            <thetext>Sorry for the delay guys. Fixed in &gt;=mail-mta/nbsmtp-1.00-r2

Thanks.

- ferdy</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>97261</attachid>
            <date>2006-09-17 09:56 0000</date>
            <desc>Fix nbsmtp compilation</desc>
            <filename>nbsmtp-fix.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIGhtYWNfbWQ1LmMub3JpZwkyMDA2LTA5LTE3IDE3OjQ0OjMzLjAwMDAwMDAwMCArMDEwMAor
KysgaG1hY19tZDUuYwkyMDA2LTA5LTE3IDE3OjQ1OjA3LjAwMDAwMDAwMCArMDEwMApAQCAtNSw4
ICs1LDggQEAKICAqIENvZGUgdGFrZW4gZnJvbSBSRkMyMTA0LgogICovCiAKLSNpbmNsdWRlIDxv
cGVuc3NsL21kNS5oPgogI2luY2x1ZGUgPHN0cmluZy5oPgorI2luY2x1ZGUgPG9wZW5zc2wvbWQ1
Lmg+CiAKICNpbmNsdWRlICJobWFjX21kNS5oIgogCg==
</data>        

          </attachment>
    </bug>

</bugzilla>