From owner-freebsd-ia64@FreeBSD.ORG Sun Apr 18 23:41:24 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1137F16A4CE for ; Sun, 18 Apr 2004 23:41:24 -0700 (PDT) Received: from sngrel4.hp.com (sngrel4.hp.com [192.6.86.110]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F2A343D55 for ; Sun, 18 Apr 2004 23:41:23 -0700 (PDT) (envelope-from dongin.shin@hp.com) Received: from sgpexg12.asiapacific.cpqcorp.net (sgpexg12.asiapacific.cpqcorp.net [16.149.1.59]) by sngrel4.hp.com (Postfix) with ESMTP id A84C949A for ; Mon, 19 Apr 2004 14:41:21 +0800 (SST) Received: from korexc02.asiapacific.cpqcorp.net ([16.166.194.2]) by sgpexg12.asiapacific.cpqcorp.net with Microsoft SMTPSVC(6.0.3790.0); Mon, 19 Apr 2004 14:41:19 +0800 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="ks_c_5601-1987" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.6980.32 Date: Mon, 19 Apr 2004 15:41:17 +0900 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: @gprel relocation against dynamic symbol php_ini_opened_path Thread-Index: AcQl2VDfidCBa05eQcmJyqnzVUd5Hw== From: "Shin, Dong-In" To: X-OriginalArrivalTime: 19 Apr 2004 06:41:19.0504 (UTC) FILETIME=[52797900:01C425D9] Subject: @gprel relocation against dynamic symbol php_ini_opened_path X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2004 06:41:24 -0000 Hello, We have an error when we compile apache. You can see environment and error log from the following: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Environment : =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RX1600 IA64 Server Redhat AS 2.1 PHP V4.3.6 Apache V1.3.29 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Compiled Error of Apache : =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D gcc -c -I../../os/unix -I../../include -DLINUX=3D22 -fpic -DSHARED_CORE = `../../apaci` -DSHARED_MODULE mod_setenvif.c && mv mod_setenvif.o = mod_setenvif.lo gcc -shared -o mod_setenvif.so mod_setenvif.lo=20 <=3D=3D=3D src/modules/standard =3D=3D=3D> src/modules/php4 gcc -c -I../../os/unix -I../../include -DLINUX=3D22 -fpic -DSHARED_CORE = `../../apaci` -DSHARED_MODULE -DLINUX=3D22 - I/usr/local/src/php-4.3.6/main -I/usr/local/src/php-4.3.6/Zend = -I/usr/local/src/php-4.3.6/TSRM -I/usr/local/src/php-4.3.6 = -I/usr/local/src/php-4.3.6/sapi/apache -I/usr/local/src/php-4.3.6/main = -I/usr/local/src/php-4.3.6/Zend -I/usr/local/src/php-4.3.6/TSRM = mod_php4.c && mv mod_php4.o mod_php4.so-o rm -f libphp4.so gcc -shared -o libphp4.so mod_php4.so-o libmodphp4.a = -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/local/mysql/lib/mysql = -rdynamic -L/usr/local/lib -L/usr/local/mysql/lib/mysql -Lmodules/php4 = -L../modules/php4 -L../../modules/php4 -lmodphp4 -rdynamic = -L/usr/local/lib -L/usr/local/mysql/lib/mysql -lcrypt -lcrypt = -lmysqlclient -lgd -lfreetype -lresolv -lm -ldl -lnsl -lcrypt -lcrypt = -lm -lcrypt -lexpat -ldl -Wl,-rpath,/usr/local/lib = -Wl,-rpath,/usr/local/mysql/lib/mysql -rdynamic -L/usr/local/lib = -L/usr/local/mysql/lib/mysql -Lmodules/php4 -L../modules/php4 = -L../../modules/php4 -lmodphp4 -rdynamic -L/usr/local/lib = -L/usr/local/mysql/lib/mysql -lcrypt -lcrypt -lmysqlclient -lgd = -lfreetype -lresolv -lm -ldl -lnsl -lcrypt -lcrypt -lm -lcrypt=20 /usr/bin/ld: php_ini.o: @gprel relocation against dynamic symbol = php_ini_opened_path /usr/bin/ld: php_ini.o: @gprel relocation against dynamic symbol = php_ini_opened_path /usr/bin/ld: php_ini.o: @gprel relocation against dynamic symbol = php_ini_opened_path /usr/bin/ld: php_ini.o: @gprel relocation against dynamic symbol = php_ini_opened_path /usr/bin/ld: php_ini.o: @gprel relocation against dynamic symbol = php_ini_opened_path /usr/bin/ld: php_ini.o: @gprel relocation against dynamic symbol = php_ini_opened_path /usr/bin/ld: php_ini.o: @gprel relocation against dynamic symbol = php_ini_scanned_files collect2: ld returned 1 exit status make[4]: *** [libphp4.so] Error 1 make[3]: *** [all] Error 1 make[2]: *** [subdirs] Error 1 make[2]: Leaving directory `/usr/local/src/apache_1.3.29/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/usr/local/src/apache_1.3.29' make: *** [build] Error 2 =3D=3D=3D=3D=3D=3D=3D=3D=3D Question : =3D=3D=3D=3D=3D=3D=3D=3D What are the solution and the cause ? Dong-In Shin HPS/ESC/BL Engineer Hewlet Packard Korea. (Tel ) 822-2199-1546 (Fax) 822-2199-4991 dongin.shin@hp.com From owner-freebsd-ia64@FreeBSD.ORG Mon Apr 19 00:04:59 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5933116A4CF for ; Mon, 19 Apr 2004 00:04:59 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23CF543D2F for ; Mon, 19 Apr 2004 00:04:59 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.11/8.12.11) with ESMTP id i3J74xVY087038; Mon, 19 Apr 2004 00:04:59 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) i3J74wXY069265; Mon, 19 Apr 2004 00:04:58 -0700 (PDT) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.11/8.12.11/Submit) id i3J74ww3069264; Mon, 19 Apr 2004 00:04:58 -0700 (PDT) (envelope-from marcel) Date: Mon, 19 Apr 2004 00:04:58 -0700 From: Marcel Moolenaar To: "Shin, Dong-In" Message-ID: <20040419070458.GB69199@dhcp01.pn.xcllnt.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: freebsd-ia64@freebsd.org Subject: Re: @gprel relocation against dynamic symbol php_ini_opened_path X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2004 07:04:59 -0000 On Mon, Apr 19, 2004 at 03:41:17PM +0900, Shin, Dong-In wrote: > > ============ > Environment : > =========== > RX1600 IA64 Server > Redhat AS 2.1 Why post this to a FreeBSD mailing list? > ========= > Question : > ======== > > What are the solution and the cause ? Trivial: you use non-PIC code in a shared library. Compile with -fPIC. Please do not use this mailing list for non-FreeBSD questions. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net From owner-freebsd-ia64@FreeBSD.ORG Mon Apr 19 09:31:30 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C38CD16A4CE; Mon, 19 Apr 2004 09:31:30 -0700 (PDT) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 757B843D2F; Mon, 19 Apr 2004 09:31:30 -0700 (PDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id D0E567303A; Mon, 19 Apr 2004 12:31:29 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20040419163129.D0E567303A@freebsd-current.sentex.ca> Date: Mon, 19 Apr 2004 12:31:29 -0400 (EDT) Subject: [current tinderbox] failure on ia64/ia64 X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Apr 2004 16:31:31 -0000 TB --- 2004-04-19 11:07:02 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2004-04-19 11:07:02 - starting CURRENT tinderbox run for ia64/ia64 TB --- 2004-04-19 11:07:02 - checking out the source tree TB --- 2004-04-19 11:07:02 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64 TB --- 2004-04-19 11:07:02 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2004-04-19 11:18:09 - building world (CFLAGS=-O2 -pipe) TB --- 2004-04-19 11:18:09 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64/src TB --- 2004-04-19 11:18:09 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything TB --- 2004-04-19 16:27:08 - building generic kernel (COPTFLAGS=-O2 -pipe) TB --- 2004-04-19 16:27:08 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64/src TB --- 2004-04-19 16:27:08 - /usr/bin/make buildkernel KERNCONF=GENERIC >>> Kernel build for GENERIC started on Mon Apr 19 16:27:09 GMT 2004 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies [...] awk -f /other/tinderbox/CURRENT/ia64/ia64/src/sys/tools/makeobjops.awk /other/tinderbox/CURRENT/ia64/ia64/src/sys/dev/usb/usb_if.m -h awk -f /other/tinderbox/CURRENT/ia64/ia64/src/sys/tools/makeobjops.awk /other/tinderbox/CURRENT/ia64/ia64/src/sys/isa/isa_if.m -h awk -f /other/tinderbox/CURRENT/ia64/ia64/src/sys/tools/makeobjops.awk /other/tinderbox/CURRENT/ia64/ia64/src/sys/ia64/ia64/clock_if.m -h if [ -f .olddep ]; then mv .olddep .depend; fi rm -f .newdep /usr/bin/make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES -V GEN_M_CFILES | MKDEP_CPP="cc -E" CC="cc" xargs mkdep -a -f .newdep -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/other/tinderbox/CURRENT/ia64/ia64/src/sys -I/other/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/acpica -I/other/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ipfilter -I/other/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/pf -I/other/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/ath -I/other/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/ath/freebsd -I/other/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ngatm -I/other/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ia64/libuwx/src -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -mconstant-gp -ffixed-r13 -mfixed-range=f32-f127 -mno-sdata -ffreestanding /other/tinderbox/CURRENT/ia64/ia64/src/sys/cam/scsi/scsi_da.c:33:20: opt_da.h: No such file or directory mkdep: compile failed *** Error code 1 Stop in /other/tinderbox/CURRENT/ia64/ia64/obj/ia64/other/tinderbox/CURRENT/ia64/ia64/src/sys/GENERIC. *** Error code 1 Stop in /other/tinderbox/CURRENT/ia64/ia64/obj/ia64/other/tinderbox/CURRENT/ia64/ia64/src/sys/GENERIC. *** Error code 1 Stop in /other/tinderbox/CURRENT/ia64/ia64/src. *** Error code 1 Stop in /other/tinderbox/CURRENT/ia64/ia64/src. TB --- 2004-04-19 16:31:29 - WARNING: /usr/bin/make returned exit code 1 TB --- 2004-04-19 16:31:29 - ERROR: failed to build generic kernel TB --- 2004-04-19 16:31:29 - tinderbox aborted From owner-freebsd-ia64@FreeBSD.ORG Tue Apr 20 22:36:12 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4467316A4CE; Tue, 20 Apr 2004 22:36:12 -0700 (PDT) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A2CE43D5F; Tue, 20 Apr 2004 22:36:12 -0700 (PDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 865207306D; Wed, 21 Apr 2004 01:36:11 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20040421053611.865207306D@freebsd-current.sentex.ca> Date: Wed, 21 Apr 2004 01:36:11 -0400 (EDT) Subject: [current tinderbox] failure on ia64/ia64 X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2004 05:36:12 -0000 From owner-freebsd-ia64@FreeBSD.ORG Wed Apr 21 02:33:40 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE58B16A4CE; Wed, 21 Apr 2004 02:33:40 -0700 (PDT) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 87BBC43D5E; Wed, 21 Apr 2004 02:33:40 -0700 (PDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id CFBAB7303A; Wed, 21 Apr 2004 05:33:39 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20040421093339.CFBAB7303A@freebsd-current.sentex.ca> Date: Wed, 21 Apr 2004 05:33:39 -0400 (EDT) Subject: [current tinderbox] failure on ia64/ia64 X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2004 09:33:41 -0000 TB --- 2004-04-21 08:19:24 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2004-04-21 08:19:24 - starting CURRENT tinderbox run for ia64/ia64 TB --- 2004-04-21 08:19:24 - checking out the source tree TB --- 2004-04-21 08:19:24 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64 TB --- 2004-04-21 08:19:24 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2004-04-21 08:26:00 - building world (CFLAGS=-O2 -pipe) TB --- 2004-04-21 08:26:00 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64/src TB --- 2004-04-21 08:26:00 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] cc -O2 -pipe -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/include -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/../../include -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/ia64 -D__DBINTERFACE_PRIVATE -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/../../contrib/gdtoa -DINET6 -I/other/tinderbox/CURRENT/ia64/ia64/obj/ia64/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc -DPOSIX_MISTAKE -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/net/res_data.c cc -O2 -pipe -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/include -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/../../include -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/ia64 -D__DBINTERFACE_PRIVATE -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/../../contrib/gdtoa -DINET6 -I/other/tinderbox/CURRENT/ia64/ia64/obj/ia64/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc -DPOSIX_MISTAKE -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/net/res_debug.c cc -O2 -pipe -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/include -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/../../include -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/ia64 -D__DBINTERFACE_PRIVATE -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/../../contrib/gdtoa -DINET6 -I/other/tinderbox/CURRENT/ia64/ia64/obj/ia64/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc -DPOSIX_MISTAKE -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/net/res_init.c cc -O2 -pipe -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/include -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/../../include -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/ia64 -D__DBINTERFACE_PRIVATE -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/../../contrib/gdtoa -DINET6 -I/other/tinderbox/CURRENT/ia64/ia64/obj/ia64/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc -DPOSIX_MISTAKE -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/net/res_mkquery.c cc -O2 -pipe -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/include -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/../../include -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/ia64 -D__DBINTERFACE_PRIVATE -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/../../contrib/gdtoa -DINET6 -I/other/tinderbox/CURRENT/ia64/ia64/obj/ia64/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc -DPOSIX_MISTAKE -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/net/res_mkupdate.c cc -O2 -pipe -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/include -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/../../include -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/ia64 -D__DBINTERFACE_PRIVATE -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/../../contrib/gdtoa -DINET6 -I/other/tinderbox/CURRENT/ia64/ia64/obj/ia64/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc -DPOSIX_MISTAKE -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/rpc -DYP -DHESIOD -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c /other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/net/res_query.c /other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/net/res_query.c: In function `__res_search': /other/tinderbox/CURRENT/ia64/ia64/src/lib/libc/net/res_query.c:196: warning: unused variable `hp' *** Error code 1 Stop in /other/tinderbox/CURRENT/ia64/ia64/src/lib/libc. *** Error code 1 Stop in /other/tinderbox/CURRENT/ia64/ia64/src/lib. *** Error code 1 Stop in /other/tinderbox/CURRENT/ia64/ia64/src. *** Error code 1 Stop in /other/tinderbox/CURRENT/ia64/ia64/src. *** Error code 1 Stop in /other/tinderbox/CURRENT/ia64/ia64/src. *** Error code 1 Stop in /other/tinderbox/CURRENT/ia64/ia64/src. TB --- 2004-04-21 09:33:39 - WARNING: /usr/bin/make returned exit code 1 TB --- 2004-04-21 09:33:39 - ERROR: failed to build world TB --- 2004-04-21 09:33:39 - tinderbox aborted From owner-freebsd-ia64@FreeBSD.ORG Wed Apr 21 08:51:31 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B77EC16A4CE for ; Wed, 21 Apr 2004 08:51:31 -0700 (PDT) Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3397743D58 for ; Wed, 21 Apr 2004 08:51:30 -0700 (PDT) (envelope-from netch@segfault.kiev.ua) Received: (from netch@localhost) by segfault.kiev.ua (8) id i3LFpR4p035075 for ia64@freebsd.org; Wed, 21 Apr 2004 18:51:27 +0300 (EEST) (envelope-from netch) Date: Wed, 21 Apr 2004 18:51:27 +0300 From: Valentin Nechayev To: ia64@freebsd.org Message-ID: <20040421155127.GS57650@netch.kiev.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-42: On Subject: va_list q X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2004 15:51:31 -0000 Hi, I was notified that maintained port (net/pppd23) can't be built on ia64. Failure message is: cc -O -pipe -g -I../include -DHAVE_PATHS_H -D_BITYPES -c utils.c utils.c: In function `vslprintf': utils.c:253: error: invalid use of non-lvalue array *** Error code 1 The code in question is: int vslprintf(buf, buflen, fmt, args) [...] #ifndef __powerpc__ > n = vslprintf(buf, buflen + 1, f, va_arg(args, va_list)); #else /* On the powerpc, a va_list is an array of 1 structure */ n = vslprintf(buf, buflen + 1, f, va_arg(args, void *)); #endif (I selected failed line with '>') va_arg() uses translation to pointer to specified type; this translation fails with message shown above. Can anybody say how can it be fixed, and whether shown powerpc hack is applicable to ia64 if it's good solution? -netch- From owner-freebsd-ia64@FreeBSD.ORG Wed Apr 21 09:53:08 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E95516A4CE for ; Wed, 21 Apr 2004 09:53:08 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id E682143D58 for ; Wed, 21 Apr 2004 09:53:07 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from ns1.xcllnt.net (localhost [127.0.0.1]) by ns1.xcllnt.net (8.12.11/8.12.11) with ESMTP id i3LGr7QN001045; Wed, 21 Apr 2004 09:53:07 -0700 (PDT) (envelope-from marcel@ns1.xcllnt.net) Received: (from marcel@localhost) by ns1.xcllnt.net (8.12.11/8.12.11/Submit) id i3LGr7HT001044; Wed, 21 Apr 2004 09:53:07 -0700 (PDT) (envelope-from marcel) Date: Wed, 21 Apr 2004 09:53:07 -0700 From: Marcel Moolenaar To: Valentin Nechayev Message-ID: <20040421165307.GB832@ns1.xcllnt.net> References: <20040421155127.GS57650@netch.kiev.ua> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="n8g4imXOkfNTN/H1" Content-Disposition: inline In-Reply-To: <20040421155127.GS57650@netch.kiev.ua> User-Agent: Mutt/1.5.5.1i cc: ia64@freebsd.org Subject: Re: va_list q X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Apr 2004 16:53:08 -0000 --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Apr 21, 2004 at 06:51:27PM +0300, Valentin Nechayev wrote: > > cc -O -pipe -g -I../include -DHAVE_PATHS_H -D_BITYPES -c utils.c > utils.c: In function `vslprintf': > utils.c:253: error: invalid use of non-lvalue array > *** Error code 1 > > The code in question is: > > int > vslprintf(buf, buflen, fmt, args) > [...] > #ifndef __powerpc__ > > n = vslprintf(buf, buflen + 1, f, va_arg(args, va_list)); > #else > /* On the powerpc, a va_list is an array of 1 structure */ > n = vslprintf(buf, buflen + 1, f, va_arg(args, void *)); > #endif > > (I selected failed line with '>') > > va_arg() uses translation to pointer to specified type; this translation > fails with message shown above. Can anybody say how can it be fixed, > and whether shown powerpc hack is applicable to ia64 if it's good solution? The use of va_arg(args, va_list) works on ia64 (FreeBSD, HP-UX and Linux). Given the limited context, I can only suggest that you try to create a temporary variable of type va_list and change the offending line to: va_list tmpvalist = va_arg(args, va_list); n = vslprintf(buf, buflen + 1, f, tmpvalist); This may make the compiler happy by giving it more type awareness. Attached a simple testcase that va_arg(ap, va_list) works. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="arg.c" #include #include int vf2(int count, va_list ap) { va_list val; int i, n; printf("%d ->", count); val = va_arg(ap, va_list); for (i = 0; i < count; i++) { n = va_arg(val, int); printf(" %d", n); } printf("\n"); return (0); } int f2(int count, ...) { va_list ap; int ret; va_start(ap, count); ret = vf2(count, ap); va_end(ap); return (ret); } int vf1(int count, va_list ap) { return (f2(count, ap)); } int f1(int count, ...) { va_list ap; int ret; va_start(ap, count); ret = vf1(count, ap); va_end(ap); return (ret); } int main() { return (f1(3, 1, 2, 3)); } --n8g4imXOkfNTN/H1-- From owner-freebsd-ia64@FreeBSD.ORG Wed Apr 21 21:16:29 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F12916A4CE; Wed, 21 Apr 2004 21:16:29 -0700 (PDT) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E14443D69; Wed, 21 Apr 2004 21:16:29 -0700 (PDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 802227303A; Thu, 22 Apr 2004 00:16:28 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20040422041628.802227303A@freebsd-current.sentex.ca> Date: Thu, 22 Apr 2004 00:16:28 -0400 (EDT) Subject: [current tinderbox] failure on ia64/ia64 X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2004 04:16:29 -0000 TB --- 2004-04-22 02:31:45 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2004-04-22 02:31:45 - starting CURRENT tinderbox run for ia64/ia64 TB --- 2004-04-22 02:31:45 - checking out the source tree TB --- 2004-04-22 02:31:45 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64 TB --- 2004-04-22 02:31:45 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2004-04-22 02:40:36 - building world (CFLAGS=-O2 -pipe) TB --- 2004-04-22 02:40:36 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64/src TB --- 2004-04-22 02:40:36 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything TB --- 2004-04-22 04:15:30 - building generic kernel (COPTFLAGS=-O2 -pipe) TB --- 2004-04-22 04:15:30 - cd /home/tinderbox/sandbox/CURRENT/ia64/ia64/src TB --- 2004-04-22 04:15:30 - /usr/bin/make buildkernel KERNCONF=GENERIC >>> Kernel build for GENERIC started on Thu Apr 22 04:15:30 GMT 2004 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies [...] awk -f /other/tinderbox/CURRENT/ia64/ia64/src/sys/tools/makeobjops.awk /other/tinderbox/CURRENT/ia64/ia64/src/sys/dev/usb/usb_if.m -h awk -f /other/tinderbox/CURRENT/ia64/ia64/src/sys/tools/makeobjops.awk /other/tinderbox/CURRENT/ia64/ia64/src/sys/isa/isa_if.m -h awk -f /other/tinderbox/CURRENT/ia64/ia64/src/sys/tools/makeobjops.awk /other/tinderbox/CURRENT/ia64/ia64/src/sys/ia64/ia64/clock_if.m -h if [ -f .olddep ]; then mv .olddep .depend; fi rm -f .newdep /usr/bin/make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES -V GEN_M_CFILES | MKDEP_CPP="cc -E" CC="cc" xargs mkdep -a -f .newdep -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/other/tinderbox/CURRENT/ia64/ia64/src/sys -I/other/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/acpica -I/other/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ipfilter -I/other/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/pf -I/other/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/ath -I/other/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/dev/ath/freebsd -I/other/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ngatm -I/other/tinderbox/CURRENT/ia64/ia64/src/sys/contrib/ia64/libuwx/src -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -mconstant-gp -ffixed-r13 -mfixed-range=f32-f127 -mno-sdata -ffreestanding /other/tinderbox/CURRENT/ia64/ia64/src/sys/dev/asr/asr.c:270:28: opt_asr.h: No such file or directory mkdep: compile failed *** Error code 1 Stop in /other/tinderbox/CURRENT/ia64/ia64/obj/ia64/other/tinderbox/CURRENT/ia64/ia64/src/sys/GENERIC. *** Error code 1 Stop in /other/tinderbox/CURRENT/ia64/ia64/obj/ia64/other/tinderbox/CURRENT/ia64/ia64/src/sys/GENERIC. *** Error code 1 Stop in /other/tinderbox/CURRENT/ia64/ia64/src. *** Error code 1 Stop in /other/tinderbox/CURRENT/ia64/ia64/src. TB --- 2004-04-22 04:16:28 - WARNING: /usr/bin/make returned exit code 1 TB --- 2004-04-22 04:16:28 - ERROR: failed to build generic kernel TB --- 2004-04-22 04:16:28 - tinderbox aborted From owner-freebsd-ia64@FreeBSD.ORG Wed Apr 21 21:45:46 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9729D16A4CE for ; Wed, 21 Apr 2004 21:45:46 -0700 (PDT) Received: from TRANG.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7096B43D48 for ; Wed, 21 Apr 2004 21:45:46 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by TRANG.nuxi.com (8.12.11/8.12.10) with ESMTP id i3M4jiuB079088; Wed, 21 Apr 2004 21:45:44 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.11/8.12.11/Submit) id i3M4jhMT079087; Wed, 21 Apr 2004 21:45:43 -0700 (PDT) (envelope-from obrien) Date: Wed, 21 Apr 2004 21:45:43 -0700 From: "David O'Brien" To: Marcel Moolenaar Message-ID: <20040422044543.GA78422@dragon.nuxi.com> References: <20040421155127.GS57650@netch.kiev.ua> <20040421165307.GB832@ns1.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040421165307.GB832@ns1.xcllnt.net> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 5.2-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: ia64@freebsd.org Subject: Re: va_list q X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2004 04:45:46 -0000 On Wed, Apr 21, 2004 at 09:53:07AM -0700, Marcel Moolenaar wrote: > On Wed, Apr 21, 2004 at 06:51:27PM +0300, Valentin Nechayev wrote: > The use of va_arg(args, va_list) works on ia64 (FreeBSD, HP-UX and Linux). > Given the limited context, I can only suggest that you try to create a > temporary variable of type va_list and change the offending line to: > > va_list tmpvalist = va_arg(args, va_list); > n = vslprintf(buf, buflen + 1, f, tmpvalist); ..snip.. > #include > #include > > int > vf2(int count, va_list ap) Still wrong: sledge$ cc arg.c sledge$ ./a.out Segmentation fault (core dumped) your test program isn't ISO-C compliant. From owner-freebsd-ia64@FreeBSD.ORG Wed Apr 21 21:51:47 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0ED0816A4CE for ; Wed, 21 Apr 2004 21:51:47 -0700 (PDT) Received: from burka.carrier.kiev.ua (burka.carrier.kiev.ua [193.193.193.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 609DC43D2F for ; Wed, 21 Apr 2004 21:51:45 -0700 (PDT) (envelope-from netch@lucky.net) Received: from netch@localhost [127.0.0.1] (netch@localhost [127.0.0.1]) by burka.carrier.kiev.ua with ESMTP id i3M4pbUx005307; Thu, 22 Apr 2004 07:51:39 +0300 (EEST) (envelope-from netch@burka.carrier.kiev.ua) Received: (from netch@localhost) by burka.carrier.kiev.ua (8.12.8p2/8.12.8/Submit) id i3M4pbRd005304; Thu, 22 Apr 2004 07:51:37 +0300 (EEST) (envelope-from netch) Date: Thu, 22 Apr 2004 07:51:36 +0300 From: Valentin Nechayev To: Marcel Moolenaar Message-ID: <20040422045136.GN34647@lucky.net> References: <20040421155127.GS57650@netch.kiev.ua> <20040421165307.GB832@ns1.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040421165307.GB832@ns1.xcllnt.net> X-42: On X-Verify-Sender: verified cc: ia64@freebsd.org Subject: Re: va_list q X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: netch@lucky.net List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2004 04:51:47 -0000 Wed, Apr 21, 2004 at 09:53:07, marcel wrote about "Re: va_list q": > The use of va_arg(args, va_list) works on ia64 (FreeBSD, HP-UX and Linux). > Given the limited context, I can only suggest that you try to create a > temporary variable of type va_list and change the offending line to: Great sorry, I was too inattentive. This was not ia64, but amd64. :( I beg your pardons and will ask in its list. -netch- From owner-freebsd-ia64@FreeBSD.ORG Thu Apr 22 08:49:42 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D22AA16A4D0 for ; Thu, 22 Apr 2004 08:49:42 -0700 (PDT) Received: from TRANG.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 815D943D48 for ; Thu, 22 Apr 2004 08:49:42 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by TRANG.nuxi.com (8.12.11/8.12.10) with ESMTP id i3MFnfrN091364 for ; Thu, 22 Apr 2004 08:49:41 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.11/8.12.11/Submit) id i3MFnfZS091363 for ia64@freebsd.org; Thu, 22 Apr 2004 08:49:41 -0700 (PDT) (envelope-from obrien) Date: Thu, 22 Apr 2004 08:49:41 -0700 From: "David O'Brien" To: ia64@freebsd.org Message-ID: <20040422154941.GD78422@dragon.nuxi.com> References: <20040421155127.GS57650@netch.kiev.ua> <20040421165307.GB832@ns1.xcllnt.net> <20040422044543.GA78422@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040422044543.GA78422@dragon.nuxi.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 5.2-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Subject: Re: va_list q X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ia64@freebsd.org List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2004 15:49:43 -0000 On Wed, Apr 21, 2004 at 09:45:43PM -0700, David O'Brien wrote: > On Wed, Apr 21, 2004 at 09:53:07AM -0700, Marcel Moolenaar wrote: > > On Wed, Apr 21, 2004 at 06:51:27PM +0300, Valentin Nechayev wrote: > > The use of va_arg(args, va_list) works on ia64 (FreeBSD, HP-UX and Linux). > > Given the limited context, I can only suggest that you try to create a > > temporary variable of type va_list and change the offending line to: > > > > va_list tmpvalist = va_arg(args, va_list); > > n = vslprintf(buf, buflen + 1, f, tmpvalist); > ..snip.. > > #include > > #include > > > > int > > vf2(int count, va_list ap) > > > Still wrong: > > sledge$ cc arg.c > sledge$ ./a.out > Segmentation fault (core dumped) > > your test program isn't ISO-C compliant. The details: This code breaks because it is not ISO-C compliant. Marcel's suggestion also isn't ISO-C compliant. One must use va_copy() just like one needs to use strcpy() to get a unique copy of a C string. There are two platforms to date where GCC takes "advantage" of the ISO-C99 standard and impliments stdargs in a way that depends on compliant code. Note that the "#ifdef __powerpc__" code is ISO-C compliant and should work on all platforms. 1. Adhere to ISO C specification for stdargs: Do not copy ap directly: void foo (va_list ap) { va_list tap = ap; /* use tap */ } Correct usage: #include void foo (va_list ap) { va_list tap; va_copy (tap, ap); /* use tap */ } GCCs ap is a pointer for AMD64. &ap does not do what you may expect. Review ISO C99 standard, Section 7.15. -- -- David (obrien@FreeBSD.org) From owner-freebsd-ia64@FreeBSD.ORG Thu Apr 22 13:30:58 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3A2A16A4CE for ; Thu, 22 Apr 2004 13:30:58 -0700 (PDT) Received: from tekumel.gentiane.org (odyssee.gentiane.org [80.65.224.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 457ED43D41 for ; Thu, 22 Apr 2004 13:30:57 -0700 (PDT) (envelope-from miod@tekumel.gentiane.org) Received: from tekumel.gentiane.org (miod@localhost.gentiane.org [IPv6:::1]) by tekumel.gentiane.org (8.12.11/8.12.5) with ESMTP id i3MKUUio025092 for ; Thu, 22 Apr 2004 20:30:31 GMT Received: (from miod@localhost) by tekumel.gentiane.org (8.12.11/8.12.5/Submit) id i3MKUTE4004724 for freebsd-ia64@freebsd.org; Thu, 22 Apr 2004 20:30:29 GMT Date: Thu, 22 Apr 2004 20:30:29 +0000 From: Miod Vallat To: freebsd-ia64@freebsd.org Message-ID: <20040422203028.GD27727@tekumel.gentiane.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: Where did the ia64 snapshot go? X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2004 20:30:58 -0000 Hello, I have been trying to get FreeBSD running on an HP rx2600 system. The 5.2.1 bootonly cdrom will boot and start the installer, but eventually it fails to write to da0 (and unfortunately, is not more explicit than a mere ``ERROR: Unable to write data to disk da0!'' message when writing the label...) I would like to try the post-5.2.1 ia64 snapshot, but the snapshots/ia64 directory is empty on ftp2 and missing on ftp right now... Where can this snapshot be found? TIA, Miod From owner-freebsd-ia64@FreeBSD.ORG Thu Apr 22 16:46:54 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA25B16A4CE for ; Thu, 22 Apr 2004 16:46:54 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F53E43D1D for ; Thu, 22 Apr 2004 16:46:54 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.11/8.12.11) with ESMTP id i3MNksmG009965; Thu, 22 Apr 2004 16:46:54 -0700 (PDT) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) i3MNkspn018098; Thu, 22 Apr 2004 16:46:54 -0700 (PDT) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.11/8.12.11/Submit) id i3MNksBl018097; Thu, 22 Apr 2004 16:46:54 -0700 (PDT) (envelope-from marcel) Date: Thu, 22 Apr 2004 16:46:54 -0700 From: Marcel Moolenaar To: Miod Vallat Message-ID: <20040422234654.GA17915@dhcp01.pn.xcllnt.net> References: <20040422203028.GD27727@tekumel.gentiane.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040422203028.GD27727@tekumel.gentiane.org> User-Agent: Mutt/1.4.2.1i cc: freebsd-ia64@freebsd.org Subject: Re: Where did the ia64 snapshot go? X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2004 23:46:55 -0000 On Thu, Apr 22, 2004 at 08:30:29PM +0000, Miod Vallat wrote: > > I have been trying to get FreeBSD running on an HP rx2600 system. The > 5.2.1 bootonly cdrom will boot and start the installer, but eventually > it fails to write to da0 (and unfortunately, is not more explicit than a > mere ``ERROR: Unable to write data to disk da0!'' message when writing > the label...) > > I would like to try the post-5.2.1 ia64 snapshot, but the > snapshots/ia64 directory is empty on ftp2 and missing on ftp right > now... > > Where can this snapshot be found? It was only on ftp2, but has been removed due to lack of space on that server. So, currently it cannot be downloaded from anywhere. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net From owner-freebsd-ia64@FreeBSD.ORG Thu Apr 22 20:55:13 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79D0116A4CE for ; Thu, 22 Apr 2004 20:55:13 -0700 (PDT) Received: from lorax.ldc.upenn.edu (lorax.ldc.upenn.edu [158.130.16.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3733F43D1F for ; Thu, 22 Apr 2004 20:55:13 -0700 (PDT) (envelope-from fuzz@ldc.upenn.edu) Received: by lorax.ldc.upenn.edu (Postfix, from userid 32822) id 9830222890; Thu, 22 Apr 2004 23:55:12 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by lorax.ldc.upenn.edu (Postfix) with ESMTP id 9074A2286E; Thu, 22 Apr 2004 23:55:12 -0400 (EDT) Date: Thu, 22 Apr 2004 23:55:12 -0400 (EDT) From: "Jason M. Leonard" To: Marcel Moolenaar In-Reply-To: <20040422234654.GA17915@dhcp01.pn.xcllnt.net> Message-ID: <20040422234950.X4149@lorax.ldc.upenn.edu> References: <20040422203028.GD27727@tekumel.gentiane.org> <20040422234654.GA17915@dhcp01.pn.xcllnt.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-ia64@freebsd.org Subject: Re: Where did the ia64 snapshot go? X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Apr 2004 03:55:13 -0000 On Thu, 22 Apr 2004, Marcel Moolenaar wrote: > On Thu, Apr 22, 2004 at 08:30:29PM +0000, Miod Vallat wrote: > > > > I have been trying to get FreeBSD running on an HP rx2600 system. The > > 5.2.1 bootonly cdrom will boot and start the installer, but eventually > > it fails to write to da0 (and unfortunately, is not more explicit than a > > mere ``ERROR: Unable to write data to disk da0!'' message when writing > > the label...) > > > > I would like to try the post-5.2.1 ia64 snapshot, but the > > snapshots/ia64 directory is empty on ftp2 and missing on ftp right > > now... > > > > Where can this snapshot be found? > > It was only on ftp2, but has been removed due to lack of space on > that server. So, currently it cannot be downloaded from anywhere. Well, it seems I only still have the ISOs for disc2 and miniinst, and no checksum file, but if someone can get the missing bits to me I will host this. :Fuzz