[Kamailio-Devel] [ openser-Bugs-2120297 ] postgres module does not compile while cross compiling

SourceForge.net noreply at sourceforge.net
Sat Sep 20 11:17:50 CEST 2008


Bugs item #2120297, was opened at 2008-09-20 11:17
Message generated for change (Settings changed) made by m-akl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2120297&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver 1.3.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Muhammad Akl (m-akl)
Assigned to: Nobody/Anonymous (nobody)
>Summary: postgres module does not compile while cross compiling

Initial Comment:
version: 1.3.3       Os :Solaris 10


while compiling postgres module , it gives bunch of errors due to cross compiling was enable heres the error message : 


gmake[1]: no: Command not found
gmake[1]: Entering directory `/usr/share/src/openser-1.3.3-tls/modules/postgres'
gmake[1]: no: Command not found
gmake[1]: no: Command not found
gcc: no input files
gmake[1]: no: Command not found
gmake[1]: no: Command not found
gmake[1]: no: Command not found
gcc: no input files
gmake[1]: no: Command not found
gmake[1]: no: Command not found
gmake[1]: no: Command not found
gcc: no input files
gmake[1]: no: Command not found
gmake[1]: no: Command not found
gmake[1]: no: Command not found
gcc: no input files
gmake[1]: no: Command not found
gmake[1]: no: Command not found
gmake[1]: no: Command not found
gcc: no input files
gmake[1]: no: Command not found
gmake[1]: no: Command not found
gmake[1]: no: Command not found
Compiling db_mod.c
gcc -fPIC -DPIC  -g -O9 -funroll-loops  -Wcast-align  -Wall   -minline-all-strin
gops -falign-loops -mtune=pentium4  -DMOD_NAME='"postgres"'    -DNAME='"openser"
' -DVERSION='"1.3.3-tls"' -DARCH='"i386"' -DOS='"solaris"' -DCOMPILER='"gcc 3.4.
3"' -D__CPU_i386 -D__OS_solaris -D__SMP_no -DCFG_DIR='"/usr/local//etc/openser/"
' -DPKG_MALLOC -DSHM_MEM  -DSHM_MMAP -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_
NAGLE -DHAVE_RESOLV_RES -DSTATISTICS -DCHANGEABLE_DEBUG_LEVEL -DF_MALLOC  -DUSE_
TLS -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024  -DHAVE_GETIPNODEBYNA
ME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD -DHAVE_ALLOCA_H -DUSE_SIGACTION -D_POS
IX_PTHREAD_SEMANTICS -DHAVE_DEVPOLL -DHAVE_SELECT -I/ssl/include -I/include -I -
c db_mod.c -o db_mod.o
Undefined                       first referenced
 symbol                             in file
main                                /usr/lib/crt1.o
ctime_buf                           /var/tmp//ccxvXuFd.o
debug                               /var/tmp//ccxvXuFd.o
log_facility                        /var/tmp//ccxvXuFd.o
pg_fetch_result                     /var/tmp//ccxvXuFd.o
pg_delete                           /var/tmp//ccxvXuFd.o
pg_insert                           /var/tmp//ccxvXuFd.o
dp_my_pid                           /var/tmp//ccxvXuFd.o
log_stderr                          /var/tmp//ccxvXuFd.o
dprint                              /var/tmp//ccxvXuFd.o
pg_update                           /var/tmp//ccxvXuFd.o
pg_init                             /var/tmp//ccxvXuFd.o
pg_raw_query                        /var/tmp//ccxvXuFd.o
pg_close                            /var/tmp//ccxvXuFd.o
pg_query                            /var/tmp//ccxvXuFd.o
pg_free_query                       /var/tmp//ccxvXuFd.o
pg_use_table                        /var/tmp//ccxvXuFd.o
ld: fatal: Symbol referencing errors. No output written to db_mod.o
collect2: ld returned 1 exit status
gmake[1]: *** [db_mod.o] Error 1
gmake[1]: Leaving directory `/usr/share/src/openser-1.3.3-tls/modules/postgres'
gmake: *** [modules] Error 2

suggested solution was by henning : 

the solution was in skipping the cross compiling by setting 

CROSS_COMPILE=true in modules/postgres/Makefile

cheers 

Muhammad

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2120297&group_id=139143



More information about the Devel mailing list