Your message dated Thu, 17 Nov 2005 11:32:05 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#326869: fixed in etherboot 5.4.1-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 6 Sep 2005 10:05:00 +0000
>From [EMAIL PROTECTED] Tue Sep 06 03:05:00 2005
Return-path: <[EMAIL PROTECTED]>
Received: from c173076.adsl.hansenet.de (localhost.localdomain) [213.39.173.76] 
        by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
        id 1ECaK3-0006yn-00; Tue, 06 Sep 2005 03:05:00 -0700
Received: from aj by localhost.localdomain with local (Exim 4.52)
        id 1ECaK2-0005St-7d; Tue, 06 Sep 2005 12:04:58 +0200
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
From: Andreas Jochens <[EMAIL PROTECTED]>
Subject: etherboot: FTBFS (amd64): CPU you selected does not support x86-64 
instruction set
Message-Id: <[EMAIL PROTECTED]>
Date: Tue, 06 Sep 2005 12:04:58 +0200
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: etherboot
Version: 5.3.14-1
Severity: wishlist
Tags: patch

When building 'etherboot' on amd64/unstable,
I get the following error:

make[1]: Entering directory `/etherboot-5.3.14/src'
gcc -DCONFIG_PCI -DCONFIG_ISA -DASK_BOOT=3 -DBOOT_FIRST=BOOT_NIC 
-DALLOW_ONLY_ENCAPSULATED -DBACKOFF_LIMIT=7 -DCONGESTED -DTAGGED_IMAGE 
-DELF_IMAGE -DDOWNLOAD_PROTO_TFTP -DPXE_IMAGE -DPXE_EXPORT -Os -ffreestanding 
-Wall -W -Wno-format -DPCBIOS -fstrength-reduce -fomit-frame-pointer 
-march=i386 -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mcpu=i386 
-DVERSION_MAJOR=5 -DVERSION_MINOR=3 -DVERSION=\"5.3.14\"  -I include -I 
arch/i386/include -DARCH=i386 -DCONFIG_X86_64  -o bin/undi.o -c 
arch/i386/drivers/net/undi.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
arch/i386/drivers/net/undi.c:1: error: CPU you selected does not support x86-64 
instruction set
arch/i386/drivers/net/undi.c:1: error: CPU you selected does not support x86-64 
instruction set
make[1]: *** [bin/undi.o] Error 1
make[1]: Leaving directory `/etherboot-5.3.14/src'
make: *** [build-stamp] Error 2

This occurs because 'etherboot' has to be compiled with the -m32 switch to
produce i386 code on amd64.

With the attached patch 'etherboot' can be compiled on amd64. 

The patch also contains some changes which are necessary for 
compilation with gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/etherboot-5.3.14/debian/control ./debian/control
--- ../tmp-orig/etherboot-5.3.14/debian/control 2005-09-06 09:50:05.000000000 
+0000
+++ ./debian/control    2005-09-06 09:50:01.000000000 +0000
@@ -2,7 +2,7 @@
 Section: admin
 Priority: optional
 Maintainer: RISKO Gergely <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>> 4.0.0), mkisofs, mtools, syslinux
+Build-Depends: debhelper (>> 4.0.0), mkisofs, mtools, syslinux, ia32-libs-dev 
[amd64]
 Standards-Version: 3.6.1.1
 
 Package: etherboot
@@ -17,7 +17,7 @@
  files, you can install the package named etherboot-doc.
 
 Package: etherboot-doc
-Architecture: all
+Architecture: i386 amd64
 Section: doc
 Suggests: etherboot
 Description: Bootstrapping for various network adapters (documentation)
diff -urN ../tmp-orig/etherboot-5.3.14/src/Config ./src/Config
--- ../tmp-orig/etherboot-5.3.14/src/Config     2005-02-10 22:43:23.000000000 
+0000
+++ ./src/Config        2005-09-06 09:49:46.000000000 +0000
@@ -425,14 +425,14 @@
 # CFLAGS+=     -DNORELOCATE
 
 # you should normally not need to change these
-HOST_CC=       gcc
-CPP=           gcc -E -Wp,-Wall
+HOST_CC=       gcc -m32
+CPP=           gcc -m32 -E -Wp,-Wall
 RM=            rm -f
 TOUCH=         touch
 PERL=          /usr/bin/perl
-CC=            gcc
-AS=            as
-LD=            ld
+CC=            gcc -m32
+AS=            as --32
+LD=            ld -melf_i386
 SIZE=          size
 AR=            ar
 RANLIB=                ranlib
diff -urN ../tmp-orig/etherboot-5.3.14/src/arch/i386/Config 
./src/arch/i386/Config
--- ../tmp-orig/etherboot-5.3.14/src/arch/i386/Config   2005-09-06 
09:50:05.000000000 +0000
+++ ./src/arch/i386/Config      2005-09-06 09:49:46.000000000 +0000
@@ -107,9 +107,11 @@
 CFLAGS+=       -falign-jumps=1 -falign-loops=1 -falign-functions=1
 endif
 GCC_MINORVERSION = $(word 2, $(GCC_VERSION))
+ifeq ($(GCC_MAJORVERSION),3)
 ifneq ($(GCC_MINORVERSION),4)
 CFLAGS+=       -mcpu=i386
 endif
+endif
 
 LDFLAGS+=      -N
 
diff -urN ../tmp-orig/etherboot-5.3.14/src/arch/i386/firmware/pcbios/basemem.c 
./src/arch/i386/firmware/pcbios/basemem.c
--- ../tmp-orig/etherboot-5.3.14/src/arch/i386/firmware/pcbios/basemem.c        
2005-02-10 22:43:32.000000000 +0000
+++ ./src/arch/i386/firmware/pcbios/basemem.c   2005-09-06 09:49:46.000000000 
+0000
@@ -16,8 +16,8 @@
 #define FREE_BASE_MEMORY ( (uint32_t) ( *fbms << 10 ) )
 
 /* Prototypes */
-void * _allot_base_memory ( size_t size );
-void _forget_base_memory ( void *ptr, size_t size );
+static void * _allot_base_memory ( size_t size );
+static void _forget_base_memory ( void *ptr, size_t size );
 
 typedef struct free_base_memory_block {
        uint32_t        magic;
@@ -221,7 +221,7 @@
  * entity (if we can detect that it has done so) so that we get the
  * chance to free up our own blocks.
  */
-static void free_unused_base_memory ( void ) {
+void free_unused_base_memory ( void ) {
        free_base_memory_block_t *free_block = NULL;
 
        /* Try to release memory back to the BIOS.  Free all
diff -urN ../tmp-orig/etherboot-5.3.14/src/drivers/net/natsemi.c 
./src/drivers/net/natsemi.c
--- ../tmp-orig/etherboot-5.3.14/src/drivers/net/natsemi.c      2004-06-01 
13:14:04.000000000 +0000
+++ ./src/drivers/net/natsemi.c 2005-09-06 09:49:46.000000000 +0000
@@ -646,7 +646,7 @@
 
     to = currticks() + TX_TIMEOUT;
 
-    while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
+    while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
         /* wait */ ;
 
     if (currticks() >= to) {
diff -urN ../tmp-orig/etherboot-5.3.14/src/drivers/net/sis900.c 
./src/drivers/net/sis900.c
--- ../tmp-orig/etherboot-5.3.14/src/drivers/net/sis900.c       2004-11-24 
07:04:57.000000000 +0000
+++ ./src/drivers/net/sis900.c  2005-09-06 09:49:46.000000000 +0000
@@ -1132,7 +1132,7 @@
 
     to = currticks() + TX_TIMEOUT;
 
-    while ((((volatile u32) tx_status=txd.cmdsts) & OWN) && (currticks() < to))
+    while (((tx_status=txd.cmdsts) & OWN) && (currticks() < to))
         /* wait */ ;
 
     if (currticks() >= to) {

---------------------------------------
Received: (at 326869-close) by bugs.debian.org; 17 Nov 2005 19:41:23 +0000
>From [EMAIL PROTECTED] Thu Nov 17 11:41:23 2005
Return-path: <[EMAIL PROTECTED]>
Received: from katie by spohr.debian.org with local (Exim 4.50)
        id 1EcpUL-0001Xo-Lh; Thu, 17 Nov 2005 11:32:05 -0800
From: RISKO Gergely <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.56 $
Subject: Bug#326869: fixed in etherboot 5.4.1-1
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Thu, 17 Nov 2005 11:32:05 -0800
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: etherboot
Source-Version: 5.4.1-1

We believe that the bug you reported is fixed in the latest version of
etherboot, which is due to be installed in the Debian FTP archive:

etherboot-doc_5.4.1-1_all.deb
  to pool/main/e/etherboot/etherboot-doc_5.4.1-1_all.deb
etherboot_5.4.1-1.diff.gz
  to pool/main/e/etherboot/etherboot_5.4.1-1.diff.gz
etherboot_5.4.1-1.dsc
  to pool/main/e/etherboot/etherboot_5.4.1-1.dsc
etherboot_5.4.1-1_i386.deb
  to pool/main/e/etherboot/etherboot_5.4.1-1_i386.deb
etherboot_5.4.1.orig.tar.gz
  to pool/main/e/etherboot/etherboot_5.4.1.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
RISKO Gergely <[EMAIL PROTECTED]> (supplier of updated etherboot package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 17 Nov 2005 20:06:07 +0100
Source: etherboot
Binary: etherboot etherboot-doc
Architecture: source i386 all
Version: 5.4.1-1
Distribution: unstable
Urgency: low
Maintainer: RISKO Gergely <[EMAIL PROTECTED]>
Changed-By: RISKO Gergely <[EMAIL PROTECTED]>
Description: 
 etherboot  - Bootstrapping for various network adapters
 etherboot-doc - Bootstrapping for various network adapters (documentation)
Closes: 265919 319561 325196 326869
Changes: 
 etherboot (5.4.1-1) unstable; urgency=low
 .
   * New upstream release (closes: #325196)
   * amd64 support & gcc-4.0 fixes, 2nd try ;) (closes: #326869, #265919, 
#319561)
Files: 
 40ebc4ab2f971b88ae16a0dd57f511d0 636 admin optional etherboot_5.4.1-1.dsc
 7888efff15b41331ffb6de4871eb1581 1840394 admin optional 
etherboot_5.4.1.orig.tar.gz
 9267553eb6676cf54bbb0c234c232399 3102 admin optional etherboot_5.4.1-1.diff.gz
 2412401224b0aa2256a83675c128d65f 21668322 admin optional 
etherboot_5.4.1-1_i386.deb
 e2516291a5e893ca75f25c071d2b448b 713524 doc optional 
etherboot-doc_5.4.1-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDfNU/O0PrGO4KNccRAstoAKCl9MbLrFaUdG2+SGykywhpNvEq8wCaA0oD
w0IBsWghW9vE7VSJZEFxhwg=
=hG1G
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to