[OpenSIPS-Users] Problems compiling OpenSIPS 1.7 on OpenBSD 5.0 (error: expected specifier-qualifier-list, etc)

Taisto Qvist taisto.qvist at ip-solutions.se
Fri Feb 3 16:24:21 CET 2012


Hi Folks,

I am trying to compile OpenSIPS 1.7(latest svn src) on OpenBSD 5.0,
but I stumble fairly quickly on the below errors.

Anyone who can explain what simple things I've messed up?

Any help appreciated!

Regards
Taisto Qvist
IP-Solutions.se

*[root at sip] /usr/source/opensips_1_7 ># gmake*
Compiling evi/evi_core.c
In file included from evi/evi_transport.h:30,
                  from evi/event_interface.h:29,
                  from evi/evi_modules.h:30,
                  from evi/evi_core.c:26:
/usr/include/sys/socket.h:166: error: expected specifier-qualifier-list before 'u_int8_t'
/usr/include/sys/socket.h:184: error: expected specifier-qualifier-list before 'u_int8_t'
/usr/include/sys/socket.h:254: error: expected specifier-qualifier-list before 'uid_t'
/usr/include/sys/socket.h:400: error: expected specifier-qualifier-list before 
'socklen_t'
/usr/include/sys/socket.h:426: error: expected specifier-qualifier-list before 
'socklen_t'
/usr/include/sys/socket.h:482: error: expected specifier-qualifier-list before 'caddr_t'
In file included from evi/evi_transport.h:30,
                  from evi/event_interface.h:29,
                  from evi/evi_modules.h:30,
                  from evi/evi_core.c:26:
/usr/include/sys/socket.h:497: error: expected declaration specifiers or '...' before 
'socklen_t'
/usr/include/sys/socket.h:498: error: expected declaration specifiers or '...' before 
'socklen_t'
/usr/include/sys/socket.h:499: error: expected declaration specifiers or '...' before 
'socklen_t'
/usr/include/sys/socket.h:500: error: expected declaration specifiers or '...' before 
'uid_t'
/usr/include/sys/socket.h:500: error: expected declaration specifiers or '...' before 
'gid_t'
/usr/include/sys/socket.h:501: error: expected declaration specifiers or '...' before 
'socklen_t'
/usr/include/sys/socket.h:502: error: expected declaration specifiers or '...' before 
'socklen_t'
/usr/include/sys/socket.h:503: error: expected declaration specifiers or '...' before 
'socklen_t'
/usr/include/sys/socket.h:505: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'recv'
/usr/include/sys/socket.h:506: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'recvfrom'
/usr/include/sys/socket.h:507: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'recvmsg'
/usr/include/sys/socket.h:508: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'send'
/usr/include/sys/socket.h:509: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'sendto'
/usr/include/sys/socket.h:511: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before 'sendmsg'
/usr/include/sys/socket.h:512: error: expected declaration specifiers or '...' before 
'socklen_t'
In file included from evi/evi_transport.h:33,
                  from evi/event_interface.h:29,
                  from evi/evi_modules.h:30,
                  from evi/evi_core.c:26:
evi/../ip_addr.h: In function 'sockaddr2ip_addr':
evi/../ip_addr.h:220: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h:234: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h:234: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h: In function 'su_cmp':
evi/../ip_addr.h:250: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h:250: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h:251: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h:261: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h:261: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h: In function 'su_getport':
evi/../ip_addr.h:275: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h:283: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h:283: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h: In function 'su_setport':
evi/../ip_addr.h:291: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h:301: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h:301: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h: In function 'su2ip_addr':
evi/../ip_addr.h:308: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h:322: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h:322: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h: In function 'init_su':
evi/../ip_addr.h:338: error: 'struct sockaddr' has no member named 'sa_family'
evi/../ip_addr.h: In function 'hostent2su':
evi/../ip_addr.h:375: error: 'struct sockaddr' has no member named 'sa_family'
In file included from evi/../fastlock.h:54,
                  from evi/../lock_ops.h:70,
                  from evi/../locking.h:67,
                  from evi/event_interface.h:31,
                  from evi/evi_modules.h:30,
                  from evi/evi_core.c:26:
/usr/include/unistd.h: At top level:
/usr/include/unistd.h:101: warning: redundant redeclaration of 'lseek'
/usr/include/sys/types.h:210: warning: previous declaration of 'lseek' was here
/usr/include/unistd.h:140: warning: redundant redeclaration of 'ftruncate'
/usr/include/sys/types.h:211: warning: previous declaration of 'ftruncate' was here
/usr/include/unistd.h:166: warning: redundant redeclaration of 'truncate'
/usr/include/sys/types.h:212: warning: previous declaration of 'truncate' was here
gmake: *** [evi/evi_core.o] Error 1
[root at sip] /usr/source/opensips_1_7 >#




More information about the Users mailing list