Return-Path: Delivered-To: apmail-httpd-apreq-dev-archive@www.apache.org Received: (qmail 54013 invoked from network); 14 Sep 2004 23:51:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Sep 2004 23:51:26 -0000 Received: (qmail 58348 invoked by uid 500); 14 Sep 2004 23:51:25 -0000 Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 58324 invoked by uid 500); 14 Sep 2004 23:51:25 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 58302 invoked by uid 99); 14 Sep 2004 23:51:25 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of joe@mail.sunstarsys.com designates 64.139.134.58 as permitted sender) Received: from [64.139.134.58] (HELO mail.sunstarsys.com) (64.139.134.58) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 14 Sep 2004 16:51:23 -0700 Received: from gemini.sunstarsys.com (mumonkan.sunstarsys.com [67.34.76.42]) by mail.sunstarsys.com (8.12.3/8.12.3/Debian-6.6) with ESMTP id i8ENpKif006315 for ; Tue, 14 Sep 2004 19:51:21 -0400 Received: from gemini.sunstarsys.com (joe@localhost.localdomain [127.0.0.1]) by gemini.sunstarsys.com (8.12.9/8.12.9/Debian-3.bam.1) with ESMTP id i8ENpEMb031986 for ; Tue, 14 Sep 2004 19:51:15 -0400 Received: (from joe@localhost) by gemini.sunstarsys.com (8.12.9/8.12.9/Debian-3.bam.1) id i8ENp9JG031983; Tue, 14 Sep 2004 19:51:09 -0400 To: apreq-dev@httpd.apache.org Subject: FWD: Incorrect initialization on HP-UX 64bit with ansi C (not gcc) compiler. From: Joe Schaefer Date: 14 Sep 2004 19:51:09 -0400 Message-ID: <87d60o76ky.fsf@gemini.sunstarsys.com> Lines: 154 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --=-=-= Yesterday I received this from rt.cpan.org. The compiler in question apparently doesn't like the variable initializers in this assignment: apr_array_header_t arr = { pool, sizeof(struct iovec), 0, APREQ_NELTS, (char *)vec }; It's easy to code around that by doing the assignments one at a time. However I'm not sure the compiler in question will like the similar initialization in the apreq_xs_tables.h macros: struct apreq_xs_do_arg d = { NULL, NULL, NULL, NULL, 0, aTHX }; I'll try to fix that as well, but I'm not sure it will still compile w/o ithreads. --=-=-= Content-Type: message/rfc822 Content-Disposition: inline Subject: [cpan #7635] libapreq2-2.04-dev: "apreq_parsers.c", line 121: error 1521: Incorrect initialization on HP-UX 64bit with ansi C (not gcc) compiler. From: "Guest via RT" Reply-To: bug-libapreq2@rt.cpan.org In-Reply-To: Message-ID: RT-Ticket: cpan #7635 Managed-by: RT 2.0.15 (http://bestpractical.com/rt/) RT-Originator: Date: Mon, 13 Sep 2004 21:46:54 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii This message about libapreq2 was sent to you by guest <> via rt.cpan.org Full context and any attached attachments can be found at: Hi! This bug is actually for libapreq2. both Apache2 and mod_perl2 built and work fine, however, I can't build Apache::Request (see below). Sorry if this is incorrect Product/Component, but I was not able to locate libapreq2 in the list. I am trying to make Apache::Request (libapreq2-2.04-dev) and getting the following: /opt/libapreq2-2.04-dev > make No suffix list. Making all in src /bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I. - I/opt/apache2/include -I/opt/apache2/include -Aa -D__STDC_EXT__ - D_HPUX_SOURCE -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 +DA2.0W - DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -Ae -D_HPUX_SOURCE - Wl,+vnocompatwarnings +DD64 +DA2.0W -D_LARGEFILE_SOURCE - D_FILE_OFFSET_BITS=64 -c apreq_parsers.c cc -DHAVE_CONFIG_H -I. -I. -I. -I/opt/apache2/include -I/opt/apache2/include - Aa -D__STDC_EXT__ -D_HPUX_SOURCE -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 +DA2.0W -DHPUX11 -D_REENTRANT -D_XOPEN_SOURCE_EXTENDED -Ae - D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 +DA2.0W -D_LARGEFILE_SOURCE - D_FILE_OFFSET_BITS=64 -c apreq_parsers.c +Z -DPIC -o .libs/apreq_parsers.o cc: "apreq_parsers.c", line 121: error 1521: Incorrect initialization. cc: "apreq_parsers.c", line 122: error 1521: Incorrect initialization. *** Error exit code 1 Stop. *** Error exit code 1 Stop. Here is what my system is (HP-UX 64-bit everything): HP-UX B.11.00 A 9000/800 281894381 two-user license perl -V Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration: Platform: osname=hpux, osvers=11.00, archname=PA-RISC2.0-LP64 uname='hp-ux firehawk b.11.00 a 9000800 281894381 two-user license ' config_args='-de -Dprefix=/opt/perl -Duse64bitall -A prepend:libswanted=cl pthread ' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=define use64bitall=define uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags =' -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ', optimize='+O2 +Onolimit', cppflags='-Aa -D__STDC_EXT__ -D_HPUX_SOURCE -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64' ccversion='A.11.01.25171.GP', gccversion='', gccosandvers='' intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=87654321 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16 ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='/usr/bin/ld', ldflags =' +DD64 -L/usr/local/lib -L/lib/pa20_64' libpth=/usr/local/lib /lib/pa20_64 /lib /usr/lib /usr/ccs/lib libs=-lcl -lpthread -lnsl -ldl -ldld -lm -lsec -lc perllibs=-lcl -lpthread -lnsl -ldl -ldld -lm -lsec -lc libc=/lib/pa20_64/libc.sl, so=sl, useshrplib=false, libperl=libperl.a gnulibc_version='' Dynamic Linking: dlsrc=dl_hpux.xs, dlext=sl, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-B,deferred ' cccdlflags='+Z', lddlflags='-b +vnocompatwarnings -L/usr/local/lib -L/lib/pa20_64' Characteristics of this binary (from libperl): Compile-time options: USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES Built under hpux Compiled at Apr 5 2004 14:24:13 @INC: /opt/perl/lib/5.8.3/PA-RISC2.0-LP64 /opt/perl/lib/5.8.3 /opt/perl/lib/site_perl/5.8.3/PA-RISC2.0-LP64 /opt/perl/lib/site_perl/5.8.3 /opt/perl/lib/site_perl . Apache2 (I only have Apache2, no 1, nothing to be compatible with): export LDFLAGS=' -lcl -lpthread -L/usr/local/lib -L/lib/pa20_64 ' export CPPFLAGS=' -Aa -D__STDC_EXT__ -D_HPUX_SOURCE -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 +DA2.0W ' export CFLAGS=' -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 +DA2.0W -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ' #./configure --prefix=/opt/apache2 --with-mpm=prefork --with-port=77 --with-perl=/opt/perl/bin/perl Server version: Apache/2.0.50 Server built: Aug 13 2004 12:57:17 (this was built also with 64-bit) using all the proper flags: export LDFLAGS=' -lcl -lpthread -L/usr/local/lib -L/lib/pa20_64 ' export CPPFLAGS=' -Aa -D__STDC_EXT__ -D_HPUX_SOURCE -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 +DA2.0W ' export CFLAGS=' -Ae -D_HPUX_SOURCE -Wl,+vnocompatwarnings +DD64 +DA2.0W -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 ' I also have successfully built mod_perl-1.99_16 and was able to load it fine. Thanks. Kirill --=-=-= -- Joe Schaefer --=-=-=--