Summary: | net-fs/samba-3.4.9[debug]: fails on -Werror-implicit-function-declaration | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Pascal Bourguignon <pjb> |
Component: | [OLD] Server | Assignee: | Gentoo's SAMBA Team <samba> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chrsclmn |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
URL: | https://bugzilla.samba.org/show_bug.cgi?id=7327 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | bug report documents. |
Created attachment 251731 [details]
bug report documents.
Confirmed. I tried emerging samba-3.4.9 with your USE flags and it failed with the same error message. It's the "debug" USE flag that is causing the breakage. Without that set it emerges successfully. With USE="debug", the ebuild passes --enable-developer to the configure script. That flag changes the way Samba is built to make it easier to maintain and debug. One of the things it does is add -Werror-implicit-function-declaration to CFLAGS. That causes implicit function declarations to be treated as errors rather than just warnings. So, with USE="debug", what was previously just a warning becomes a fatal error: error: implicit declaration of function 'cli_krb5_get_ticket' This is a problem within Samba itself, not the Gentoo ebuild. It needs to be fixed upstream rather than by Gentoo. Do you really need "debug" in your global USE flags? It's quite unusual to have that enabled for everything. (In reply to comment #4) > Do you really need "debug" in your global USE flags? It's quite unusual to have > that enabled for everything. Indeed, I don't remember why it's on myu USE list. I will remove it and rebuild. This solves this problem, and also #342383. Thank you. Fixed in samba-3.4.9 and samba-3.5.6 |
emerge --sync ; emerge portage ; emerge --update world >>> No outdated packages were found on your system. Then: emerge samba fails with: libsmb/clispnego.c: In function 'spnego_gen_negTokenTarg': libsmb/clispnego.c:390: error: implicit declaration of function 'cli_krb5_get_ticket' The following command failed: x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -mno-tls-direct-seg-refs -g -g -Wall -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER -Wdeclaration-after-statement -Werror-implicit-function-declaration -I. -I/var/tmp/portage/net-fs/samba-3.4.9/work/samba-3.4.9/source3 -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc -I./.. -DHAVE_CONFIG_H -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc -I./.. -I./../lib/popt -I/var/tmp/portage/net-fs/samba-3.4.9/work/samba-3.4.9/source3/lib -I.. -I../source4 -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC -c libsmb/clispnego.c -o libsmb/clispnego.o Compiling libsmb/climessage.c make: *** [libsmb/clispnego.o] Error 1 make: *** Waiting for unfinished jobs.... * ERROR: net-fs/samba-3.4.9 failed: * emake libnetapi failed See attached tarball.