>> It seems to be about posix timers in Solaris in general. It tried an 
>> install in the global zone of the machine with the same errors.
>>
>> Does anyone else see this and is there a fix already available? Seems to 
>> be of a more general interest now as it is not container-specific.
>>
> 
> I don't think it's the issue, but please don't use RC4.
> download the latest 1.2 branch from SVN.
> 
> attach, please, your confdefs.h file in /include/dir


Hello Max,

thank you for your reply. I managed to get things working with rc4 by 
undef'ing HAVE_POSIX_TIMERS and defining USE_GENERIC_TIMERS. This even 
works in a Solaris container. The originally generated confdefs.h is 
attached.

But I think this is the second-best solution if posix timers are available.

I tried tonight's bootstraped snapshot of callweaver. It compiles much 
more smoothly on Solaris 10 then rc4, but has the same issue with the 
timers.

BTW: The only edit required to compile in Solaris 10 x86 (Rel. 11/06) is 
now in stdtime/localtime.c around line 1238.

#ifdef SOLARIS
         return asctime_r(localtime_r(timep, &tm), buf, 256);
#else
         return asctime_r(localtime_r(timep, &tm), buf);
#endif

The #ifdef is wrong for Solaris 10. It works the standard way without 
the 256.

I will use the snapshot with generic timers for the moment. Any 
suggestions are greatly appreciated.

Thank you,
Jan




/* include/confdefs.h.  Generated from confdefs.h.in by configure.  */
/* include/confdefs.h.in.  Generated from configure.ac by autoheader.  */

/* Define if AIX */
/* #undef AIX */

/* The date of this build */
#define BUILD_DATE "2007-07-26 11:47:45 UTC"

/* Hostname of our Box */
#define BUILD_HOSTNAME "pbx"

/* Kernel version of this build */
#define BUILD_KERNEL "5.10"

/* Machine we are building on */
#define BUILD_MACHINE "i86pc"

/* Operating System we are building on */
#define BUILD_OS "SunOS"

/* Define to 1 if the `closedir' function returns void instead of `int'. */
/* #undef CLOSEDIR_VOID */

/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
    systems. This function is required for `alloca.c' support on those 
systems.
    */
/* #undef CRAY_STACKSEG_END */

/* chan_sccp call parking support */
#define CS_SCCP_PARK 1

/* chan_sccp call pickup support */
#define CS_SCCP_PICKUP 1

/* Define to 1 if using `alloca.c'. */
/* #undef C_ALLOCA */

/* Enable extra debugging. */
/* #undef DEBUG */

/* Enable scheduler debugging. */
/* #undef DEBUG_SCHEDULER */

/* Enable DO_CRASH. */
/* #undef DO_CRASH */

/* Enable support for SRTP. */
/* #undef ENABLE_SRTP */

/* Define to 1 if you have `alloca', as a function or macro. */
#define HAVE_ALLOCA 1

/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
    */
#define HAVE_ALLOCA_H 1

/* Define to 1 if you have the `atexit' function. */
#define HAVE_ATEXIT 1

/* Define to 1 if you have the <bluetooth/bluetooth.h> header file. */
/* #undef HAVE_BLUETOOTH_BLUETOOTH_H */

/* Define to 1 if you have the `bzero' function. */
#define HAVE_BZERO 1

/* Define to 1 if you have the <capi20.h> header file. */
/* #undef HAVE_CAPI20_H */

/* Define to 1 if you have the <capiutils.h> header file. */
/* #undef HAVE_CAPIUTILS_H */

/* Define to 1 if your system has a working `chown' function. */
#define HAVE_CHOWN 1

/* Define to 1 if you have the `clock_getres' function. */
#define HAVE_CLOCK_GETRES 1

/* Define to 1 if you have the declaration of `INET6_ADDRSTRLEN', and to 
0 if
    you don't. */
#define HAVE_DECL_INET6_ADDRSTRLEN 1

