[asterisk-bugs] [Asterisk 0014210]: [patch] app_stack weak reference not set up properly for build on Mac OS X
Asterisk Bug Tracker
noreply at bugs.digium.com
Tue Jan 13 00:01:37 CST 2009
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=14210
======================================================================
Reported By: jcovert
Assigned To: Corydon76
======================================================================
Project: Asterisk
Issue ID: 14210
Category: Core/Portability
Reproducibility: always
Severity: major
Priority: normal
Status: acknowledged
Asterisk Version: 1.6.0.3-rc1
Regression: No
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 2009-01-11 12:19 CST
Last Modified: 2009-01-13 00:01 CST
======================================================================
Summary: [patch] app_stack weak reference not set up properly
for build on Mac OS X
Description:
On Mac OS X 10.4.11 (latest Tiger) the following is reported during make:
[LD] app_stack.o -> app_stack.so
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning weak symbol
references not set in output with MACOSX_DEPLOYMENT_TARGET environment
variable set to: 10.1
/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/ld: warning weak referenced
symbols:
_ast_agi_register
_ast_agi_send
_ast_agi_unregister
and the following is reported during load:
Asterisk Dynamic Loader Starting:
== Parsing '/etc/asterisk/modules.conf': == Found
[Jan 11 12:04:24] NOTICE[18378]: loader.c:869 load_modules: 152 modules
will be loaded.
[Jan 11 12:04:24] WARNING[18378]: loader.c:371 load_dynamic_module: Error
loading module 'app_stack.so':
dlopen(/usr/lib/asterisk/modules/app_stack.so, 5): Symbol not found:
_ast_agi_unregister
Referenced from: /usr/lib/asterisk/modules/app_stack.so
Expected in: flat namespace
And then Asterisk just hangs. Workaround is to remove app_stack.so or
just not build it.
======================================================================
----------------------------------------------------------------------
(0097561) jcovert (reporter) - 2009-01-13 00:01
http://bugs.digium.com/view.php?id=14210#c97561
----------------------------------------------------------------------
No, that patch does not work. It causes the first prelink to fail with
powerpc-apple-darwin8-gcc-4.0.1: 10.3: No such file or directory
What did work was to explicitly set MACOSX_DEPLOYMENT_TARGET=10.4 before
the make command.
However, in the meantime the source has been modified. The version in
trunk (168536) now gets the following compiler warnings, but links ok
without any modifications to Makefile.
[CC] app_stack.c -> app_stack.o
app_stack.c:683: warning: alias definitions not supported in Mach-O;
ignored
app_stack.c:683: warning: alias definitions not supported in Mach-O;
ignored
app_stack.c:683: warning: alias definitions not supported in Mach-O;
ignored
app_stack.c:683: warning: alias definitions not supported in Mach-O;
ignored
app_stack.c:683: warning: alias definitions not supported in Mach-O;
ignored
However, trunk (168536) doesn't get much farther along before it wipes
out:
[CC] asterisk.c -> asterisk.o
asterisk.c: In function 'handle_show_sysinfo':
asterisk.c:568: error: storage size of 'vmtotal' isn't known
asterisk.c:584: error: 'HW_PHYSMEM64' undeclared (first use in this
function)
asterisk.c:584: error: (Each undeclared identifier is reported only once
asterisk.c:584: error: for each function it appears in.)
asterisk.c:609: error: 'KERN_NPROCS' undeclared (first use in this
function)
asterisk.c:568: warning: unused variable 'vmtotal'
asterisk.c: In function 'read_credentials':
asterisk.c:1154: warning: pointer targets in passing argument 2 of
'getpeereid' differ in signedness
asterisk.c:1154: warning: pointer targets in passing argument 3 of
'getpeereid' differ in signedness
make[1]: *** [asterisk.o] Error 1
make: *** [main] Error 2
Issue History
Date Modified Username Field Change
======================================================================
2009-01-13 00:01 jcovert Note Added: 0097561
======================================================================
More information about the asterisk-bugs
mailing list