[GE dev] build error on CentOS 5.3

pine_ml pine_ml at 163.com
Fri Jul 24 04:38:35 BST 2009


    [ The following text is in the "utf-8" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some characters may be displayed incorrectly. ]

my platform is CentOS 5.3,
"uname -a" got "Linux localhost.com 2.6.18-128.el5 #1 SMP Wed Jan 21 10:44:23 EST 2009 i686 i686 i386 GNU/Linux"
gcc is
gcc-4.1.2-44.el5
libgcc-4.1.2-44.el5
gcc-c++-4.1.2-44.el5
gcc-java-4.1.2-44.el5
gcc-gfortran-4.1.2-44.el5

openssl is
openssl-0.9.8e-7.el5
openssl-perl-0.9.8e-7.el5
openssl-devel-0.9.8e-7.el5

I have downloaded ge-V623_TAG-src-all_modules.tar.gz and tried to build/install the SGE 6.2u3.
I have builded and installed Berkeley DB 4.7.25 successfully.
I can do ./aimk -no-depend,  ./scripts/zerodepend and ./aimk -no-dump depend OK.

But I met some error with another build operations.
1) when try to ./aimk -only-core -no-dump
it gets

Building in directory: /data/sge/ge623/gridengine/source
making in LINUX86_26/ for LINUX86 at host cloudkhan.kylin.com
_________C_O_R_E__S_Y_S_T_E_M_____________
/usr/bin/gcc -DSGE_ARCH_STRING=\"lx26-x86\" -O3 -Wall -Werror -Wstrict-prototypes -DUSE_POLL -DLINUX -DLINUX86 -DLINUX86_26 -D_GNU_SOURCE -DGETHOSTBYNAME_R6 -DGETHOSTBYADDR_R8  -DLOAD_OPENSSL -I/usr/local/BerkeleyDB.4.7/include/ -DTARGET_32BIT  -DSPOOLING_dynamic -DSECURE -I/usr/include -Wno-strict-aliasing -D_FILE_OFFSET_BITS=64 -DCOMPILE_DC -D__SGE_COMPILE_WITH_GETTEXT__  -D__SGE_NO_USERMAPPING__ -I../common -I../libs -I../libs/uti -I../libs/juti -I../libs/gdi -I../libs/japi -I../libs/sgeobj -I../libs/cull -I../libs/rmon -I../libs/comm -I../libs/comm/lists -I../libs/sched -I../libs/evc -I../libs/evm -I../libs/mir -I../libs/lck -I../daemons/common -I../daemons/qmaster -I../daemons/execd -I../daemons/schedd -I../clients/common -I. -I/usr/include -I/usr/include/linux -fPIC -c ../libs/jdrmaa/com_sun_grid_drmaa_SessionImpl.c -o com_sun_grid_drmaa_SessionImpl.o
In file included from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from ../libs/jdrmaa/com_sun_grid_drmaa_SessionImpl.c:33:
/usr/include/gconv.h:72: error: expected declaration specifiers or ?...? before ?size_t?
/usr/include/gconv.h:88: error: expected declaration specifiers or ?...? before ?size_t?
/usr/include/gconv.h:97: error: expected declaration specifiers or ?...? before ?size_t?
/usr/include/gconv.h:174: error: expected specifier-qualifier-list before ?size_t?
In file included from /usr/include/stdio.h:72,
                 from ../libs/jdrmaa/com_sun_grid_drmaa_SessionImpl.c:33:
