Everything builds fine, but: irene> sudo samba-3.0.0rc4-gcc/sbin/smbd Abort (core dumped) and: irene> sudo samba-3.0.0rc4-gcc/bin/smbclient [2003/09/27 18:26:31, 0] lib/module.c:do_smb_load_module(57) Error trying to resolve symbol 'init_module' in /usr/common/samba/lib/charset/CP850.so: No such file or directory [2003/09/27 18:26:31, 0] lib/charcnv.c:init_iconv(133) Conversion from UCS-2LE to CP850 not supported [2003/09/27 18:26:31, 0] lib/module.c:do_smb_load_module(57) Error trying to resolve symbol 'init_module' in /usr/common/samba/lib/charset/CP850.so: No such file or directory [2003/09/27 18:26:31, 0] lib/charcnv.c:init_iconv(133) Conversion from UTF8 to CP850 not supported [2003/09/27 18:26:31, 0] lib/module.c:do_smb_load_module(57) Error trying to resolve symbol 'init_module' in /usr/common/samba/lib/charset/CP850.so: No such file or directory [2003/09/27 18:26:31, 0] lib/charcnv.c:init_iconv(133) Conversion from ASCII to CP850 not supported [2003/09/27 18:26:31, 0] lib/module.c:do_smb_load_module(57) Error trying to resolve symbol 'init_module' in /usr/common/samba/lib/charset/CP850.so: No such file or directory [2003/09/27 18:26:31, 0] lib/charcnv.c:init_iconv(133) Conversion from CP850 to UCS-2LE not supported Segmentation fault (core dumped) irene> ls -l /usr/common/samba/lib/charset/CP850.so -rwxr-xr-x 1 root systems 366553 Sep 27 17:09 /usr/common/samba/lib/charset/CP850.so Same result with both gcc and IBM cc. I'm going to try --disable-shared
Yup. '--disable-shared' works, but only if I edit 'configure' to build all the packages 'static'. So I'd say that building 'shared' is broken on AIX, your most popular platform.
Heh. Well if you can figure out how to build shared libraries correctly please let us know. According to http://www16.boulder.ibm.com/pseries/en_US/aixprggd/genprogc/create_shared_lib.htm all you need is -bM:SRE and -bnoentry to build shared libraries. Can you confirm (do a make distclean and re-run configure with --disabled-shared) that Samba still tries to build shared library stuff? If so it would be great if you could file another bug.
Created attachment 172 [details] patches to "configure" to get all packages to build static I have made it a life goal to not learn how to build shared libraries under AIX. I don't think it's a growth industry. I _always_ 'rm -rf' and start with a fresh untar when re-doing a build. I'm attaching the diff from configure. I suppose I could have typed all those package names on the command line . . . Obviously, this is not a patch you are going to want to distribute! Finally, I still get "Error loading module '/usr/common/samba/lib/charset/ISO8859-1.so': No such file or directory" in my smb log. I'm currently ignoring it.
*** Bug 640 has been marked as a duplicate of this bug. ***
*** Bug 191 has been marked as a duplicate of this bug. ***
Samba 3.0.2a builds fine with gcc-3.2.2 under AIX 5.2. I don't know about others, but this bug is now resolved for me.
thanks for the update. Closing.
originally reported against one of the 3.0.0rc[1-4] releases. Cleaning up non-production versions.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.
database cleanup