[Samba] Problem compiling Samba from source

Dan Track dan.track at gmail.com
Wed Dec 15 01:31:19 MST 2010


Hi,

It's taken me ages to get past teh compile dependencies and having to
build most of the dependencies from source. I then ran make and within
a few short compilations the samba3 make fails with the following
errors:

~/samba-3.5.5/source3> make
Using CFLAGS     = -I../lib/zlib -I/app/utils//include -O -I.
-I/app/builduser/samba-3.5.5/source3
-I/app/builduser/samba-3.5.5/source3/iniparser/src -Iinclude
-I./include  -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns
-I./librpc -I./.. -I./../lib/talloc -I../lib/tdb/include
-DHAVE_CONFIG_H  -I/app/utils//include -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/app/utils/include
-I/app/builduser/e2fsprogs-1.41.12/lib/ -Iinclude -I./include -I. -I.
-I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./..
-I./../lib/popt -DLDAP_DEPRECATED
-I/app/builduser/samba-3.5.5/source3/lib -I.. -I../source4
-D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3
      PICFLAG    = -fPIC
      LIBS       = -lresolv -lnsl -ldl
      LDFLAGS    = -pie -Wl,-z,relro -L/app/utils//lib -Wl,-rpath
-Wl,/app/utils//lib -Wl,--as-needed -L/app/subversion/lib
-L/app/subversion/lib64 -L/app/utils/lib -L/app/utils/lib64 -L./bin
      DYNEXP     = -Wl,--export-dynamic
      LDSHFLAGS  = -fPIC -shared -Wl,-Bsymbolic -Wl,-z,relro
-L/app/utils//lib -Wl,-rpath -Wl,/app/utils//lib -Wl,--as-needed
-L/app/subversion/lib -L/app/subversion/lib64 -L/app/utils/lib
-L/app/utils/lib64 -L./bin -lc -Wl,-z,defs
      SHLIBEXT   = so
      SONAMEFLAG = -Wl,-soname=
Compiling ../lib/util/blocking.c
In file included from include/includes.h:675,
                 from ../lib/util/blocking.c:24:
include/client.h:169: error: expected specifier-qualifier-list before
‘gss_ctx_id_t’
The following command failed:
gcc -I../lib/zlib -I/app/utils//include -O -I.
-I/app/builduser/samba-3.5.5/source3
-I/app/builduser/samba-3.5.5/source3/iniparser/src -Iinclude
-I./include  -I. -I. -I./../lib/replace -I./../lib/tevent -I./libaddns
-I./librpc -I./.. -I./../lib/talloc -I../lib/tdb/include
-DHAVE_CONFIG_H  -I/app/utils//include -D_LARGEFILE64_SOURCE
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I/app/utils/include
-I/app/builduser/e2fsprogs-1.41.12/lib/ -Iinclude -I./include -I. -I.
-I./../lib/replace -I./../lib/tevent -I./libaddns -I./librpc -I./..
-I./../lib/popt -DLDAP_DEPRECATED
-I/app/builduser/samba-3.5.5/source3/lib -I.. -I../source4
-D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3  -fPIC -c ../lib/util/blocking.c
-o ../lib/util/blocking.o
make: *** [../lib/util/blocking.o] Error 1


Can someone please help me shed some light on this and why this woudl
be happening and how to fix it?

Many thanks in advance
Dan


More information about the samba mailing list