/* Define to 1 if you have the declaration of `INET_ADDRSTRLEN', and to 0 if
    you don't. */
#define HAVE_DECL_INET_ADDRSTRLEN 1

/* Define to 1 if you have the declaration of `strerror_r', and to 0 if you
    don't. */
#define HAVE_DECL_STRERROR_R 1

/* Define to 1 if you have the declaration of `tzname', and to 0 if you 
don't.
    */
#define HAVE_DECL_TZNAME 1

/* Define to 1 if you have the declaration of `__BEGIN_DECLS', and to 0 
if you
    don't. */
#define HAVE_DECL___BEGIN_DECLS 0

/* Define to 1 if you have the declaration of `__END_DECLS', and to 0 if you
    don't. */
#define HAVE_DECL___END_DECLS 0

/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
    */
#define HAVE_DIRENT_H 1

/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1

/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
#define HAVE_DOPRNT 1

/* Define to 1 if you have the `dup2' function. */
#define HAVE_DUP2 1

/* Define to 1 if you have the `endpwent' function. */
#define HAVE_ENDPWENT 1

/* Define to 1 if you have the `floor' function. */
#define HAVE_FLOOR 1

/* Define to 1 if you have the `fork' function. */
#define HAVE_FORK 1

/* Define to 1 if you have the `ftruncate' function. */
#define HAVE_FTRUNCATE 1

/* Define to 1 if you have the `getcwd' function. */
#define HAVE_GETCWD 1

/* Define to 1 if you have the `gethostbyname' function. */
#define HAVE_GETHOSTBYNAME 1

/* Define to 1 if you have the `gethostname' function. */
#define HAVE_GETHOSTNAME 1

/* Define to 1 if you have the `getpagesize' function. */
#define HAVE_GETPAGESIZE 1

/* Define to 1 if you have the `gettimeofday' function. */
#define HAVE_GETTIMEOFDAY 1

/* Define to 1 if you have the `inet_ntoa' function. */
#define HAVE_INET_NTOA 1

/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1

/* Needed for recv-/sendfromto on Linux */
/* #undef HAVE_IP_PKTINFO */

/* Needed for recv-/sendfromto on *BSD */
/* #undef HAVE_IP_RECVDSTADDR */

/* Needed for recv-/sendfromto on *BSD */
/* #undef HAVE_IP_SENDSRCADDR */

/* Define to 1 if you have the `isascii' function. */
#define HAVE_ISASCII 1

/* Define to 1 if you have the <jstypes.h> header file. */
/* #undef HAVE_JSTYPES_H */

/* Define to 1 if you have the <js/jstypes.h> header file. */
/* #undef HAVE_JS_JSTYPES_H */

/* Define to 1 if you have the `c' library (-lc). */
#define HAVE_LIBC 1

/* Define to 1 if you have the `curses' library (-lcurses). */
#define HAVE_LIBCURSES 1

/* Define to 1 if you have the `db' library (-ldb). */
/* #undef HAVE_LIBDB */

/* Define to 1 if you have the `ib' library (-lib). */
/* #undef HAVE_LIBIB */

/* Define to 1 if you have the `lber' library (-llber). */
/* #undef HAVE_LIBLBER */

/* Define to 1 if you have the `ldap' library (-lldap). */
/* #undef HAVE_LIBLDAP */

/* Define to 1 if you have the `m' library (-lm). */
#define HAVE_LIBM 1

/* Define to 1 if you have the `ncurses' library (-lncurses). */
/* #undef HAVE_LIBNCURSES */

/* yes there is newt */
/* #undef HAVE_LIBNEWT */

/* Define to 1 if you have the `nsl' library (-lnsl). */
#define HAVE_LIBNSL 1

/* Define to 1 if you have the `ossaudio' library (-lossaudio). */
/* #undef HAVE_LIBOSSAUDIO */

