[Samba] unable to compile samba 3.0.28 on Centos 5 64-bit

Adam Williams awilliam at mdah.state.ms.us
Thu Feb 14 14:00:09 GMT 2008

I downloaded and extracted samba-3.0.28.tar.gz and went to 
samba-3.0.28/packaging/RHEL and ran sh makerpms.sh and it compiles for a 
while and then I get the following error.  Any ideas on what to try?  
The server is X86_64 running CentOS 5 X64.

Compiling smbd/statcache.c
Compiling smbd/posix_acls.c
Compiling lib/sysacls.c
Compiling lib/server_mutex.c
Compiling smbd/process.c
Compiling smbd/service.c
/tmp/ccdi39IS.s: Assembler messages:
/tmp/ccdi39IS.s:124: Error: Incorrect register `%rax' used with `l' suffix
The following command failed:
gcc -I. -I/usr/src/redhat/BUILD/samba-3.0.28/source  -O2 -g 
-D_GNU_SOURCE  -I/usr/src/redhat/BUILD/samba-3.0.28/source/iniparser/src 
-Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc 
-I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H  
-DLDAP_DEPRECATED    -I/usr/src/redhat/BUILD/samba-3.0.28/source/lib 
-D_SAMBA_BUILD_=3 -fPIC -c smbd/process.c -o smbd/process.o
Compiling smbd/error.c
Compiling printing/printfsp.c
Compiling lib/sysquotas.c
make: *** [smbd/process.o] Error 1
make: *** Waiting for unfinished jobs....
error: Bad exit status from /var/tmp/rpm-tmp.70042 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.70042 (%build)
makerpms.sh: Done.
[root at arrowhead RHEL]# cat /etc/redhat-release
CentOS release 5 (Final)
[root at arrowhead RHEL]# uname -a
Linux arrowhead.mdah.state.ms.us 2.6.18-53.1.4.el5 #1 SMP Fri Nov 30 
00:45:55 EST 2007 x86_64 x86_64 x86_64 GNU/Linux

More information about the samba mailing list