Home | About CCP4 | CCP4 Projects | Downloads | Documentation | Courses | Developers | CCP4 people | WG1/WG2 | Privacy |
---|
There appears to be a choice of compiler interfaces, namely /usr/vac/bin/xlc or /usr/vac/bin/cc. The CCP4 configure chooses the former. However, the latter supports extended mode so it can handle most of the C statements compared with xlc which can only handle the ANSI C statement. See configuration file at /etc/vac.cfg.
There is a utility /usr/vacpp/bin/makeC++SharedLib which may be useful for making shared libraries. But I've not tried it.
In summary, CCP4 has been built using:
There are changes to the following files:
This compiles all the main programs, and some of the x-windows programs. Missing programs include Rasmol, Rotgen and xloggraph. There are fixes to Mosflm below, but they are not yet included in the above tarball.
#ifdef _AIX int isatty_ (int *fd) { return(isatty(*fd)); } #endif
ld -G -bnoentry -bexpall libmmdb.a -o libmmdb.so; ld -G -bnoentry -bexpall libccp4c.a -o libccp4c.so; ld -G -bnoentry -bexpall libccp4f.a -o libccp4f.so ld: 0711-244 ERROR: No csects or exported symbols have been saved. make: 1254-004 The error code from the last command is 8.
Solution appears to be to add the option -bnogc to SHARE_LIB in configure to turn off garbage collection.
eval /usr/vac/bin/xlc -I/home/liao1k/ccp4/martyn/ccp4-5.0.2/src/solomon_ -I/home/liao1k/ccp4/martyn/ccp4-5.0.2/lib/src ${solomon_FLAGS-"-O "} -c -o cmsk_io.o /home/liao1k/ccp4/martyn/ccp4-5.0.2/src/solomon_/`basename cmsk_io.o .o`.c "/home/liao1k/ccp4/martyn/ccp4-5.0.2/src/solomon_/cmsk_io.c", line 941.7: 1506-343 (S) Redeclaration of strncasecmp differs from previous declaration on line 274 of "/usr/include/string.h".
Solution is to exclude definition of strncasecmp for AIX.
Add "-lC -lm" to XLDFLAGS in configure
Solution is to move the .PHONY target in $CCP4/lib/data/Makefile.in to below the first real target.
September 2004
Thanks to Kexiao Liao for testing and providing feedback.
There are a number of problems installing CCP4 4.0.* on AIX 4.3.3:
Directory | File(s) | Problem(s) |
---|---|---|
[top] | configure | -qfixed=80n flag required for xdlmapman [Also adds --with-x option for AIX!] |
lib/src/ | library.c | missing semicolons |
unix.m4 | only ltime_ is defined for AIX, not ltime | |
lib/ccif/ | cifdic_to_symtab.c | fixed problems with postfix "_" character plus preprocessor directives |
f_interface.c | ||
lib_dic2tab.c | ||
src/ | detwin.f | extraneous commas removed |
truncate.f | ||
src/topp_/ | autosnd.f | extraneous commas removed "disp" changed to "status" in close statements |
topp.f | ||
x-windows/ | Makefile.in | extra flag required for xdlmapman (see configure fix) |
x-windows/ipdisp/src | ipdisp.f | change "-8" to "(-8)" new definitions for AIX required |
dskio.c |
These fixes have been incorporated into later versions of CCP4.
The fixes were tested on AIX 4.3.3 with XL Fortran for AIX version 6.1 and IBM C for AIX version 3.6.6.
Thanks to Sandra McLaughlin for providing the fixes.
23/03/00