/* Define to 1 if you have the `pq' library (-lpq). */
/* #undef HAVE_LIBPQ */

/* Define to 1 if you have the `pthread' library (-lpthread). */
#define HAVE_LIBPTHREAD 1

/* Define to 1 if you have the `readline' library (-lreadline). */
#define HAVE_LIBREADLINE 1

/* Define to 1 if you have the `resolv' library (-lresolv). */
#define HAVE_LIBRESOLV 1

/* Define to 1 if you have the `rt' library (-lrt). */
#define HAVE_LIBRT 1

/* Define to 1 if you have the `socket' library (-lsocket). */
#define HAVE_LIBSOCKET 1

/* Define to 1 if you have the `srtp' library (-lsrtp). */
/* #undef HAVE_LIBSRTP */

/* Define to 1 if you have the `t' library (-lt). */
/* #undef HAVE_LIBT */

/* Define to 1 if you have the <linux/zaptel.h> header file. */
/* #undef HAVE_LINUX_ZAPTEL_H */

/* Define to 1 if you have the `localtime_r' function. */
#define HAVE_LOCALTIME_R 1

/* Define to 1 if your system has a GNU libc compatible `malloc' 
function, and
    to 0 otherwise. */
#define HAVE_MALLOC 1

/* Define to 1 if you have the `memchr' function. */
#define HAVE_MEMCHR 1

/* Define to 1 if you have the `memmove' function. */
#define HAVE_MEMMOVE 1

/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1

/* Define to 1 if you have the `memset' function. */
#define HAVE_MEMSET 1

/* Define to 1 if you have the `mkdir' function. */
#define HAVE_MKDIR 1

/* Define to 1 if you have a working `mmap' system call. */
#define HAVE_MMAP 1

/* Define to 1 if you have the `munmap' function. */
#define HAVE_MUNMAP 1

/* Define to 1 if you have the <ndir.h> header file, and it defines 
`DIR'. */
/* #undef HAVE_NDIR_H */

/* Define to 1 if you have the <netinet/in.h> header file. */
#define HAVE_NETINET_IN_H 1

/* Define to 1 if you have the <opendbx.h> header file. */
/* #undef HAVE_OPENDBX_H */

/* Define to 1 if you have the <osp/osp.h> header file. */
/* #undef HAVE_OSP_OSP_H */

/* system sqlite3 is there */
/* #undef HAVE_PKG_SQLITE3 */

/* Define to 1 if you have the <popt.h> header file. */
#define HAVE_POPT_H 1

/* yes there are real time libraries */
#define HAVE_POSIX_TIMERS 1

/* Define to 1 if you have the `pow' function. */
#define HAVE_POW 1

/* Define to 1 if the system has the type `ptrdiff_t'. */
#define HAVE_PTRDIFF_T 1

/* Define to 1 if you have the <pty.h> header file. */
/* #undef HAVE_PTY_H */

/* Define to 1 if you have the `putenv' function. */
#define HAVE_PUTENV 1

/* Define to 1 if you have the <readline/history.h> header file. */
#define HAVE_READLINE_HISTORY_H 1

/* Define to 1 if you have the <readline/readline.h> header file. */
#define HAVE_READLINE_READLINE_H 1

/* Define to 1 if your system has a GNU libc compatible `realloc' function,
    and to 0 otherwise. */
#define HAVE_REALLOC 1

/* Define to 1 if you have the `regcomp' function. */
#define HAVE_REGCOMP 1

/* Define to 1 if you have the `re_comp' function. */
#define HAVE_RE_COMP 1

/* Define to 1 if you have the `rint' function. */
#define HAVE_RINT 1

/* Define to 1 if you have the `select' function. */
#define HAVE_SELECT 1

/* Define to 1 if you have the `setenv' function. */
#define HAVE_SETENV 1

/* Define to 1 if you have the `socket' function. */
#define HAVE_SOCKET 1

/* Define to 1 if you have the <spandsp.h> header file. */
#define HAVE_SPANDSP_H 1

/* Define to 1 if you have the <spandsp/version.h> header file. */
#define HAVE_SPANDSP_VERSION_H 1

/* Define to 1 if you have the `sqrt' function. */
#define HAVE_SQRT 1

/* Define to 1 if `stat' has the bug that it succeeds when given the
    zero-length file name argument. */
/* #undef HAVE_STAT_EMPTY_STRING_BUG */

/* Define to 1 if stdbool.h conforms to C99. */
#define HAVE_STDBOOL_H 1

/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1

/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1

/* Define to 1 if you have the `strcasecmp' function. */
#define HAVE_STRCASECMP 1

/* Define to 1 if you have the `strchr' function. */
#define HAVE_STRCHR 1

/* Define to 1 if you have the `strcoll' function and it is properly 
defined.
    */
#define HAVE_STRCOLL 1

/* Define to 1 if you have the `strcspn' function. */
#define HAVE_STRCSPN 1

/* Define to 1 if you have the `strdup' function. */
#define HAVE_STRDUP 1

/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1

/* Define to 1 if you have the `strerror_r' function. */
#define HAVE_STRERROR_R 1

/* Define to 1 if you have the `strftime' function. */
#define HAVE_STRFTIME 1

/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1

/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1

/* Define to 1 if you have the `strncasecmp' function. */
#define HAVE_STRNCASECMP 1

/* Define to 1 if you have the `strndup' function. */
/* #undef HAVE_STRNDUP */

/* Define to 1 if you have the `strrchr' function. */
#define HAVE_STRRCHR 1

/* Define to 1 if you have the `strsep' function. */
/* #undef HAVE_STRSEP */

/* Define to 1 if you have the `strspn' function. */
#define HAVE_STRSPN 1

/* Define to 1 if you have the `strstr' function. */
#define HAVE_STRSTR 1

/* Define to 1 if you have the `strtol' function. */
#define HAVE_STRTOL 1

/* Define to 1 if you have the `strtoq' function. */
/* #undef HAVE_STRTOQ */

/* Define to 1 if `st_blksize' is member of `struct stat'. */
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1

/* Define to 1 if `tm_zone' is member of `struct tm'. */
/* #undef HAVE_STRUCT_TM_TM_ZONE */

/* Define to 1 if the system has the type `struct zt_radio_stat'. */
/* #undef HAVE_STRUCT_ZT_RADIO_STAT */

/* Define to 1 if you have the <sys/capability.h> header file. */
/* #undef HAVE_SYS_CAPABILITY_H */

/* Define to 1 if you have the <sys/dir.h> header file, and it defines 
`DIR'.
    */
/* #undef HAVE_SYS_DIR_H */

/* Define to 1 if you have the <sys/ndir.h> header file, and it defines 
`DIR'.
    */
/* #undef HAVE_SYS_NDIR_H */

/* Define to 1 if you have the <sys/select.h> header file. */
#define HAVE_SYS_SELECT_H 1

/* Define to 1 if you have the <sys/socket.h> header file. */
#define HAVE_SYS_SOCKET_H 1

/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1

/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1

/* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
#define HAVE_SYS_WAIT_H 1

/* Define to 1 if you have the <tiffio.h> header file. */
#define HAVE_TIFFIO_H 1

/* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use
    `HAVE_STRUCT_TM_TM_ZONE' instead. */
/* #undef HAVE_TM_ZONE */

/* Define to 1 if you have the <tonezone.h> header file. */
/* #undef HAVE_TONEZONE_H */

/* Define to 1 if you don't have `tm_zone' but do have the external array
    `tzname'. */
#define HAVE_TZNAME 1

/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1

/* Define to 1 if you have the `unsetenv' function. */
#define HAVE_UNSETENV 1

/* Define to 1 if you have the `utime' function. */
#define HAVE_UTIME 1