/usr/include/libio.h:329: error: expected specifier-qualifier-list before ?size_t?
/usr/include/libio.h:361: error: expected declaration specifiers or ?...? before ?size_t?
/usr/include/libio.h:370: error: expected declaration specifiers or ?...? before ?size_t?
/usr/include/libio.h:486: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?_IO_sgetn?
In file included from ../libs/jdrmaa/com_sun_grid_drmaa_SessionImpl.c:33:
/usr/include/stdio.h:291: error: expected declaration specifiers or ?...? before ?size_t?
/usr/include/stdio.h:296: error: expected declaration specifiers or ?...? before ?size_t?
/usr/include/stdio.h:308: error: expected declaration specifiers or ?...? before ?size_t?
/usr/include/stdio.h:315: error: expected declaration specifiers or ?...? before ?size_t?
/usr/include/stdio.h:357: error: expected declaration specifiers or ?...? before ?size_t?
/usr/include/stdio.h:359: error: format string argument not a string type
/usr/include/stdio.h:361: error: expected declaration specifiers or ?...? before ?size_t?
/usr/include/stdio.h:567: error: expected declaration specifiers or ?...? before ?size_t?
/usr/include/stdio.h:570: error: expected declaration specifiers or ?...? before ?size_t?
/usr/include/stdio.h:580: error: expected declaration specifiers or ?...? before ?size_t?
/usr/include/stdio.h:610: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?fread?
/usr/include/stdio.h:616: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?fwrite?
/usr/include/stdio.h:638: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?fread_unlocked?
/usr/include/stdio.h:640: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?fwrite_unlocked?
....

2) when I try to use ./aimk -only-core -no-dump -no-jni, it gets
Building in directory: /data/sge/ge623/gridengine/source
making in LINUX86_26/ for LINUX86 at host cloudkhan.kylin.com
_________C_O_R_E__S_Y_S_T_E_M_____________
/usr/bin/gcc -I../daemons/shepherd -DSGE_ARCH_STRING=\"lx26-x86\" -O3 -Wall -Werror -Wstrict-prototypes -DUSE_POLL -DLINUX -DLINUX86 -DLINUX86_26 -D_GNU_SOURCE -DGETHOSTBYNAME_R6 -DGETHOSTBYADDR_R8  -DLOAD_OPENSSL -I/usr/local/BerkeleyDB.4.7/include/ -DTARGET_32BIT  -DSPOOLING_dynamic -DSECURE -I/off_home/gridengine/openssl-0.9.8h-origin/lx26-x86/include -Wno-strict-aliasing -D_FILE_OFFSET_BITS=64 -DNO_JNI -DCOMPILE_DC -D__SGE_COMPILE_WITH_GETTEXT__  -D__SGE_NO_USERMAPPING__ -I../common -I../libs -I../libs/uti -I../libs/juti -I../libs/gdi -I../libs/japi -I../libs/sgeobj -I../libs/cull -I../libs/rmon -I../libs/comm -I../libs/comm/lists -I../libs/sched -I../libs/evc -I../libs/evm -I../libs/mir -I../libs/lck -I../daemons/common -I../daemons/qmaster -I../daemons/execd -I../daemons/schedd -I../clients/common -I. -L/usr/local/BerkeleyDB.4.7/lib/ -L. -rdynamic -Wl,-rpath,\$ORIGIN/../../lib/lx26-x86 -L/off_home/gridengine/openssl-0.9.8h-origin/lx26-x86/lib -o sge_shepherd shepherd.o builtin_starter.o setrlimits.o signal_queue.o sge_shepconf.o setjoblimit.o sge_pset.o sge_fileio.o sge_shepherd_ijs.o sge_ijs_comm.o sge_ijs_threads.o config_file.o err_trace.o execution_states.o qlogin_starter.o setosjobid.o sge_parse_num_par.o pdc.o procfs.o sge_mt_init.o sge_processes_irix.o  -lgdi -lsgeobj -lsgeobjd  -lcull -lcomm_static -lcommlists -luti  -llck -lrmon -ldl /off_home/gridengine/openssl-0.9.8h-origin/lx26-x86/lib/libssl.a /off_home/gridengine/openssl-0.9.8h-origin/lx26-x86/lib/libcrypto.a  -lm -lpthread
gcc: /off_home/gridengine/openssl-0.9.8h-origin/lx26-x86/lib/libssl.a: No such file or directory
gcc: /off_home/gridengine/openssl-0.9.8h-origin/lx26-x86/lib/libcrypto.a: No such file or directory
make: *** [sge_shepherd] Error 1
not done

