Hi,
I have a number of issues compiling samba 3.4.0pre1 using makerpms.sh,
under the RHEL folder in packaging.
1) samba.spec refers to 'source' when the folder has been renamed to
'source3' (easy enough to amend) which made it fail very early on.
2) Following that - (apologies in advance, if I have gone over the top
in pasting output), it seems to be complaining about missing config.h
and replace.h amongst other things. I get the same output on Fedora Core
4, Fedora 10, and Centos 5.2.
Is there a known issue with samba.spec?
makerpms.sh: Getting Ready to build release package
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.55393
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf samba-3.4.0pre1
+ /usr/bin/bzip2 -dc /usr/src/redhat/SOURCES/samba-3.4.0pre1.tar.bz2
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd samba-3.4.0pre1
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ cd /usr/src/redhat/BUILD
+ cd samba-3.4.0pre1
+ /usr/bin/bzip2 -dc /usr/src/redhat/SOURCES/setup.tar.bz2
bzip2: /usr/src/redhat/SOURCES/setup.tar.bz2: trailing garbage after
EOF ignored
+ tar -xvvf -
drwxr-xr-x root/root 0 2009-04-30 08:53:01 setup/
-rw-r--r-- root/root 97 2009-04-30 08:53:01 setup/smbusers
-rw-r--r-- root/root 9684 2009-04-30 08:53:01 setup/smb.conf
-rw-r--r-- root/root 259 2009-04-30 08:53:01 setup/swat.desktop
-rw-r--r-- root/root 2295 2009-04-30 08:53:01 setup/smbprint
-rwxr-xr-x root/root 100 2009-04-30 08:53:01
setup/filter-requires-samba.sh
-rw-r--r-- root/root 280 2009-04-30 08:53:01 setup/samba.log
-rw-r--r-- root/root 2445 2009-04-30 08:53:01 setup/smb.init
-rw-r--r-- root/root 363 2009-04-30 08:53:01 setup/swat
-rw-r--r-- root/root 1586 2009-04-30 08:53:01 setup/winbind.init
-rw-r--r-- root/root 111 2009-04-30 08:53:01 setup/samba.sysconfig
-rw-r--r-- root/root 201 2009-04-30 08:53:01 setup/samba.pamd
+ STATUS=0
+ '[' 0 -ne 0 ']'
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.92586
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd samba-3.4.0pre1
+ /bin/cp setup/filter-requires-samba.sh
/usr/src/redhat/SOURCES/filter-requires-samba.sh
+ cd source3
+ ccache -h
+ '[' 0 -eq 0 ']'
+ CC='ccache gcc'
+ ./autogen.sh
./autogen.sh: running script/mkversion.sh
./script/mkversion.sh: 'include/version.h' created for Samba("3.4.0pre1")
./autogen.sh: running autoheader -Im4 -I../m4 -I../lib/replace
-I../source4
samba4.m4:6: warning: file `../m4/check_python.m4' included several times
../lib/tevent/samba.m4:3: warning: file `../lib/tevent/libtevent.m4'
included several times
build/m4/public.m4:129: SMB_EXT_LIB_FROM_PKGCONFIG is expanded from...
../lib/tevent/samba.m4:3: the top level
./autogen.sh: running autoconf -Im4 -I../m4 -I../lib/replace -I../source4
samba4.m4:6: warning: file `../m4/check_python.m4' included several times
../lib/tevent/samba.m4:3: warning: file `../lib/tevent/libtevent.m4'
included several times
build/m4/public.m4:129: SMB_EXT_LIB_FROM_PKGCONFIG is expanded from...
../lib/tevent/samba.m4:3: the top level
Now run ./configure and then make.
+ CC='ccache gcc'
+ CFLAGS='-O2 -g -march=i386 -mcpu=i686 -D_GNU_SOURCE'
+ ./configure
SAMBA VERSION: 3.4.0pre1
Then ./configure runs (seems OK, skipped showing here)
Then the below:
+ make showlayout
Samba will be installed into:
prefix: /usr/local/samba
bindir: /usr/local/samba/bin
sbindir: /usr/local/samba/sbin
libdir: /usr/local/samba/lib
modulesdir: /usr/local/samba/lib
vardir: /usr/local/samba/var
mandir: /usr/local/samba/man
privatedir: /usr/local/samba/private
configdir: /usr/local/samba/lib
lockdir: /usr/local/samba/var/locks
statedir: /usr/local/samba/var/locks
cachedir: /usr/local/samba/var/locks
piddir: /usr/local/samba/var/locks
swatdir: /usr/local/samba/swat
codepagedir: /usr/local/samba/lib
++ head -1
++ awk '{print $3}'
++ ccache gcc --version
+ CC_VERSION=4.0.2
++ echo 4.0.2
++ cut -d. -f 1
+ CC_MAJOR=4
++ echo 4.0.2
++ cut -d. -f 2
+ CC_MINOR=0
+ '[' 4 -ge 3 ']'
+ '[' 4 -gt 3 -o 0 -ge 4 ']'
+ make pch
rm -f /usr/src/redhat/BUILD/samba-3.4.0pre1/source3/include/includes.h.gch
make /usr/src/redhat/BUILD/samba-3.4.0pre1/source3/include/includes.h.gch
make[1]: Entering directory
`/usr/src/redhat/BUILD/samba-3.4.0pre1/source3'
ccache gcc -I../lib/zlib -O2 -g -march=i386 -mcpu=i686 -D_GNU_SOURCE
-I. -I/usr/src/redhat/BUILD/samba-3.4.0pre1/source3
-I/usr/src/redhat/BUILD/samba-3.4.0pre1/source3/iniparser/src
-Iinclude -I./include -I. -I. -I./../lib/replace -I./../lib/talloc
-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/talloc -I./../lib/tevent -I./../lib/tdb/include
-I./libaddns -I./librpc -I./.. -I./../lib/popt -DLDAP_DEPRECATED
-I/usr/src/redhat/BUILD/samba-3.4.0pre1/source3/lib -I.. -I../source4
-D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC -c
/usr/src/redhat/BUILD/samba-3.4.0pre1/source3/include/includes.h -o
/usr/src/redhat/BUILD/samba-3.4.0pre1/source3/include/includes.h.gch
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
make[1]: Leaving directory `/usr/src/redhat/BUILD/samba-3.4.0pre1/source3'
+ make 'CFLAGS=-O2 -g -march=i386 -mcpu=i686 -D_GNU_SOURCE' -j2 all
modules pam_smbpass
Using CFLAGS = -O2 -g -march=i386 -mcpu=i686 -D_GNU_SOURCE
PICFLAG = -fPIC
LIBS = -lresolv -lresolv -lnsl -ldl
LDFLAGS = -pie -Wl,-z,relro -L./bin
DYNEXP = -Wl,--export-dynamic
LDSHFLAGS = -shared -Wl,-Bsymbolic -Wl,-z,relro -L./bin
SHLIBEXT = so
SONAMEFLAG = -Wl,-soname=
Compiling ../lib/replace/replace.c
Compiling ../lib/talloc/talloc.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from ../lib/replace/replace.c:25:
../lib/replace/replace.h:32:20: error: config.h: No such file or directory
In file included from ../lib/replace/replace.c:25:
../lib/replace/replace.h:125: error: conflicting types for ‘sys_errlist’
/usr/include/bits/sys_errlist.h:28: error: previous declaration of
‘sys_errlist’ was here
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
../lib/replace/replace.c:54:2: error: #error "you must have a
ftruncate function"
../lib/replace/replace.c: In function ‘rep_strlcpy’:
../lib/replace/replace.c:65: warning: incompatible implicit
declaration of built-in function ‘strlen’
../lib/replace/replace.c:69: warning: incompatible implicit
declaration of built-in function ‘memcpy’
../lib/replace/replace.c: In function ‘rep_strlcat’:
../lib/replace/replace.c:81: warning: incompatible implicit
declaration of built-in function ‘strlen’
../lib/replace/replace.c:92: warning: incompatible implicit
declaration of built-in function ‘memcpy’
../lib/replace/replace.c: In function ‘rep_memmove’:
../lib/replace/replace.c:239: warning: incompatible implicit
declaration of built-in function ‘memcpy’
../lib/replace/replace.c: In function ‘rep_strdup’:
../lib/replace/replace.c:293: warning: incompatible implicit
declaration of built-in function ‘strlen’
../lib/replace/replace.c:296: warning: incompatible implicit
declaration of built-in function ‘memcpy’
../lib/replace/replace.c: In function ‘rep_strndup’:
../lib/replace/replace.c:351: warning: incompatible implicit
declaration of built-in function ‘memcpy’
../lib/replace/replace.c:371:4: error: #error "You need a seteuid
function"
../lib/replace/replace.c:382:4: error: #error "You need a setegid
function"
../lib/replace/replace.c: In function ‘rep_strcasestr’:
../lib/replace/replace.c:461: warning: incompatible implicit
declaration of built-in function ‘strlen’
../lib/replace/replace.c:465: error: ‘uintptr_t’ undeclared (first use
in this function)
../lib/replace/replace.c:465: error: (Each undeclared identifier is
reported only once
../lib/replace/replace.c:465: error: for each function it appears in.)
../lib/replace/replace.c:465: error: syntax error before ‘s’
../lib/replace/replace.c: In function ‘rep_strtok_r’:
../lib/replace/replace.c:480: warning: incompatible implicit
declaration of built-in function ‘strspn’
../lib/replace/replace.c:487: warning: incompatible implicit
declaration of built-in function ‘strpbrk’
../lib/replace/replace.c:489: warning: incompatible implicit
declaration of built-in function ‘strlen’
../lib/replace/replace.c: In function ‘rep_setenv’:
../lib/replace/replace.c:541: warning: incompatible implicit
declaration of built-in function ‘strlen’
../lib/replace/replace.c:548: warning: incompatible implicit
declaration of built-in function ‘memcpy’
../lib/replace/replace.c: In function ‘rep_unsetenv’:
../lib/replace/replace.c:566: warning: incompatible implicit
declaration of built-in function ‘strlen’
The following command failed:
ccache gcc -O2 -g -march=i386 -mcpu=i686 -D_GNU_SOURCE -fPIC -c
../lib/replace/replace.c -o ../lib/replace/replace.o
../lib/talloc/talloc.c:50:21: error: replace.h: No such file or directory
../lib/talloc/talloc.c: In function ‘_talloc_realloc’:
../lib/talloc/talloc.c:987: error: ‘bool’ undeclared (first use in
this function)
../lib/talloc/talloc.c:987: error: (Each undeclared identifier is
reported only once
../lib/talloc/talloc.c:987: error: for each function it appears in.)
../lib/talloc/talloc.c:987: error: syntax error before ‘malloced’
../lib/talloc/talloc.c:1035: error: ‘malloced’ undeclared (first use
in this function)
../lib/talloc/talloc.c:1035: error: ‘true’ undeclared (first use in
this function)
../lib/talloc/talloc.c:1039: warning: incompatible implicit
declaration of built-in function ‘memcpy’
../lib/talloc/talloc.c: In function ‘_talloc_zero’:
../lib/talloc/talloc.c:1334: warning: incompatible implicit
declaration of built-in function ‘memset’
../lib/talloc/talloc.c: In function ‘_talloc_memdup’:
../lib/talloc/talloc.c:1348: warning: incompatible implicit
declaration of built-in function ‘memcpy’
../lib/talloc/talloc.c: In function ‘__talloc_strlendup’:
../lib/talloc/talloc.c:1361: warning: incompatible implicit
declaration of built-in function ‘memcpy’
../lib/talloc/talloc.c: In function ‘talloc_strdup’:
../lib/talloc/talloc.c:1374: warning: incompatible implicit
declaration of built-in function ‘strlen’
../lib/talloc/talloc.c: In function ‘__talloc_strlendup_append’:
../lib/talloc/talloc.c:1395: warning: incompatible implicit
declaration of built-in function ‘memcpy’
../lib/talloc/talloc.c: In function ‘talloc_strdup_append’:
../lib/talloc/talloc.c:1415: warning: incompatible implicit
declaration of built-in function ‘strlen’
../lib/talloc/talloc.c: In function ‘talloc_strdup_append_buffer’:
../lib/talloc/talloc.c:1439: warning: incompatible implicit
declaration of built-in function ‘strlen’
../lib/talloc/talloc.c: In function ‘talloc_strndup_append’:
../lib/talloc/talloc.c:1455: warning: incompatible implicit
declaration of built-in function ‘strlen’
../lib/talloc/talloc.c:1486:1: warning: "va_copy" redefined
In file included from ../lib/talloc/talloc.h:30,
from ../lib/talloc/talloc.c:51:
/usr/lib/gcc/i386-redhat-linux/4.0.2/include/stdarg.h:54:1: warning:
this is the location of the previous definition
../lib/talloc/talloc.c: In function ‘talloc_vasprintf_append’:
../lib/talloc/talloc.c:1580: warning: incompatible implicit
declaration of built-in function ‘strlen’
The following command failed:
ccache gcc -O2 -g -march=i386 -mcpu=i686 -D_GNU_SOURCE -fPIC -c
../lib/talloc/talloc.c -o ../lib/talloc/talloc.o
make: *** [../lib/talloc/talloc.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [../lib/replace/replace.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.92586 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.92586 (%build)
makerpms.sh: Done.
Regards,
Darren
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba