[Home]

Summary:ASTERISK-01474: Compile fails on OS X (10.3.3)
Reporter:Roy Sigurd Karlsbakk (rkarlsba)Labels:
Date Opened:2004-04-27 12:12:25Date Closed:2004-09-25 02:49:40
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Compiling asterisk, current CVS, fails on MacOS 10.3.3

****** ADDITIONAL INFORMATION ******

gcc -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE  -O6    -DASTERISK_VERSION=\"CVS-04/27/04-18:04:30\" -DINSTALL_PREFIX=\"\" -DASTETCDIR=\"/etc/asterisk\" -DASTLIBDIR=\"/usr/lib/asterisk\" -DASTVARLIBDIR=\"/var/lib/asterisk\" -DASTVARRUNDIR=\"/var/run\" -DASTSPOOLDIR=\"/var/spool/asterisk\" -DASTLOGDIR=\"/var/log/asterisk\" -DASTCONFPATH=\"/etc/asterisk/asterisk.conf\" -DASTMODDIR=\"/usr/lib/asterisk/modules\" -DASTAGIDIR=\"/var/lib/asterisk/agi-bin\"     -DBUSYDETECT_MARTIN     -DNEW_PRI_HANGUP    -c -o localtime.o localtime.c
In file included from localtime.c:27:
../include/asterisk/lock.h: In function `ast_mutex_init':
../include/asterisk/lock.h:173: error: `PTHREAD_MUTEX_RECURSIVE_NP' undeclared (first use in this function)
../include/asterisk/lock.h:173: error: (Each undeclared identifier is reported only once
../include/asterisk/lock.h:173: error: for each function it appears in.)
localtime.c: At top level:
localtime.c:187: error: `PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared here (not in a function)
localtime.c:188: error: `PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared here (not in a function)
localtime.c:189: error: `PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared here (not in a function)
localtime.c:190: error: `PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared here (not in a function)
localtime.c: In function `gmtsub':
localtime.c:1088: warning: assignment discards qualifiers from pointer target type
localtime.c: At top level:
localtime.c:33: warning: `elsieid' defined but not used
make[1]: *** [localtime.o] Error 1
make: *** [stdtime/libtime.a] Error 2
Comments:By: Mark Spencer (markster) 2004-04-27 13:13:04

This is the same thing as 1411, I just updated it to include MacOS X.  BSD compatibility is not a requirement (although it would be nice) and as such I do not believe this is a "major" bug but a "minor" one.