[asterisk-bugs] [Asterisk 0011885]: [patch] Fix some more solaris build issues
noreply at bugs.digium.com
noreply at bugs.digium.com
Wed Jun 18 11:19:25 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=11885
======================================================================
Reported By: snuffy
Assigned To: qwell
======================================================================
Project: Asterisk
Issue ID: 11885
Category: Core/General
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
Asterisk Version: SVN
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!): 101392
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 01-31-2008 03:46 CST
Last Modified: 06-18-2008 11:19 CDT
======================================================================
Summary: [patch] Fix some more solaris build issues
Description:
There are a few more issues that cause solaris to stop compiling.
Setting inital in_addr is very different on solaris crazy union/struct
replaced with memset
Fix issue with logger.c had ifdef removed which caused non-compilation.
Seperate patch:
The change to editline/np/vis.h is simple because there is no U_int32_t on
solaris i think my way is sledgehammer approch so input would be
appreciated
======================================================================
Relationships ID Summary
----------------------------------------------------------------------
has duplicate 0012037 Compile fails with "`u_int32_t' un...
======================================================================
----------------------------------------------------------------------
asgaroth - 06-18-08 11:19
----------------------------------------------------------------------
On a side note, although I think it may not be related. Not sure if you
want me to log a seperate bug for this.
sched_yield lives in librt on Solaris and needs to be linked in for some
modules, or else it fails with the following:
[Jun 18 16:04:33] WARNING[29813]: loader.c:399 load_dynamic_module: Unable
to promote flags on module 'chan_agent.so': ld.so.1: asterisk: fatal:
relocation error: file /opt/asterisk/lib/modules/chan_agent.so: symbol
sched_yield: referenced symbol not found
[Jun 18 16:04:33] WARNING[29813]: loader.c:657 load_resource: Module
'chan_agent.so' could not be loaded.
What I ended up doing was editing the Makefile and changing the
following:
ifeq ($(OSARCH),SunOS)
SOLINK=-shared -fpic -L/usr/local/ssl/lib
endif
to:
ifeq ($(OSARCH),SunOS)
SOLINK=-shared -fpic -lrt
endif
And that seems to have fixed it
Issue History
Date Modified Username Field Change
======================================================================
06-18-08 11:19 asgaroth Note Added: 0088871
======================================================================
More information about the asterisk-bugs
mailing list