3) So I modified aimk.site with
set OPENSSL_SOVERSION = 0.9.8e-7-el5
#set OPENSSL_HOME = /off_home/gridengine/openssl-0.9.8h-origin/$buildarch
set OPENSSL_HOME = /usr

it gets
Building in directory: /data/sge/ge623/gridengine/source
making in LINUX86_26/ for LINUX86 at host cloudkhan.kylin.com
_________C_O_R_E__S_Y_S_T_E_M_____________
/usr/bin/gcc -I../daemons/shepherd -DSGE_ARCH_STRING=\"lx26-x86\" -O3 -Wall -Werror -Wstrict-prototypes -DUSE_POLL -DLINUX -DLINUX86 -DLINUX86_26 -D_GNU_SOURCE -DGETHOSTBYNAME_R6 -DGETHOSTBYADDR_R8  -DLOAD_OPENSSL -I/usr/local/BerkeleyDB.4.7/include/ -DTARGET_32BIT  -DSPOOLING_dynamic -DSECURE -I/usr/include -Wno-strict-aliasing -D_FILE_OFFSET_BITS=64 -DNO_JNI -DCOMPILE_DC -D__SGE_COMPILE_WITH_GETTEXT__  -D__SGE_NO_USERMAPPING__ -I../common -I../libs -I../libs/uti -I../libs/juti -I../libs/gdi -I../libs/japi -I../libs/sgeobj -I../libs/cull -I../libs/rmon -I../libs/comm -I../libs/comm/lists -I../libs/sched -I../libs/evc -I../libs/evm -I../libs/mir -I../libs/lck -I../daemons/common -I../daemons/qmaster -I../daemons/execd -I../daemons/schedd -I../clients/common -I. -L/usr/local/BerkeleyDB.4.7/lib/ -L. -rdynamic -Wl,-rpath,\$ORIGIN/../../lib/lx26-x86 -L/usr/lib -o sge_shepherd shepherd.o builtin_starter.o setrlimits.o signal_queue.o sge_shepconf.o setjoblimit.o sge_pset.o sge_fileio.o sge_shepherd_ijs.o sge_ijs_comm.o sge_ijs_threads.o config_file.o err_trace.o execution_states.o qlogin_starter.o setosjobid.o sge_parse_num_par.o pdc.o procfs.o sge_mt_init.o sge_processes_irix.o  -lgdi -lsgeobj -lsgeobjd  -lcull -lcomm_static -lcommlists -luti  -llck -lrmon -ldl /usr/lib/libssl.a /usr/lib/libcrypto.a  -lm -lpthread
/usr/lib/libssl.a(kssl.o): In function `get_rc_clockskew':
(.text+0xe1): undefined reference to `krb5_rc_default'
/usr/lib/libssl.a(kssl.o): In function `get_rc_clockskew':
(.text+0xfc): undefined reference to `krb5_rc_initialize'
/usr/lib/libssl.a(kssl.o): In function `get_rc_clockskew':
(.text+0x122): undefined reference to `krb5_rc_get_lifespan'
/usr/lib/libssl.a(kssl.o): In function `get_rc_clockskew':
(.text+0x13c): undefined reference to `krb5_rc_destroy'
/usr/lib/libssl.a(kssl.o): In function `kssl_validate_times':
(.text+0x174): undefined reference to `krb5_init_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_validate_times':
(.text+0x197): undefined reference to `krb5_timeofday'
/usr/lib/libssl.a(kssl.o): In function `kssl_validate_times':
(.text+0x1ba): undefined reference to `krb5_free_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_krb5_free_data_contents':
(.text+0x241): undefined reference to `krb5_free_data_contents'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x2ba): undefined reference to `krb5_init_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x2d6): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x2ec): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x2fb): undefined reference to `krb5_free_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x33b): undefined reference to `krb5_sname_to_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x355): undefined reference to `krb5_cc_default'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x376): undefined reference to `krb5_cc_get_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_tgt_is_available':
(.text+0x3a8): undefined reference to `krb5_get_credentials'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x415): undefined reference to `krb5_init_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x43e): undefined reference to `krb5_kt_resolve'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x47a): undefined reference to `krb5_sname_to_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x4a7): undefined reference to `krb5_kt_get_entry'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x4ca): undefined reference to `krb5_kt_close'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x4e0): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x4ef): undefined reference to `krb5_free_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x508): undefined reference to `krb5_kt_free_entry'
/usr/lib/libssl.a(kssl.o): In function `kssl_keytab_is_available':
(.text+0x51e): undefined reference to `krb5_kt_default'
/usr/lib/libssl.a(kssl.o): In function `populate_cksumlens':
(.text+0xae7): undefined reference to `valid_cksumtype'
/usr/lib/libssl.a(kssl.o): In function `populate_cksumlens':
(.text+0xb11): undefined reference to `krb5_checksum_size'
/usr/lib/libssl.a(kssl.o): In function `populate_cksumlens':
(.text+0xb4a): undefined reference to `krb5_checksum_size'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x1701): undefined reference to `krb5_init_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x173d): undefined reference to `krb5_sname_to_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x179e): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x17b7): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x17cd): undefined reference to `krb5_auth_con_free'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x17dc): undefined reference to `krb5_free_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x17fe): undefined reference to `krb5_cc_default'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x1820): undefined reference to `krb5_cc_get_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x18e1): undefined reference to `krb5_get_credentials'
/usr/lib/libssl.a(kssl.o): In function `kssl_cget_tkt':
(.text+0x1965): undefined reference to `krb5_mk_req_extended'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1ce7): undefined reference to `krb5_auth_con_free'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1d13): undefined reference to `krb5_auth_con_init'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1d4c): undefined reference to `krb5_kt_close'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1d65): undefined reference to `krb5_free_ticket'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1d7e): undefined reference to `krb5_free_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1dae): undefined reference to `krb5_auth_con_getrcache'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1dee): undefined reference to `krb5_sname_to_principal'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1e22): undefined reference to `krb5_auth_con_setrcache'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1e53): undefined reference to `krb5_kt_resolve'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1f7d): undefined reference to `krb5_init_context'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x1fce): undefined reference to `krb5_get_server_rcache'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x2021): undefined reference to `krb5_principal_compare'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x20a9): undefined reference to `krb5_kt_default'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x2109): undefined reference to `krb5_kt_get_entry'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x217f): undefined reference to `krb5_decrypt_tkt_part'
/usr/lib/libssl.a(kssl.o): In function `kssl_sget_tkt':
(.text+0x21a5): undefined reference to `krb5_kt_free_entry'
/usr/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_expand_block':
(.text+0x146): undefined reference to `inflate'
/usr/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_compress_block':
(.text+0x1d6): undefined reference to `deflate'
/usr/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_init':
(.text+0x2c0): undefined reference to `inflateInit_'
/usr/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_init':
(.text+0x32a): undefined reference to `deflateInit_'
/usr/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_free_ex_data':
(.text+0x42e): undefined reference to `inflateEnd'
/usr/lib/libcrypto.a(c_zlib.o): In function `zlib_stateful_free_ex_data':
(.text+0x439): undefined reference to `deflateEnd'
collect2: ld returned 1 exit status
make: *** [sge_shepherd] Error 1
not done

4) if I use ./aimk -no-dump -only-core -no-jni -no-krb, it is ok

So I want to get some helps:
1) What is the reason of #1 error ? gcc configure error? or Java configure error? How to fix it?
2) what is the matter of openssl's two libs?
3) What is instructions of build SGE on CentOS/Fedora?

Thanks a lot!

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=39&dsMessageId=209285

To unsubscribe from this discussion, e-mail: [dev-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list