Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Feb 2010 11:02:18 +0000
From:      "O. Hartmann" <ohartman@zedat.fu-berlin.de>
To:        freebsd-questions@freebsd.org, freebsd-ports@freebsd.org
Subject:   samba34 fails building on FreeBSD 8.0-STABLE: Compiling lib/memcache.c, lib/memcache.c:29: error: expected specifier-qualifier-list before 'uint8'
Message-ID:  <4B6BFABA.8090102@zedat.fu-berlin.de>

next in thread | raw e-mail | index | archive | help
Trying to compile SAMAB 3.4 on FreeBSD 8.0/amd64 STABLE ends up in the 
following error and it seems a bit sticky.

Are there any solutions? Thanks,

Regards,
Oliver


===>  Building for samba34-3.4.5
cd /usr/ports/net/samba34/work/samba-3.4.5/source3 && make pch
rm -f /usr/ports/net/samba34/work/samba-3.4.5/source3/include/includes.h.gch
make /usr/ports/net/samba34/work/samba-3.4.5/source3/include/includes.h.gch
cc -O2 -pipe -march=nocona -DLDAP_DEPRECATED -fno-strict-aliasing 
-I/usr/local/include -I.  
-I/usr/ports/net/samba34/work/samba-3.4.5/source3  - 
/usr/ports/net/samba34/work/samba-3.4.5/source3/iniparser/src  -Iinclude 
-I./include  -I. -I. -I./../lib/replace -I/usr/local/include   -I./../l 
b/tevent -I./../lib/tdb/include -I./libaddns -I./librpc -I./..  
-DHAVE_CONFIG_H  -I/usr/local/include -Iinclude -I./include -I. -I. 
-I./../lib/r place -I/usr/local/include -I./../lib/tevent 
-I./../lib/tdb/include -I./libaddns -I./librpc -I./.. -I./../lib/popt 
-I/usr/local/include -DLDAP_D PRECATED    
-I/usr/ports/net/samba34/work/samba-3.4.5/source3/lib  -I..  
-I../source4  -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC -DPIC -c /usr/p 
rts/net/samba34/work/samba-3.4.5/source3/include/includes.h -o 
/usr/ports/net/samba34/work/samba-3.4.5/source3/include/includes.h.gch
Using CFLAGS     = -O2 -pipe -march=nocona -DLDAP_DEPRECATED 
-fno-strict-aliasing -I/usr/local/include -I. 
-I/usr/ports/net/samba34/work/samba-3 4.5/source3 
-I/usr/ports/net/samba34/work/samba-3.4.5/source3/iniparser/src 
-Iinclude -I./include  -I. -I. -I./../lib/replace -I/usr/local/inclu e   
-I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc -I./.. 
-DHAVE_CONFIG_H  -I/usr/local/include -Iinclude -I./include -I. -I.  
I./../lib/replace -I/usr/local/include -I./../lib/tevent 
-I./../lib/tdb/include -I./libaddns -I./librpc -I./.. -I./../lib/popt 
-I/usr/local/incl de -DLDAP_DEPRECATED  
-I/usr/ports/net/samba34/work/samba-3.4.5/source3/lib -I.. -I../source4 
-D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3
       PICFLAG    = -fPIC -DPIC
       LIBS       = -lexecinfo -liconv
       LDFLAGS    = -pie -Wl,-z,relro -L/usr/local/lib 
-Wl,-R/usr/local/lib -L/usr/local/lib -L./bin -L/usr/local/lib
       DYNEXP     = -Wl,--export-dynamic
       LDSHFLAGS  = -shared -Wl,-z,relro -L/usr/local/lib 
-Wl,-R/usr/local/lib -L/usr/local/lib -L./bin -L/usr/local/lib
       SHLIBEXT   = so
       SONAMEFLAG = -Wl,-soname,
