httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20338] - Compile Problem with signal.c on Tru64 4.0G
Date Tue, 03 Jun 2003 03:21:43 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20338>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20338

Compile Problem with signal.c on Tru64 4.0G





------- Additional Comments From westphal@rodney.govt.nz  2003-06-03 03:21 -------
A1:
/bin/ksh /usr/users/westphal/utils/httpd-2.0.46/srclib/apr/libtool --silent --
mode=compile gcc -g -O2   -DHAVE_CONFIG_H -DOSF1   -I../../include -
I../../include/arch/unix  -c signals.c && touch signals.lo
signals.c:414: macro `sigwait' used with just one arg


A2:  (from config.log)
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
CPPFLAGS=''
EXTRA_CPPFLAGS=' -DOSF1'
NOTEST_CPPFLAGS='-DAP_HAVE_DESIGNATED_INITIALIZER'


A3:
My machine has two C compilers, GCC and "Digital UNIX Compiler Driver 3.11
Compaq C V6.1-123 on Digital UNIX V4.0G (Rev. 1530)"

I set environment vars to use one or the other.  Here are the sections of 
signal.h that you asked about.  The first is for GCC, the second is the Digital 
Compiler.

./build/gcc/include/signal.h 
---
#if defined(_REENTRANT) || defined(_THREAD_SAFE)
# if defined(_POSIX_C_SOURCE) \
        && (_POSIX_C_SOURCE >= 199506L) \
        && !defined(_LIBC_POLLUTION_H_)
#  ifdef __DECC
#   pragma extern_prefix "_P"
#  else
#define sigwait _Psigwait
#  endif
extern int __P_C(sigwait) __((const sigset_t *set, int *sig));
#  ifdef __DECC
#   pragma extern_prefix ""
#  endif
# else
extern int sigwait __((sigset_t *));
# endif /* _POSIX_C_SOURCE >= 199506L */
#endif  /* _REENTRANT || _THREAD_SAFE */
---
/usr/include/signal.h
---
#if defined(_POSIX_C_SOURCE) \
        && (_POSIX_C_SOURCE >= 199506L) \
        && !defined(_V40_OBJ_COMPAT)
# ifdef __DECC
#  pragma extern_prefix "_P"
# else
#  define sigwait(__a,__b) _Psigwait(__a,__b)
# endif
extern int __P_C(sigwait) __((const sigset_t *set, int *sig));
# ifdef __DECC
#  pragma extern_prefix ""
# endif
#else
# ifdef _OSF_SOURCE
extern int sigwait __((sigset_t *));
# endif /* _OSF_SOURCE */
#endif /* _POSIX_C_SOURCE >= 199506L */
---

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message