[OpenSER-Devel] [ openser-Bugs-1861551 ] mi_datagram fails to compile on Solaris 2.8/gcc 4.1.1
SourceForge.net
noreply at sourceforge.net
Tue Jan 1 00:11:07 UTC 2008
Bugs item #1861551, was opened at 2007-12-31 14:28
Message generated for change (Comment added) made by bobatkins
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1861551&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: Bob Atkins (bobatkins)
Assigned to: Nobody/Anonymous (nobody)
Summary: mi_datagram fails to compile on Solaris 2.8/gcc 4.1.1
Initial Comment:
I suspect a missing include file but I haven't figured out where (or if) AF_LOCAL is declared and in what include file...
Compiling datagram_fnc.c
gcc -fPIC -DPIC -g -O9 -funroll-loops -Wall -mcpu=ultrasparc -mtune=ultrasparc -ftree-vectorize -m64 -mcpu=ultrasparc -I/opt/include -I/opt/include/mysql -DMOD_NAME='"mi_datagram"' -DNAME='"openser"' -DVERSION='"1.3.0-tls"' -DARCH='"sparc64"' -DOS='"solaris"' -DCOMPILER='"gcc 4.1.1"' -D__CPU_sparc64 -D__OS_solaris -D__SMP_no -DCFG_DIR='"/opt/openser-1.3.0-tls/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_GETIPNODEBYNAME -DHAVE_SYS_SOCKIO_H -DHAVE_SCHED_YIELD -DHAVE_ALLOCA_H -DUSE_SIGACTION -D_POSIX_PTHREAD_SEMANTICS -DHAVE_DEVPOLL -DHAVE_SELECT -I/opt/ssl/include -I/opt/include -c datagram_fnc.c -o datagram_fnc.o
datagram_fnc.c: In function 'mi_init_datagram_server':
datagram_fnc.c:103: error: 'AF_LOCAL' undeclared (first use in this function)
datagram_fnc.c:103: error: (Each undeclared identifier is reported only once
datagram_fnc.c:103: error: for each function it appears in.)
datagram_fnc.c: In function 'datagram_close_async':
datagram_fnc.c:326: error: 'AF_LOCAL' undeclared (first use in this function)
datagram_fnc.c: In function 'build_async_handler':
datagram_fnc.c:404: error: 'AF_LOCAL' undeclared (first use in this function)
make[1]: *** [datagram_fnc.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/db/src/openser/openser-1.3.0-tls_64bit/modules/mi_datagram'
make: *** [modules] Error 2
----------------------------------------------------------------------
>Comment By: Bob Atkins (bobatkins)
Date: 2007-12-31 16:11
Message:
Logged In: YES
user_id=655552
Originator: YES
OK, problem solved. Please see attached patch for datagram_fnc.c
With the patch applied openser 1.3.0 compiles properly on Solaris 2.8 with
gcc 4.1.1 as a 64 bit executable.
File Added: datagram_fnc.patch
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1861551&group_id=139143
More information about the Devel
mailing list