Compiling lib/memcache.c
lib/memcache.c:29: error: expected specifier-qualifier-list before 'uint8'
lib/memcache.c:33: error: redefinition of 'struct memcache'
lib/memcache.c:41: error: expected declaration specifiers or '...' 
before 'DATA_BLOB'
lib/memcache.c:41: error: expected declaration specifiers or '...' 
before 'DATA_BLOB'
lib/memcache.c:43: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'memcache_is_talloc'
lib/memcache.c:71: error: expected ')' before '*' token
lib/memcache.c: In function 'memcache_node2elem':
lib/memcache.c:93: error: expected expression before 'struct'
lib/memcache.c: At top level:
lib/memcache.c:97: error: expected declaration specifiers or '...' 
before 'DATA_BLOB'
lib/memcache.c:97: error: expected declaration specifiers or '...' 
before 'DATA_BLOB'
lib/memcache.c: In function 'memcache_element_parse':
lib/memcache.c:99: error: 'key' undeclared (first use in this function)
lib/memcache.c:99: error: (Each undeclared identifier is reported only once
lib/memcache.c:99: error: for each function it appears in.)
lib/memcache.c:99: error: 'uint8' undeclared (first use in this function)
lib/memcache.c:99: error: expected expression before ')' token
lib/memcache.c:99: error: expected expression before 'struct'
lib/memcache.c:101: error: 'value' undeclared (first use in this function)
lib/memcache.c: At top level:
lib/memcache.c:111: error: expected declaration specifiers or '...' 
before 'DATA_BLOB'
lib/memcache.c:111: warning: 'enum memcache_number' declared inside 
parameter list
lib/memcache.c:111: warning: its scope is only this definition or 
declaration, which is probably not what you want
lib/memcache.c:110: error: parameter 2 ('n') has incomplete type
lib/memcache.c: In function 'memcache_compare':
lib/memcache.c:113: error: 'DATA_BLOB' undeclared (first use in this 
function)
[...]
lib/memcache.c: At top level:
lib/memcache.c:343: error: expected declaration specifiers or '...' 
before 'DATA_BLOB'
lib/memcache.c:343: warning: 'enum memcache_number' declared inside 
parameter list
lib/memcache.c:342: error: parameter 2 ('n') has incomplete type
lib/memcache.c: In function 'memcache_add_talloc':
lib/memcache.c:355: warning: assignment makes pointer from integer 
without a cast
lib/memcache.c:356: error: 'key' undeclared (first use in this function)
lib/memcache.c:356: error: type of formal parameter 2 is incomplete
lib/memcache.c:356: error: too many arguments to function 'memcache_add'
lib/memcache.c: At top level:
lib/memcache.c:359: warning: 'enum memcache_number' declared inside 
parameter list
lib/memcache.c:359: error: parameter 2 ('n') has incomplete type
lib/memcache.c: In function 'memcache_flush':
lib/memcache.c:383: error: 'true' undeclared (first use in this function)
lib/memcache.c:387: error: 'struct memcache_element' has no member named 'n'
lib/memcache.c:391: error: 'struct memcache_element' has no member named 'n'
lib/memcache.c:419: error: 'struct memcache_element' has no member named 'n'
lib/memcache.c:429: error: 'struct memcache_element' has no member named 'n'
The following command failed:
cc -O2 -pipe -march=nocona -DLDAP_DEPRECATED -fno-strict-aliasing 
-I/usr/local/include -I. 
-I/usr/ports/net/samba34/work/samba-3.4.5/source3 
-I/usr/ports/net/samba34/work/samba-3.4.5/source3/iniparser/src 
-Iinclude -I./include  -I. -I. -I./../lib/replace -I/usr/local/include   
-I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc -I./.. 
-DHAVE_CONFIG_H  -I/usr/local/include -Iinclude -I./include -I. -I. 
-I./../lib/replace -I/usr/local/include -I./../lib/tevent 
-I./../lib/tdb/include -I./libaddns -I./librpc -I./.. -I./../lib/popt 
-I/usr/local/include -DLDAP_DEPRECATED  
-I/usr/ports/net/samba34/work/samba-3.4.5/source3/lib -I.. -I../source4 
-D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC -DPIC -c lib/memcache.c -o 
lib/memcache.o
gmake: *** [lib/memcache.o] Error 1
*** Error code 1

Stop in /usr/ports/net/samba34.
*** Error code 1

Stop in /usr/ports/net/samba34.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B6BFABA.8090102>