>Number:         520
>Category:       os-hpux
>Synopsis:       Compile scripts fail on HPUX 10.20.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache (Apache HTTP Project)
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Thu May  1 10:20:01 1997
>Originator:     [EMAIL PROTECTED]
>Organization:
apache
>Release:        1.2b10
>Environment:
HPUX 10.20 with barebones, vendor supplied ANSI-C compiler - Compiler was 
sufficient, however, to compile Perl 5.003 successfully so I so have confidence
in it.
>Description:
I think I have found a bug in the most recent compile script.
I can't compile Apache 1.2b10 on my HP-UX 10.20.

During my "make" At line 544 of conf.h ...

int ap_snprintf(char *buf, size_t len, const char *format,...);
int ap_vsnprintf(char *buf, size_t len, const char *format, va_list ap);

... I get the following errors:

(Bundled) cc: "conf.h", line 544: error 1000: Unexpected symbol: "size_t".
(Bundled) cc: "conf.h", line 544: warning 5: "const" will become a keyword.
(Bundled) cc: "conf.h", line 544: error 1000: Unexpected symbol: "char".
(Bundled) cc: "conf.h", line 544: error 1000: Unexpected symbol: "...".
(Bundled) cc: "conf.h", line 545: warning 5: "const" will become a keyword.
(Bundled) cc: "conf.h", line 545: error 1000: Unexpected symbol: "const".
(Bundled) cc: "conf.h", line 545: error 1000: Unexpected symbol: "va_list".
(Bundled) cc: "/usr/include/sys/dirent.h", line 32: error 1000: Unexpected symbo
l: "ino_t".
(Bundled) cc: "conf.h", line 646: error 1000: Unexpected symbol: "Sigfunc".
(Bundled) cc: "alloc.h", line 77: error 1000: Unexpected symbol: "*".
(Bundled) cc: error 2017: Cannot recover from earlier errors, terminating.
*** Error exit code 1

Here is a larger excerpt of conf.h surrounding the failing lines.

#include <sys/types.h>
#include <stdarg.h>
/*
 * We use snprintf() to avoid overflows, but we include
 * our own version (ap_snprintf). Allow for people to use their
 * snprintf() if they want
 */
#ifdef HAVE_SNPRINTF
#define ap_snprintf     snprintf
#define ap_vsnprintf    vsnprintf
#else
int ap_snprintf(char *buf, size_t len, const char *format,...);
int ap_vsnprintf(char *buf, size_t len, const char *format, va_list ap);
#endif


I am running everything in Configuration by the defaults except that my ANSI-C 
compiler
does not support optimization (wierd but cheap).

I don't program in C but I have reviewed the PORTING guide and still can't 
figure
out whether this is a legitimate bug in the INSTALL procs.

Also from conf.h, here are the HP defaults.

#elif defined(HPUX) || defined(HPUX10)
#define HAVE_SYS_RESOURCE_H
#undef HAVE_GMTOFF
#define NO_KILLPG
#undef NO_SETSID
#ifndef _HPUX_SOURCE
#define _HPUX_SOURCE
#endif
#define JMP_BUF sigjmp_buf
#define HAVE_SHMGET
#ifndef HPUX10
#define SELECT_NEEDS_CAST
typedef int rlim_t;
#endif

Any help would be greatly appreciated!
>How-To-Repeat:
Full description is pretty complete. email me at [EMAIL PROTECTED] if you 
want to try a quick fix and I will let you know how it ran on this platform.
>Fix:
Minor C src alterations required I think. If I knew C better, I might have been
able to hack out a solution but I can't easily follow the assumptions the 
programmer made
>Audit-Trail:
>Unformatted:


Reply via email to