[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ccp4bb]: Compiling CCP4 v4.1
Hi Mogens,
this looks like a problem in the CCIF makefile. I guess the format for
nm is not what is expected so a file used in the compilation of the ccif
library, exports.h, is not correct. I attach the exports.h from one of
our Irix boxes. Confirm that the C routines are as listed (third
column) on your system, like the second column with an underscore
appended. Using nm on compiled C code should tell you.
Place this in $CCP4/lib/ccif and make in $CCP4. Hopefully this will work.
Charles
On Wed, 31 Jan 2001, Mogens Kjaer wrote:
> *** For details on how to be removed from this list visit the ***
> *** CCP4 home page http://www.dl.ac.uk/CCP/CCP4/main.html ***
>
> Hello,
>
> I'm trying to compile CCP4 v4.1 on an O200 running
> IRIX 6.5.8, compilers version 7.2.1.3.
>
> I've tried:
>
> configure irix
>
> or
>
> configure irix64
>
> followed by:
>
> make
>
> and in both cases the compilation stops
> while compiling f_interface.c:
>
> cc -c -O2 -O -32 -w -DPROTOTYPE -DHAVE_SIGNAL_H=1
> -DHAVE_TIME_H=1 -DHAVE_STANDARDS_H=1 -DHAVE_ASSERT_H=1 -DUPDATE_WARN=1
> -DUSER_ZZMODE_STACK=1 -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED=1
> -DHAVE_STANDARDS_H=1 -DHAVE_MMAP=1 -DHAVE_REGEX_H=1 -I. -o
> f_interface.o f_interface.c && \
> ar r libccif.a f_interface.o
> cfe: Error: f_interface.c, line 126: Syntax Error
> void (const char *const symtab_f, const int Lsymtab_f)
> -----------^
> cfe: Error: f_interface.c, line 126: Syntax Error
> void (const char *const symtab_f, const int Lsymtab_f)
> ---------------------------------------^
> cfe: Error: f_interface.c, line 126: Syntax Error
> void (const char *const symtab_f, const int Lsymtab_f)
> ----------------------------------------------------------^
> cfe: Error: f_interface.c, line 142: Empty declaration specifiers
> ccif_condition_init();
> ---^
> cfe: Error: f_interface.c, line 144: Syntax Error
> if ( init ) {
> ---^
> cfe: Error: f_interface.c, line 144: init must have function type
>
> .....
> It stops after 100 error messages.
>
> Adding "--with-x" or "--with-shared-lib" makes no difference.
>
> What have I done wrong?
>
> Mogens
> --
> Mogens Kjaer, Carlsberg Laboratory, Dept. of Chemistry
> Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark
> Phone: +45 33 27 53 25, Fax: +45 33 27 47 08
> Email: mk@crc.dk Homepage: http://www.crc.dk
>
#ifndef CCIF_EXPORTS_H
#define CCIF_EXPORTS_H
#define ccif_add_to_sort ccif_add_to_sort_
#define ccif_block_by_index ccif_block_by_index_
#define ccif_block_by_name ccif_block_by_name_
#define ccif_close_cif ccif_close_cif_
#define ccif_context_status ccif_context_status_
#define ccif_copy_row ccif_copy_row_
#define ccif_do_sort ccif_do_sort_
#define ccif_get_char ccif_get_char_
#define ccif_get_int ccif_get_int_
#define ccif_get_real ccif_get_real_
#define ccif_get_real_esd ccif_get_real_esd_
#define ccif_get_text ccif_get_text_
#define ccif_init ccif_init_
#define ccif_item_type ccif_item_type_
#define ccif_load_cif ccif_load_cif_
#define ccif_malloc_trace ccif_malloc_trace_
#define ccif_new_cif ccif_new_cif_
#define ccif_output_fmt ccif_output_fmt_
#define ccif_print_cif ccif_print_cif_
#define ccif_put_char ccif_put_char_
#define ccif_put_int ccif_put_int_
#define ccif_put_real ccif_put_real_
#define ccif_put_real_esd ccif_put_real_esd_
#define ccif_put_text ccif_put_text_
#define ccif_release_context ccif_release_context_
#define ccif_release_sort ccif_release_sort_
#define ccif_search_context ccif_search_context_
#define ccif_set_line_limit ccif_set_line_limit_
#define ccif_set_msg ccif_set_msg_
#define ccif_setup_context ccif_setup_context_
#define ccif_setup_sort ccif_setup_sort_
#define ccif_sort_context ccif_sort_context_
#define cifdic_to_symtab_main cifdic_to_symtab_main_
#endif /* CCIF_EXPORTS_H */