[Kamailio-Devel] [ openser-Bugs-2132173 ] error compiling db_ut on solaris 10

SourceForge.net noreply at sourceforge.net
Sat Sep 27 14:56:11 CEST 2008


Bugs item #2132173, was opened at 2008-09-27 14:56
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=2132173&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: core
Group: ver 1.4.x
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Muhammad Akl (m-akl)
Assigned to: Nobody/Anonymous (nobody)
Summary: error compiling db_ut  on solaris 10 

Initial Comment:
Vesion : 1.4.1 OS : solaris 10 

bug description :

when was trying to compile the new release of kamailio 1.4.1 i got the following error message : 

http://pastebin.com/m2b086ad6

The problem was happened due to a conflict for the function swab() , as it was defined in two header files which are stdlib.h and unistd.h , so i checked the stdlib.h file and found the following : 

/*
 * swab() has historically been in <stdlib.h> as delivered from AT&T
 * and continues to be visible in the default compilation environment.
 * As of Issue 4 of the X/Open Portability Guides, swab() was declared
 * in <unistd.h>. As a result, with respect to X/Open namespace the
 * swab() declaration in this header is only visible for the XPG3
 * environment.
 */

what i did to solve this problem is removing the following line from db/db_ut.c file :

#include <stdlib.h> 

regards 

Muhammad

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

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



More information about the Devel mailing list