/* Define to 1 if you have the <utime.h> header file. */
#define HAVE_UTIME_H 1

/* Define to 1 if `utime(file, NULL)' sets file's timestamp to the 
present. */
#define HAVE_UTIME_NULL 1

/* Define to 1 if you have the `vasprintf' function. */
/* #undef HAVE_VASPRINTF */

/* Define to 1 if you have the `vfork' function. */
#define HAVE_VFORK 1

/* Define to 1 if you have the <vfork.h> header file. */
/* #undef HAVE_VFORK_H */

/* Define to 1 if you have the <visdn/visdn.h> header file. */
/* #undef HAVE_VISDN_VISDN_H */

/* Define to 1 if you have the `vprintf' function. */
#define HAVE_VPRINTF 1

/* Define to 1 if `fork' works. */
#define HAVE_WORKING_FORK 1

/* Define to 1 if `vfork' works. */
#define HAVE_WORKING_VFORK 1

/* Define to 1 if you have the <zaptel.h> header file. */
/* #undef HAVE_ZAPTEL_H */

/* Define to 1 if you have the <zaptel/tonezone.h> header file. */
/* #undef HAVE_ZAPTEL_TONEZONE_H */

/* Define to 1 if you have the <zaptel/zaptel.h> header file. */
/* #undef HAVE_ZAPTEL_ZAPTEL_H */

/* Define to 1 if the system has the type `_Bool'. */
#define HAVE__BOOL 1

/* Enable IAX trunking feature */
/* #undef IAX_TRUNKING */

/* cygwin detection does not work for that, anybody has an idea ? */
/* #undef INET6_ADDRSTRLEN */

/* cygwin detection does not work for that, anybody has an idea ? */
/* #undef INET_ADDRSTRLEN */

/* Low memory support. */
/* #undef LOW_MEMORY */

/* Define to 1 if `lstat' dereferences a symlink specified with a trailing
    slash. */
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1

/* Define to 1 if your C compiler doesn't accept -c and -o together. */
/* #undef NO_MINUS_C_MINUS_O */

/* Define if OSF1 */
/* #undef OSF1 */

/* Name of package */
#define PACKAGE "CallWeaver"

/* Define to the address where bug reports for this package should be 
sent. */
#define PACKAGE_BUGREPORT "[EMAIL PROTECTED]"

/* Define to the full name of this package. */
#define PACKAGE_NAME "CallWeaver"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING "CallWeaver svn-trunk"

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "callweaver"

/* Define to the version of this package. */
#define PACKAGE_VERSION "svn-trunk"

/* Build with profiling support. */
/* #undef PROFILING */

/* Define as the return type of signal handlers (`int' or `void'). */
#define RETSIGTYPE void

/* Define to the type of arg 1 for `select'. */
#define SELECT_TYPE_ARG1 int

/* Define to the type of args 2, 3 and 4 for `select'. */
#define SELECT_TYPE_ARG234 (fd_set *)

/* Define to the type of arg 5 for `select'. */
#define SELECT_TYPE_ARG5 (struct timeval *)

/* needed for optional declarations to be visible */
#define SOLARIS 1

/* Enable generation of stack backtraces. */
/* #undef STACK_BACKTRACES */

/* If using the C implementation of alloca, define if you know the
    direction of stack growth for your system; otherwise it will be
    automatically deduced at runtime.
         STACK_DIRECTION > 0 => grows toward higher addresses
         STACK_DIRECTION < 0 => grows toward lower addresses
         STACK_DIRECTION = 0 => direction of growth unknown */
/* #undef STACK_DIRECTION */

/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1

/* Define to 1 if strerror_r returns char *. */
/* #undef STRERROR_R_CHAR_P */

/* Unknown Subversion because it's not on this machine. */
#define SVN_VERSION ""

/* chan_sip T.38 support */
#define T38_SUPPORT 1

