Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507504 - net-mail/mpack-1.6-r3 - uudecode.c:848:5: error: non-void function 'uudecodeline' should return a value [-Wreturn-type]
Summary: net-mail/mpack-1.6-r3 - uudecode.c:848:5: error: non-void function 'uudecodel...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-04-12 14:17 UTC by Alexander Kolesen
Modified: 2014-04-19 10:10 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 Alexander Kolesen 2014-04-12 14:17:56 UTC
% sudo emerge -1 mpack   

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-mail/mpack-1.6-r3
Refetching... File renamed to '/usr/portage/distfiles/mpack-1.6.tar.gz._checksum_failure_.NQKx_1'

>>> Downloading 'http://distfiles.gentoo.org/distfiles/mpack-1.6.tar.gz'
--2014-04-12 16:04:25--  http://distfiles.gentoo.org/distfiles/mpack-1.6.tar.gz
Resolving distfiles.gentoo.org... 64.50.233.100, 140.211.166.134, 64.50.236.52, ...
Connecting to distfiles.gentoo.org|64.50.233.100|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 179850 (176K) [application/x-gzip]
Saving to: ‘/usr/portage/distfiles/mpack-1.6.tar.gz’

100%[======================================>] 179,850      468KB/s   in 0.4s   

2014-04-12 16:04:26 (468 KB/s) - ‘/usr/portage/distfiles/mpack-1.6.tar.gz’ saved [179850/179850]

 * mpack-1.6.tar.gz SHA256 size ;-) ...                                                                                         [ ok ]
>>> Unpacking source...
>>> Unpacking mpack-1.6.tar.gz to /var/tmp/portage/net-mail/mpack-1.6-r3/work
>>> Source unpacked in /var/tmp/portage/net-mail/mpack-1.6-r3/work
>>> Preparing source in /var/tmp/portage/net-mail/mpack-1.6-r3/work/mpack-1.6 ...
 * Applying mpack-1.6-filenames.patch ...                                                                                       [ ok ]
 * Applying mpack-1.6-usage.patch ...                                                                                           [ ok ]
 * Applying mpack-1.6-munpack.patch ...                                                                                         [ ok ]
 * Applying mpack-1.6-compile.patch ...                                                                                         [ ok ]
 * Applying mpack-1.6-paths.patch ...                                                                                           [ ok ]
 * Applying mpack-1.6-cve-2011-4919.patch ...                                                                                   [ ok ]
 * Running eautoreconf in '/var/tmp/portage/net-mail/mpack-1.6-r3/work/mpack-1.6' ...
 * Running aclocal -I cmulocal ...                                                                                              [ ok ]
 * Running autoconf -I cmulocal ...                                                                                             [ ok ]
 * Running automake --add-missing --copy --foreign --force-missing ...                                                          [ ok ]
 * Running elibtoolize in: mpack-1.6/
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-mail/mpack-1.6-r3/work/mpack-1.6 ...
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64
configure: loading site script /usr/share/config.site
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for x86_64-pc-linux-gnu-gcc... /usr/bin/clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /usr/bin/clang accepts -g... yes
checking for /usr/bin/clang option to accept ISO C89... none needed
checking whether /usr/bin/clang understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of /usr/bin/clang... gcc3
checking for connect... ./configure: line 1484: ac_fn_c_try_link: command not found
no
checking for gethostbyname in -lnsl... yes
checking for connect in -lsocket... no
checking for res_search... no
checking for res_search in -lresolv... no
checking for dn_expand... no
checking for dns_lookup... no
checking for strchr... yes
checking for strcasecmp... yes
checking for getopt... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-mail/mpack-1.6-r3/work/mpack-1.6 ...
make -j4 -l 3 
cp unixpk.man mpack.1
cp unixunpk.man munpack.1
make  all-am
...
/usr/bin/clang  -ggdb -pipe -O2  -Wl,-O1 -Wl,--as-needed -o mpack unixpk.o encode.o codes.o magic.o unixos.o xmalloc.o md5c.o -lnsl  
uudecode.c:848:5: error: non-void function 'uudecodeline' should return a value [-Wreturn-type]
    return;
    ^
