Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342377 - net-fs/samba-3.4.9[debug]: fails on -Werror-implicit-function-declaration
Summary: net-fs/samba-3.4.9[debug]: fails on -Werror-implicit-function-declaration
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL: https://bugzilla.samba.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-23 19:47 UTC by Pascal Bourguignon
Modified: 2010-12-23 17:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
bug report documents. (net-fs--samba-3.4.9--20101023T214541.tar.bz2,38.18 KB, text/plain)
2010-10-23 19:48 UTC, Pascal Bourguignon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Bourguignon 2010-10-23 19:47:54 UTC
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.
Comment 1 Pascal Bourguignon 2010-10-23 19:48:23 UTC
Created attachment 251731 [details]
bug report documents.
Comment 2 Chris Coleman 2010-10-23 21:44:17 UTC
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.
Comment 3 Chris Coleman 2010-10-23 22:26:21 UTC
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.
Comment 4 Chris Coleman 2010-10-23 22:28:54 UTC
Do you really need "debug" in your global USE flags? It's quite unusual to have that enabled for everything.
Comment 5 Pascal Bourguignon 2010-10-24 13:13:31 UTC
(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.
Comment 6 Víctor Ostorga (RETIRED) gentoo-dev 2010-12-23 17:41:13 UTC
Fixed in samba-3.4.9 and samba-3.5.6