Patch: Compile error on AIX 6.1
yaberger at ca.ibm.com
yaberger at ca.ibm.com
Mon Aug 4 17:31:22 GMT 2008
Hi,
this is a patch that correct the following compile error on AIX 6.1
Using FLAGS = -O -D_SAMBA_BUILD_=3 -D_LINUX_SOURCE_COMPAT
-qmaxmem=32000 -D_LINUX_SOURCE_COMPAT -qmaxmem=32000
-I/usr/src/samba-3.2.0/source/popt
-I/usr/src/samba-3.2.0/source/iniparser/src -Iinclude -I./include -I. -I.
-I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc
-DHAVE_CONFIG_H -Iinclude -I./include -I. -I. -I./lib/replace
-I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt
-I/include -I/usr/src/samba-3.2.0/source/lib -D_SAMBA_BUILD_=3
PICFLAG = -O2
LIBS =
LDFLAGS = -L./bin
DYNEXP = -Wl,-brtl,-bexpfull,-bbigtoc
LDSHFLAGS = -Wl,-G,-bexpfull,-bbigtoc,-brtl -L./bin
SHLIBEXT = so
SONAMEFLAG = #
Compiling utils/net_rpc_samsync.c
"utils/net_rpc_samsync.c", line 2022.33: 1506-277 (S) Syntax error:
possible missing ';' or ','?
"utils/net_rpc_samsync.c", line 2067.9: 1506-021 (S) Expecting struct or
union.
"utils/net_rpc_samsync.c", line 2068.27: 1506-021 (S) Expecting struct or
union.
"utils/net_rpc_samsync.c", line 2079.45: 1506-021 (S) Expecting struct or
union.
"utils/net_rpc_samsync.c", line 2080.50: 1506-021 (S) Expecting struct or
union.
"utils/net_rpc_samsync.c", line 2318.14: 1506-021 (S) Expecting struct or
union.
"utils/net_rpc_samsync.c", line 2319.20: 1506-021 (S) Expecting struct or
union.
"utils/net_rpc_samsync.c", line 2319.55: 1506-021 (S) Expecting struct or
union.
"utils/net_rpc_samsync.c", line 2321.26: 1506-021 (S) Expecting struct or
union.
The following command failed:
cc -qlanglvl=extc89 -qlanglvl=extc99 -I. -I/usr/src/samba-3.2.0/source -O
-D_SAMBA_BUILD_=3 -D_LINUX_SOURCE_COMPAT -qmaxmem=32000
-D_LINUX_SOURCE_COMPAT -qmaxmem=32000 -I/usr/src/samba-3.2.0/source/popt
-I/usr/src/samba-3.2.0/source/iniparser/src -Iinclude -I./include -I. -I.
-I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc
-DHAVE_CONFIG_H -Iinclude -I./include -I. -I. -I./lib/replace
-I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt
-I/include -I/usr/src/samba-3.2.0/source/lib -D_SAMBA_BUILD_=3 -O2 -c
utils/net_rpc_samsync.c -o utils/net_rpc_samsync.o
make: 1254-004 The error code from the last command is 1.
"mod_name" is defined in an AIX 6.1 header file.
==> find /usr/include -name '*.[ch]' | xargs grep mod_name
/usr/include/sys/stropts.h:#define mod_name module_hdr.module_name
my patch is only renaming the char *mod_name to mod_filename
enjoy
Yannick Bergeron
yaberger at ca.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Compile-error-on-AIX-6.1.patch
Type: application/octet-stream
Size: 2158 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20080804/42e20f45/0001-Compile-error-on-AIX-6.1.obj
More information about the samba-technical
mailing list