Bug 5612 - HowTo: Compile Samba v3.0.31 on AIX v6.1 using IBM XLC v9 compiler
Summary: HowTo: Compile Samba v3.0.31 on AIX v6.1 using IBM XLC v9 compiler
Status: RESOLVED WONTFIX
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.30
Hardware: PPC AIX
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-14 12:38 UTC by Frank Kraemer
Modified: 2010-02-21 06:41 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Kraemer 2008-07-14 12:38:10 UTC
Here is what worked for me.

kraem> ~/bin/zcat samba-3.0.31.tar.gz | tar -xvf - ; cd ./samba-3.0.31/source/
kraem> CC=cc CFLAGS=-O2 ./configure
kraem> cd ./source/utils/
kraem> diff net_rpc_samsync.c net_rpc_samsync.c.orig

1742c1742
<       char *add_name = NULL, *modd_name = NULL;
---
>       char *add_name = NULL, *mod_name = NULL;
1782,1783c1782,1783
<       modd_name = talloc_strdup(mem_ctx, mod_template);
<       if (!add_name || !modd_name) {
---
>       mod_name = talloc_strdup(mem_ctx, mod_template);
>       if (!add_name || !mod_name) {
1794,1795c1794,1795
<       if (!(mod_file = fdopen(smb_mkstemp(modd_name),"w"))) {
<               DEBUG(1, ("Could not open %s\n", modd_name));
---
>       if (!(mod_file = fdopen(smb_mkstemp(mod_name),"w"))) {
>               DEBUG(1, ("Could not open %s\n", mod_name));
2020,2021c2020,2021
<       if ((modd_name != NULL) &&
<           strcmp(modd_name, mod_template) && (unlink(modd_name))) {
---
>       if ((mod_name != NULL) &&
>           strcmp(mod_name, mod_template) && (unlink(mod_name))) {
2023c2023
<                        modd_name, strerror(errno)));
---
>                        mod_name, strerror(errno)));


kraem> gmake ; gmake install
kraem> /usr/local/samba/sbin/smbd --version

Version 3.0.31

kraem> AIX OS Level Information

Fileset           Level    Description
------------------------------------------------------------------------------
bos.rte           6.1.1.0  Base Operating System Runtime
bos.mp64          6.1.1.1  Base Operating System 64-bit Multiprocessor Runtime
xlC.adt.include   9.0.0.0  C Set ++ Application Development Toolkit
xlC.aix61.rte     9.0.0.8  XL C/C++ Runtime for AIX 6.1
xlC.cpp           9.0.0.0  C for AIX Preprocessor
xlC.msg.en_US.cpp 9.0.0.0  C for AIX Preprocessor Messages--U.S. English
xlC.msg.en_US.rte 9.0.0.8  XL C/C++ Runtime Messages--U.S. English
xlC.rte           9.0.0.8  XL C/C++ Runtime
------------------------------------------------------------------------------

-frank-
Comment 1 Stefan Metzmacher 2010-02-21 06:41:12 UTC
Samba 3.0.x is supported anymore.