Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#43980 - [krb5] Makefile:866: recipe for target 'sendto_kdc.so' failed (maybe-uninitialized)

Attached to Project: Arch Linux
Opened by ldng (ldng) - Friday, 27 February 2015, 23:27 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 05 March 2015, 14:41 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

krb5 pkgver=1.13.1

$ gcc --version
gcc (GCC) 4.9.2 20150204 (prerelease)


I am trying to recompile krb5 with debuginfo.
I fetched the pacakge from abs, enter the directory and run "makepkg -s"

I get the following error :

sendto_kdc.c: In function 'service_fds':
sendto_kdc.c:347:56: error: 'curtime' may be used uninitialized in this function [-Werror=maybe-uninitialized]
interval = (curtime < endtime) ? endtime - curtime : 0;
^
sendto_kdc.c:342:13: note: 'curtime' was declared here
time_ms curtime, interval;
^
sendto_kdc.c:1326:13: error: 'endtime' may be used uninitialized in this function [-Werror=maybe-uninitialized]
endtime += interval;
^
cc1: some warnings being treated as errors
Makefile:866: recipe for target 'sendto_kdc.so' failed
make[3]: *** [sendto_kdc.so] Error 1
make[3]: Leaving directory '/home/abs/local/krb5/src/krb5-1.13.1/src/lib/krb5/os'
Makefile:1107: recipe for target 'all-recurse' failed
make[2]: *** [all-recurse] Error 1
make[2]: Leaving directory '/home/abs/local/krb5/src/krb5-1.13.1/src/lib/krb5'
Makefile:951: recipe for target 'all-recurse' failed
make[1]: *** [all-recurse] Error 1
make[1]: Leaving directory '/home/abs/local/krb5/src/krb5-1.13.1/src/lib'
Makefile:1526: recipe for target 'all-recurse' failed
make: *** [all-recurse] Error 1
This task depends upon

Closed by  Doug Newgard (Scimmia)
Thursday, 05 March 2015, 14:41 GMT
Reason for closing:  Works for me
Comment by ldng (ldng) - Friday, 27 February 2015, 23:34 GMT
The issue can be sidestepped by adding "-Wno-maybe-uninitialized" to the CFLAGS definition in PKGBUILD.
That said, it is probably not very wise :)
Maybe this should be reported upstream ?
Comment by Doug Newgard (Scimmia) - Saturday, 28 February 2015, 04:06 GMT
Just built fine here in a clean chroot.

Loading...