Hello everybody.
I discovered another issue when compiling openser on Solaris 10 running on Sparc.
If I use standard gcc version 3.4.3, it compiles and runs Ok when it is
compiled on 32 bits (Standard compilation without special command line
options).
But If I use the GCC edition for SPARC Systems (GCCFS) by Sun
Microsytems (which is based on GCC 4.0.3 and is an optimized edition
for Solaris on SPARC), openser fails to start complaining about table
versions. Below appears the log output, and the backtrace of the
generated core file:
WARNING: no fork mode
0(1120) fm_malloc_init: F_OPTIMIZE=16384, /ROUNDTO=2048
0(1120) fm_malloc_init: F_HASH_SIZE=2067, fm_block size=16560
0(1120) fm_malloc_init(fc800000, 33554432), start=fc800000
0(1120) shm_mem_init: success
0(0) core dump limits set to 0
0(0) DEBUG:add_avp_galias: registering <serial_branch> for avp id <16725044>
0(0) INFO: statistics manager successfully initialized
0(0) DEBUG: init_mod: sl
0(0) StateLess module - initializing
0(0) DEBUG: MD5 calculated: 224bba3fcb82b3a99110f369fb8df55a
0(0) DEBUG: register_stats: sl
0(0) DEBUG: init_mod: usrloc
0(0) usrloc - initializing
0(0) INFO:ul_init_locks: locks array size 4096
0(0) unixsock_register_cmd: New command (ul_rm) registered
0(0) unixsock_register_cmd: New command (ul_rm_contact) registered
0(0) unixsock_register_cmd: New command (ul_dump) registered
0(0) unixsock_register_cmd: New command (ul_flush) registered
0(0) unixsock_register_cmd: New command (ul_add) registered
0(0) unixsock_register_cmd: New command (ul_show_contact) registered
0(0) find_mod_export: found <db_use_table> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_init> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_close> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_query> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_fetch_result> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_raw_query> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_free_result> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_insert> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_delete> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_update> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_replace> in module mysql [/toip2/lib/openser/modules/]
0(0) DEBUG: register_stats: usrloc
0(0) DEBUG: register_mi: usrloc
0(0) DEBUG: init_mod: registrar
0(0) registrar - initializing
0(0) find_cmd_export_t: found <load_sl>(0) in module sl [/toip2/lib/openser/modules/]
0(0) find_cmd_export_t: found <ul_bind_usrloc>(1) in module usrloc [/toip2/lib/openser/modules/]
0(0) DEBUG: register_stats: registrar
0(0) DEBUG: init_mod: tm
0(0) TM - initializing...
0(0) Call-ID initialization: '47395976'
0(0) unixsock_register_cmd: New command (t_uac_dlg) registered
0(0) unixsock_register_cmd: New command (t_uac_cancel) registered
0(0) unixsock_register_cmd: New command (t_hash) registered
0(0) unixsock_register_cmd: New command (t_reply) registered
0(0) DEBUG: lock_initialize: lock initialization started
0(0) Warning: uac does not spread across the whole hash table
0(0) DEBUG: MD5 calculated: b5fd95724ef23fee9ce49ee6c27239d6
0(0) DEBUG: MD5 calculated: d0730e359e0208514db6efb58e0ac8b9
0(0) DEBUG: register_stats: tm
0(0) DEBUG: register_mi: tm
0(0) DEBUG: init_mod: mysql
0(0) mysql: MySQL client version is 5.0.37
0(0) DEBUG: init_mod: auth
0(0) AUTH module - initializing
0(0) find_cmd_export_t: found <load_sl>(0) in module sl [/toip2/lib/openser/modules/]
0(0) xl_parse_name: name [s:rpid] index [0]
0(0) xl_parse_vname: avp [s:rpid]
0(0) DEBUG: init_mod: auth_db
0(0) AUTH_DB module - initializing
0(0) find_mod_export: found <db_use_table> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_init> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_close> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_query> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_fetch_result> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_raw_query> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_free_result> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_insert> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_delete> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_update> in module mysql [/toip2/lib/openser/modules/]
0(0) find_mod_export: found <db_replace> in module mysql [/toip2/lib/openser/modules/]
0(0) find_cmd_export_t: found <bind_auth>(0) in module auth [/toip2/lib/openser/modules/]
0(0) find_cmd_export_t: found <load_sl>(0) in module sl [/toip2/lib/openser/modules/]
0(0) DEBUG: init_mod: auth_radius
0(0) auth_radius - Initializing
0(0) auth_radius: No `Cisco' vendor in Radius dictionary
0(0) find_cmd_export_t: found <bind_auth>(0) in module auth [/toip2/lib/openser/modules/]
0(0) DEBUG: init_mod: acc
0(0) ACC - initializing
0(0) find_cmd_export_t: found <load_tm>(0) in module tm [/toip2/lib/openser/modules/]
0(0) xl_parse_name: name [Via] index [-2]
0(0) INFO:xl_parse_name: using hdr type (1) instead of <Via>
0(0) fixing radius_www_authorize, line 63
0(0) fixing www_challenge, line 65
0(0) fixing save, line 69
0(0) db_init: Connection 'mysql://openser:openserrw@localhost/openser' not found in pool
0(0) new_connection: Opening MySQL connection: mysql://openser:openserrw@localhost/openser
0(0) new_connection: Connection type is Localhost via UNIX socket
0(0) new_connection: Protocol version is 10
0(0) new_connection: Server version is 5.0.37-log
0(0) table_version(): Invalid type (2) or nul (0) version columns for location
0(0) register_udomain(): Error while querying table version
0(0) pool_remove: Removing connection from the pool
0(0) domain_fixup(): Error while registering domain
0(0) ERROR: fix_actions: fixing failed (code=-1) at cfg line 69
0(0) ERROR: fix_expr : fix_actions error
ERROR: error -1 while trying to fix configuration
Segmentation Fault (core dumped)
# GDB backtrace
(gdb) bt
#0 0x000305a8 in process_count ()
#1 0x00030518 in kill_all_children ()
#2 0x00033ab8 in main ()
Is there any incompatibility when using GCC 4.X to compile openser?
Thanks in advance for your help.
Sergio Gutiérrez