Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 227799 - ssmtp-2.62 fails on gfbsd
Summary: ssmtp-2.62 fails on gfbsd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Gentoo/BSD Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-17 13:26 UTC by Dan Coats
Modified: 2008-07-13 18:57 UTC (History)
2 users (show)

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 Dan Coats 2008-06-17 13:26:31 UTC
ssmtp-2.62 fails on gfbsd

Reproducible: Always

Steps to Reproduce:
1.emerge =mail-mta/ssmtp-2.62
2.
3.

Actual Results:  
smtp.c:68: warning: cast from pointer to integer of different size
ssmtp.c:71: warning: cast from pointer to integer of different size
ssmtp.c:72: warning: cast from pointer to integer of different size
ssmtp.c: In function 'strip_post_ws':
ssmtp.c:264: warning: cast from pointer to integer of different size
ssmtp.c: In function 'addr_parse':
ssmtp.c:290: warning: cast from pointer to integer of different size
ssmtp.c:313: warning: cast from pointer to integer of different size
ssmtp.c: In function 'standardise':
ssmtp.c:356: warning: cast from pointer to integer of different size
ssmtp.c: In function 'revaliases':
ssmtp.c:389: warning: cast from pointer to integer of different size
ssmtp.c: In function 'rcpt_save':
ssmtp.c:519: warning: cast from pointer to integer of different size
ssmtp.c: In function 'rcpt_parse':
ssmtp.c:576: warning: cast from pointer to integer of different size
ssmtp.c:584: warning: cast from pointer to integer of different size
ssmtp.c: In function 'header_save':
ssmtp.c:676: warning: cast from pointer to integer of different size
ssmtp.c: In function 'header_parse':
ssmtp.c:741: warning: cast from pointer to integer of different size
ssmtp.c:776: warning: cast from pointer to integer of different size
ssmtp.c:778: warning: cast from pointer to integer of different size
ssmtp.c:809: warning: cast from pointer to integer of different size
ssmtp.c:811: warning: cast from pointer to integer of different size
ssmtp.c: In function 'firsttok':
ssmtp.c:844: warning: incompatible implicit declaration of built-in function 'strndup'
ssmtp.c: In function 'read_config':
ssmtp.c:876: warning: cast from pointer to integer of different size
ssmtp.c: In function 'fd_gets':
ssmtp.c:1304: warning: cast from pointer to integer of different size
ssmtp.c: In function 'parse_options':
ssmtp.c:1717: warning: cast from pointer to integer of different size
ssmtp.c: In function 'main':
ssmtp.c:2046: warning: assignment makes pointer from integer without a cast
i686-gentoo-freebsd6.2-gcc -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DREWRITE_DOMAIN=1 -DHAVE_SSL=1  -DSSMTPCONFDIR=\"/etc/ssmtp\" -DCONFIGURATION_FILE=\"/etc/ssmtp/ssmtp.conf\" -DREVALIASES_FILE=\"/etc/ssmtp/revaliases\"  -O2 -mtune=i686 -pipe   -c -o arpadate.o arpadate.c
i686-gentoo-freebsd6.2-gcc -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DREWRITE_DOMAIN=1 -DHAVE_SSL=1  -DSSMTPCONFDIR=\"/etc/ssmtp\" -DCONFIGURATION_FILE=\"/etc/ssmtp/ssmtp.conf\" -DREVALIASES_FILE=\"/etc/ssmtp/revaliases\"  -O2 -mtune=i686 -pipe   -c -o base64.o base64.c
i686-gentoo-freebsd6.2-gcc -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DREWRITE_DOMAIN=1 -DHAVE_SSL=1  -DSSMTPCONFDIR=\"/etc/ssmtp\" -DCONFIGURATION_FILE=\"/etc/ssmtp/ssmtp.conf\" -DREVALIASES_FILE=\"/etc/ssmtp/revaliases\"  -O2 -mtune=i686 -pipe   -c -o xgethostname.o xgethostname.c
i686-gentoo-freebsd6.2-gcc  -o ssmtp ssmtp.o arpadate.o base64.o xgethostname.o  -lssl -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYSLOG_H=1 -DHAVE_UNISTD_H=1 -DRETSIGTYPE=void -DHAVE_VPRINTF=1 -DHAVE_GETHOSTNAME=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1 -DHAVE_STRSTR=1 -DREWRITE_DOMAIN=1 -DHAVE_SSL=1  -DSSMTPCONFDIR=\"/etc/ssmtp\" -DCONFIGURATION_FILE=\"/etc/ssmtp/ssmtp.conf\" -DREVALIASES_FILE=\"/etc/ssmtp/revaliases\"  -O2 -mtune=i686 -pipe
ssmtp.o: In function `firsttok':
ssmtp.c:(.text+0xf95): undefined reference to `strndup'
collect2: ld returned 1 exit status
gmake: *** [ssmtp] Error 1
 * 
 * ERROR: mail-mta/ssmtp-2.62 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2028:  Called die
 * The specific snippet of code:
 *       gmake etcdir=/etc || die
 *  The die message:
 *   (no error message)


