Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301855 - net-fs/samba-libs-3.4.5 build fail
Summary: net-fs/samba-libs-3.4.5 build fail
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-22 16:32 UTC by Christophe Boulain
Modified: 2010-12-06 12:45 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,53.94 KB, text/plain)
2010-01-22 16:33 UTC, Christophe Boulain
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christophe Boulain 2010-01-22 16:32:04 UTC
>>> Compiling source in /var/tmp/portage/net-fs/samba-libs-3.4.5/work/samba-3.4.5/source3 ...
 * make netapi library
make -j1 libnetapi 
mkdir bin
Compiling lib/netapi/netapi.c
Compiling lib/netapi/cm.c
Compiling librpc/gen_ndr/ndr_libnetapi.c
Compiling lib/netapi/libnetapi.c
Compiling lib/netapi/joindomain.c
Compiling lib/netapi/serverinfo.c
Compiling lib/netapi/getdc.c
Compiling lib/netapi/user.c
Compiling lib/netapi/group.c
Compiling lib/netapi/localgroup.c
Compiling lib/netapi/samr.c
lib/netapi/samr.c: In function 'libnetapi_samr_open_domain':
lib/netapi/samr.c:47: error: expected expression before 'struct'
lib/netapi/samr.c:47: warning: assignment makes pointer from integer without a cast
lib/netapi/samr.c: In function 'libnetapi_samr_open_builtin_domain':
lib/netapi/samr.c:169: error: expected expression before 'struct'
lib/netapi/samr.c:169: warning: assignment makes pointer from integer without a cast
lib/netapi/samr.c: In function 'libnetapi_samr_close_domain_handle':
lib/netapi/samr.c:243: error: expected expression before 'struct'
lib/netapi/samr.c:243: warning: assignment makes pointer from integer without a cast
lib/netapi/samr.c: In function 'libnetapi_samr_close_builtin_handle':
lib/netapi/samr.c:267: error: expected expression before 'struct'
lib/netapi/samr.c:267: warning: assignment makes pointer from integer without a cast
lib/netapi/samr.c: In function 'libnetapi_samr_close_connect_handle':
lib/netapi/samr.c:291: error: expected expression before 'struct'
lib/netapi/samr.c:291: warning: assignment makes pointer from integer without a cast
lib/netapi/samr.c: In function 'libnetapi_samr_free':
lib/netapi/samr.c:314: error: expected expression before 'struct'
lib/netapi/samr.c:314: warning: assignment makes pointer from integer without a cast
The following command failed:
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -I. -I/var/tmp/portage/net-fs/samba-libs-3.4.5/work/samba-3.4.5/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 -DLDAP_DEPRECATED  -I/var/tmp/portage/net-fs/samba-libs-3.4.5/work/samba-3.4.5/source3/lib -I.. -I../source4 -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC -c lib/netapi/samr.c -o lib/netapi/samr.o
make: *** [lib/netapi/samr.o] Error 1


Reproducible: Always

Steps to Reproduce:
1. emerge samba-libs
2.
3.




Portage 2.1.7.16 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Fri, 22 Jan 2010 10:15:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.5.4-r2, 2.6.4, 3.1.1-r1
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /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/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ "
LDFLAGS="-Wl,-O1"
LINGUAS="fr en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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/local/portage/layman/desktop-effects /usr/local/portage/layman/mozilla /usr/local/portage/overlay"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 bash-completion berkdb bluetooth branding bzip2 cairo cdr cleartype cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo fam ffmpeg firefox flac fortran gdbm gif gmp gnome gnome-keyring gpm gstreamer gtk hal iconv ipv6 java jpeg ldap libffi libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png policykit ppds pppd pulseaudio python qt3support qt4 quicktime readline reflection samba sdl session spell spl sse sse2 sse3 ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vorbis x264 xcb xcomposite xinerama xml xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="none nvidia nv" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Christophe Boulain 2010-01-22 16:33:06 UTC
Created attachment 217182 [details]
build.log

Attached build.log file
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-02-23 11:36:51 UTC
Did you try to compile the package with ccache being disabled?
Comment 3 Christophe Boulain 2010-02-23 11:44:00 UTC
(In reply to comment #2)
> Did you try to compile the package with ccache being disabled?
> 

Just tried.
Same problem :(
As a side note, if I try to build without the netapi (-netapi USE FLAG), the problem still exists, on another file (same error message).
I suspect a compiler problem, but I don't know which one. I tried other gcc version (4.2.4 & 4.3.4), but the problem still exists.
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2010-02-23 14:56:42 UTC
For the sake of completeness please post the output of 

  emerge -qpv samba-libs
Comment 5 Christophe Boulain 2010-02-23 16:45:46 UTC
(In reply to comment #4)
> For the sake of completeness please post the output of 
> 
>   emerge -qpv samba-libs
> 

Here it is :

epervier ~ # emerge -qpv samba-libs
[ebuild   R   ] net-fs/samba-libs-3.4.5  USE="cups ldap netapi pam smbclient -addns -ads -aio -caps -cluster -debug -examples -ldb -samba4 -smbsharemodes -syslog -tools -winbind" 
Comment 6 Ben Kohler gentoo-dev 2010-04-12 04:05:04 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Did you try to compile the package with ccache being disabled?
> > 
> 
> Just tried.
> Same problem :(
> As a side note, if I try to build without the netapi (-netapi USE FLAG), the
> problem still exists, on another file (same error message).
> I suspect a compiler problem, but I don't know which one. I tried other gcc
> version (4.2.4 & 4.3.4), but the problem still exists.
> 

The error you hit later, with USE="-netapi", has been reported in bug 314571
Comment 7 Rodolphe Rocca 2010-05-01 09:48:49 UTC
I had the exact same problem that came from a broken install of tdb.

Try to remerge sys-libs/tdb-1.2.1 and then emerge samba.
Comment 8 Christophe Boulain 2010-12-06 12:45:58 UTC
Ok, finally found the problem.
I had a very old libtdb in my /usr/local tree... I may have try to compile samba manually...
Removing this, and reemerging libtdb & samba fixes my problem.