Your message dated Thu, 12 Apr 2001 23:52:39 +0200 (MEST) with message-id <[EMAIL PROTECTED]> and subject line closing gcc272 bugs 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.) Darren Benham (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 9 Jan 2000 13:00:08 +0000 Received: (qmail 24341 invoked from network); 9 Jan 2000 13:00:07 -0000 Received: from pilt-s.online.no (HELO online.no) (148.122.208.18) by master.debian.org with SMTP; 9 Jan 2000 13:00:07 -0000 Received: from sskjelln (ti18a66-0136.dialup.online.no [130.67.230.136]) by online.no (8.9.3/8.9.1) with SMTP id OAA02496 for <[EMAIL PROTECTED]>; Sun, 9 Jan 2000 14:00:04 +0100 (MET) Message-Id: <[EMAIL PROTECTED]> X-Sender: [EMAIL PROTECTED] X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32) Date: Sun, 09 Jan 2000 13:58:17 +0100 To: [EMAIL PROTECTED] From: Sigmund Skjelnes <[EMAIL PROTECTED]> Subject: Missing definitions in /usr/include/asm/io.h Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Package: gcc Version: 2.7.2.3-4.8 C source trying to call inb() and outb() (/usr/include/asm/io.h included ) does not compile, and error codes below are written: /tmp/ccc00250(.text+0x26): undefined reference to `__inbc' /tmp/ccc00250(.text+0x46): undefined reference to `__inb' /tmp/ccc00250(.text+0x71): undefined reference to `__outbc' /tmp/ccc00250(.text+0x88): undefined reference to `__outb' /tmp/ccc00250(.text+0x94): undefined reference to `__outbc' /tmp/ccc00250(.text+0xa5): undefined reference to `__outb' /tmp/ccc00250(.text+0xd6): undefined reference to `__inbc' /tmp/ccc00250(.text+0xf6): undefined reference to `__inb' Here's the source code, I'm trying to use the printer port as a generic I/O port: /* termwatch.c=20 080100 Sigmund Skjelnes Dette programmet viser om pinne 2 p=E5 /dev/lp0 utgangen skifter status */ #include<stdio.h> #include<asm/io.h> #define base 0x0378U #define lp_data base=20 #define lp_control (base + 2) #define IRQFLAG 0x10 #define INIFLAG 4 int main( void ){ int i; /* sett opp registre */ ioperm( base, 3, 1 ); /* reserver portadresser */ i =3D inb( lp_control ); i |=3D INIFLAG; /* INI flag =3D 1 */ i &=3D ~IRQFLAG; /* IRQ flag =3D 0 IRQ brukes ikke */ outb( lp_control, (unsigned char) (i & 0xff) ); outb( lp_data, (unsigned char) 0 ); /* leser data reg */ while( 1 ){ //finn en m=E5te =E5 stoppe programmet kontrollert p=E5! if ( inb( lp_data ) =3D=3D 1 ){ printf( "Bryter =E5pen\r\n" ); } else { printf( "Bryter lukket\r\n" ); } sleep( 1 ); /* 1s */ } ioperm( base, 3, 0 ); /* fjern reservasjon */ } Obviously, the code for __outp etc. is missing, hence the linker can't find the function definition. It's possible the source code should have been linked to something, but this is unlikely. The source are compiled the usual way:=20 gcc -o termwatch termwatch.c kernel: Linux debian 2.0.34 #2=20 C library: libc-2.0.7.so Hope you're able to solve the problem, others claim that this code should compile and work fine. Cincerely, Sigmund. --------------------------------------- Received: (at 54544-done) by bugs.debian.org; 12 Apr 2001 21:58:25 +0000 >From [EMAIL PROTECTED] Thu Apr 12 16:58:25 2001 Return-path: <[EMAIL PROTECTED]> Received: from mail.cs.tu-berlin.de [130.149.17.13] (root) by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14np6d-0003Xr-00; Thu, 12 Apr 2001 16:58:24 -0500 Received: from bolero.cs.tu-berlin.de (bolero.cs.tu-berlin.de [130.149.19.1]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id XAA08192; Thu, 12 Apr 2001 23:53:09 +0200 (MET DST) Received: (from [EMAIL PROTECTED]) by bolero.cs.tu-berlin.de (8.9.3+Sun/8.9.3) id XAA19323; Thu, 12 Apr 2001 23:52:39 +0200 (MEST) From: Matthias Klose <[EMAIL PROTECTED]> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Thu, 12 Apr 2001 23:52:39 +0200 (MEST) To: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: closing gcc272 bugs X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] gcc272 (2.7.2.3-18) unstable; urgency=low * Close all gcc272 in the Debian bug tracking archive. The use of gcc272 is deprecated. The only reason it exists is to have a compiler for the linux kernel 2.0.x. The bug reports for gcc272 are still available on http://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=gcc272&archive=yes Closes: #4429, #4430, 4954, #5367, #6047, #12375, #20606, #20889, #24788, #26100, #34322, #48726, #54544, #63154.