/* Define to 1 if your <sys/time.h> declares `struct tm'. */
/* #undef TM_IN_SYS_TIME */

/* Location of tonezone.h header file */
#define TONEZONE_H

/* Build with frame tracing. */
/* #undef TRACE_FRAMES */

/* yes we have OSP */
/* #undef TRANSNEXUS_OSP */

/* forcing generic timers. */
/* #undef USE_GENERIC_TIMERS */

/* Build with valgrind information. */
/* #undef VALGRIND */

/* Version number of package */
#define VERSION "svn-trunk"

/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
    `char[]'. */
#define YYTEXT_POINTER 1

/* Location of zaptel.h header file */
#define ZAPTEL_H

/* Define to 1 if on AIX 3.
    System headers sometimes define this.
    We just want to avoid a redefinition error message.  */
#ifndef _ALL_SOURCE
/* # undef _ALL_SOURCE */
#endif

/* Enable GNU extensions on systems that have them.  */
#ifndef _GNU_SOURCE
# define _GNU_SOURCE 1
#endif

/* Define to 1 if on MINIX. */
/* #undef _MINIX */

/* Define to 2 if the system does not provide POSIX.1 features except with
    this defined. */
/* #undef _POSIX_1_SOURCE */

/* Define to 1 if you need to in order for `stat' and other things to 
work. */
/* #undef _POSIX_SOURCE */

/* Heya, it's windows */
/* #undef _WIN32_WINNT */

/* for stupid ast-db1 */
#define __BEGIN_DECLS

/* for the places where it is not defined */
#define __BIG_ENDIAN 4321

/* Little Endian */
#define __BYTE_ORDER __LITTLE_ENDIAN

/* make sure __CYGWIN__ is defined ... */
/* #undef __CYGWIN__ */

/* Define if Darwin */
/* #undef __Darwin__ */

/* for stupid ast-db1 */
#define __END_DECLS

/* Enable extensions on Solaris.  */
#ifndef __EXTENSIONS__
# define __EXTENSIONS__ 1
#endif
#ifndef _POSIX_PTHREAD_SEMANTICS
# define _POSIX_PTHREAD_SEMANTICS 1
#endif
#ifndef _TANDEM_SOURCE
# define _TANDEM_SOURCE 1
#endif

/* for the places where it is not defined */
#define __LITTLE_ENDIAN 1234

/* We want malloc debug ... */
/* #undef __OPBX_DEBUG_MALLOC */

/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */

/* Define to `int' if <sys/types.h> doesn't define. */
/* #undef gid_t */

/* Define to `__inline__' or `__inline' if that's what the C compiler
    calls it, or to nothing if 'inline' is not supported under any name.  */
#ifndef __cplusplus
/* #undef inline */
#endif

/* Define to rpl_malloc if the replacement function should be used. */
/* #undef malloc */

/* Define to `int' if <sys/types.h> does not define. */
/* #undef mode_t */

/* Define to `long int' if <sys/types.h> does not define. */
/* #undef off_t */

/* Define to `int' if <sys/types.h> does not define. */
/* #undef pid_t */

/* Define to rpl_realloc if the replacement function should be used. */
/* #undef realloc */

/* Define to `unsigned int' if <sys/types.h> does not define. */
/* #undef size_t */

/* Define to `uint16_t' if <sys/types.h> does not define. */
#define u_int16_t uint16_t

/* Define to `uint32_t' if <sys/types.h> does not define. */
#define u_int32_t uint32_t

/* Define to `uint8_t' if <sys/types.h> does not define. */
#define u_int8_t uint8_t

/* Define to `int' if <sys/types.h> doesn't define. */
/* #undef uid_t */

/* Define as `fork' if `vfork' does not work. */
/* #undef vfork */

/* Define to empty if the keyword `volatile' does not work. Warning: valid
    code using `volatile' can become incorrect without. Disable with 
care. */
/* #undef volatile */
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users

Reply via email to