18 warnings and 1 error generated.
Makefile:426: recipe for target 'uudecode.o' failed
make[1]: *** [uudecode.o] Error 1
make[1]: *** Waiting for unfinished jobs....
unixpk.o: In function `main':
/var/tmp/portage/net-mail/mpack-1.6-r3/work/mpack-1.6/unixpk.c:172: warning: the use of `mktemp' is dangerous, better use `mkstemp'
3 warnings generated.
mv -f .deps/part.Tpo .deps/part.Po
23 warnings generated.
mv -f .deps/decode.Tpo .deps/decode.Po
make[1]: Leaving directory '/var/tmp/portage/net-mail/mpack-1.6-r3/work/mpack-1.6'
Makefile:316: recipe for target 'all' failed
make: *** [all] Error 2
emake failed
 * ERROR: net-mail/mpack-1.6-r3::gentoo failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *          ebuild.sh, line   93:  Called src_compile
 *        environment, line 2717:  Called __eapi2_src_compile
 *   phase-helpers.sh, line  695:  Called die
 * The specific snippet of code:
 *   		emake || die "emake failed"
 * 
 * If you need support, post the output of `emerge --info '=net-mail/mpack-1.6-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-mail/mpack-1.6-r3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-mail/mpack-1.6-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-mail/mpack-1.6-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/net-mail/mpack-1.6-r3/work/mpack-1.6'
 * S: '/var/tmp/portage/net-mail/mpack-1.6-r3/work/mpack-1.6'

>>> Failed to emerge net-mail/mpack-1.6-r3, Log file:

>>>  '/var/tmp/portage/net-mail/mpack-1.6-r3/temp/build.log'

 * Messages for package net-mail/mpack-1.6-r3:

 * ERROR: net-mail/mpack-1.6-r3::gentoo failed (compile phase):
 *   emake failed
 * 
 * Call stack:
 *          ebuild.sh, line   93:  Called src_compile
 *        environment, line 2717:  Called __eapi2_src_compile
 *   phase-helpers.sh, line  695:  Called die
 * The specific snippet of code:
 *   		emake || die "emake failed"
 * 
 * If you need support, post the output of `emerge --info '=net-mail/mpack-1.6-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=net-mail/mpack-1.6-r3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/net-mail/mpack-1.6-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-mail/mpack-1.6-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/net-mail/mpack-1.6-r3/work/mpack-1.6'
 * S: '/var/tmp/portage/net-mail/mpack-1.6-r3/work/mpack-1.6'



It's hard to get to upstream, so maybe it's easier to provide a simple patch:

--- uudecode.c.orig	2014-04-12 16:09:39.965458630 +0200
+++ uudecode.c	2014-04-12 16:10:38.645872979 +0200
@@ -845,7 +845,7 @@
 	}
 	line += 4;
     }
-    return;
+    return 0;
 }
 


Reproducible: Always

Steps to Reproduce:
% cat /etc/make.conf | grep clang
CC=/usr/bin/clang
CXX=/usr/bin/clang++

% sudo emerge -1 mpack
Actual Results:  
Package doesn't compile.

Expected Results:  
Package compiles.

% emerge --info
Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.8.2, glibc-2.18-r1, 3.13.0+ x86_64)
=================================================================
System uname: Linux-3.13.0+-x86_64-Intel-R-_Core-TM-_i7-2640M_CPU_@_2.80GHz-with-gentoo-2.2
KiB Mem:     8062456 total,   1793408 free
KiB Swap:    3999996 total,   3999996 free
Timestamp of tree: Sat, 12 Apr 2014 02:30:01 +0000
ld GNU ld (GNU Binutils) 2.24
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.6, 3.2.3-r2, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.11.6, 1.12.6, 1.13.1, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.7.2-r1, 4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.18-r1
Repositories: gentoo rion heather rust gentoo-haskell g-ctan sunrise systemd zugaina
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA skype-eula AdobeFlash-10.3 google-chrome skype-4.0.0.7-copyright google-talkplugin Google-TOS Oracle-BCLA-JavaSE AdobeFlash-11.x PUEL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-ggdb -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
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="-ggdb -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs 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 userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4 -l 3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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="/var/lib/layman/rion /var/lib/layman/heather /var/lib/layman/rust /var/lib/layman/haskell /var/lib/g-ctan /var/lib/layman/sunrise /var/lib/layman/systemd /var/lib/layman/zugaina"
USE="X acl amd64 berkdb bzip2 cleartype cli corefonts cracklib cxx dri fortran gdbm gpm iconv ipv6 mmx modules multilib ncurses nls nptl openmp pcre pulseaudio readline session sse sse2 ssl systemd tcpd truetype type1 unicode xft xinerama zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-12 17:09:00 UTC
Even GCC complains:

uudecode.c:848:5: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
Comment 2 Eray Aslan gentoo-dev 2014-04-19 10:10:58 UTC
+  19 Apr 2014; Eray Aslan <eras@gentoo.org> +files/mpack-1.6-clang.patch,
+  mpack-1.6-r3.ebuild:
+  Fix build with clang - bug #507504
+