Expected Results:  
Should compile

 emerge --info
Portage 2.1.5.5 (default-bsd/fbsd/6.2/x86, gcc-4.2.4, freebsd-lib-6.2-r4, 6.2-RELEASE i386)
=================================================================
System uname: 6.2-RELEASE i386 i386
Timestamp of tree: Tue, 17 Jun 2008 12:06:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r4, 2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.17-r2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  6.2-r4
ACCEPT_KEYWORDS="x86-fbsd ~x86-fbsd"
CBUILD="i686-gentoo-freebsd6.2"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i686-gentoo-freebsd6.2"
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/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks parallel-fetch sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo http://open-systems.ufl.edu/mirrors/gentoo http://mirror.phy.olemiss.edu/mirror/gentoo"
LDFLAGS=""
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
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"
PORTDIR_OVERLAY="/usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acl adns apache2 bash-completion bcmath bidi bindinst browserplugin bzip2 cairo calendar cli cracklib crypt cups curlwrappers dbus dedicated dga dlloader dri dts emacs emacs-w3 erandom ethereal expat fastcgi font ftp gd gdbm geoip glitz glut gnusetup gnutls gtk gtkhtml hal iconv imap immqt-bc inifile innodb java java5 javascript jp2 jpeg jpeg2k libcaca libclamv live lzo midi mime ming mmap motif mpi ncurses nls nsplugin nvidia oav objc oracle oscar oss pam pcre pdf perl php pic posix ppds python qt3support readline reflection samba session shared spl sqlite sse ssl symlink tcltktcpd tcpd test threads unicode urandom usb usepackagedmakefiles userlocales vcd vhosts x86-fbsd xcomposite xml xorg xpm xprint zeroconf zlib" 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 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 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 proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="FreeBSD" INPUT_DEVICES="keyboard mouse" KERNEL="FreeBSD" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="BSD" VIDEO_CARDS="nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Fabian Groffen gentoo-dev 2008-06-18 06:44:33 UTC
please try this patch:

http://overlays.gentoo.org/proj/alt/browser/trunk/prefix-overlay/mail-mta/ssmtp/files/ssmtp-2.62-strndup.patch?format=txt

(Solaris doesn't have strndup either)
Comment 2 Dan Coats 2008-06-18 14:25:38 UTC
patch works fine, thanks
Comment 3 Javier Villavicencio (RETIRED) gentoo-dev 2008-07-02 16:19:11 UTC
Can we get this patch in portage/upstream?
Comment 4 Tobias Scherbaum (RETIRED) gentoo-dev 2008-07-11 18:57:15 UTC
(In reply to comment #3)
> Can we get this patch in portage/upstream?
> 

InCVS.
Comment 5 Fabian Groffen gentoo-dev 2008-07-13 14:09:44 UTC
Conditional patches really are teh suck.  Any reason why the applied fix doesn't roughly look like http://overlays.gentoo.org/proj/alt/changeset?new=trunk%2Fprefix-overlay%2Fmail-mta%2Fssmtp%4023531&old=trunk%2Fprefix-overlay%2Fmail-mta%2Fssmtp%4023497
?
Comment 6 Tobias Scherbaum (RETIRED) gentoo-dev 2008-07-13 15:55:12 UTC
(In reply to comment #5)
> Conditional patches really are teh suck.  Any reason why the applied fix
> doesn't roughly look like
> http://overlays.gentoo.org/proj/alt/changeset?new=trunk%2Fprefix-overlay%2Fmail-mta%2Fssmtp%4023531&old=trunk%2Fprefix-overlay%2Fmail-mta%2Fssmtp%4023497
> ?
> 

Maybe 'cause i missed the ifdef in that patch ... dunno, it's fixed in CVS.
Comment 7 Fabian Groffen gentoo-dev 2008-07-13 18:43:36 UTC
not that I like to complain about the details, but you don't run eautoreconf, which means the patch to configure.in either triggers a maintainer mode autoreconf (which means Flameeyes will burn you) or it doesn't work since HAVE_STRNDUP is never set.
Comment 8 Tobias Scherbaum (RETIRED) gentoo-dev 2008-07-13 18:57:23 UTC
(In reply to comment #7)
> not that I like to complain about the details, but you don't run eautoreconf,
> which means the patch to configure.in either triggers a maintainer mode
> autoreconf (which means Flameeyes will burn you) or it doesn't work since
> HAVE_STRNDUP is never set.
> 

*sigh* ... also fixed.