bash-2.05b# uname -a Linux kitty 2.4.22-ben2 #1 Sun Nov 30 15:22:32 EST 2003 ppc 740/750 GNU/Linux
z_lp.c:19:20: sys/io.h: No such file or directory z_lp.c: In function `lp_float': z_lp.c:41: warning: implicit declaration of function `outb' z_lp.c: In function `lp_new': z_lp.c:83: warning: implicit declaration of function `ioperm' z_lp.c:90: warning: implicit declaration of function `iopl'
bash-2.05b# ls -l /usr/include/sys | grep io -rw-r--r-- 1 root root 1825 Nov 30 06:44 ioctl.h -rw-r--r-- 1 root root 11230 Nov 30 06:44 mtio.h -rw-r--r-- 1 root root 74 Nov 30 06:44 termios.h -rw-r--r-- 1 root root 1874 Nov 30 06:44 uio.h
and on my AMD system I find a comment in /usr/include/sys/io.h that calls in this file are not supported on all arcitectures. I guess this would make sense because most Macs don't have parallel ports. In fact most Macs that are even worth running Linux on don't have serial ports either, only USB and Firewire.
I don't know how to edit makefiles. Would it be possible to check for the existance of PPC Linux and not compile z_lp ?
-lee
On Sat, Dec 06, 2003 at 06:26:50PM -0500, Marc Lavallée wrote:
On Sat, Dec 06, 2003 at 05:33:06PM -0500, lee@fallingforward.net wrote:
z_lp.c:19:20: sys/io.h: No such file or directory
You need to install glibc development package.
Sorry for double-posting.
I don't know about Linux PPC, but on Mandrake, the urpmf command if useful to find the package of a missing file. For example, on my system:
$ urpmf sys/io.h glibc-devel:/usr/include/sys/io.h uClibc-devel:/usr/i386-linux-uclibc/include/sys/io.h dietlibc-devel:/usr/lib/dietlibc/include/sys/io.h
(Only the first package (glibc-devel) would be required)
Most Linux distributions now have similar commands.
-- Marc
On Sat, 6 Dec 2003, Marc [iso-8859-1] Lavallée wrote:
On Sat, Dec 06, 2003 at 06:26:50PM -0500, Marc Lavallée wrote:
On Sat, Dec 06, 2003 at 05:33:06PM -0500, lee@fallingforward.net wrote:
z_lp.c:19:20: sys/io.h: No such file or directory
You need to install glibc development package.
I don't know about Linux PPC, but on Mandrake, the urpmf command if useful to find the package of a missing file. For example, on my system:
That's my point, this appears to be one place where Linux for i386 and PPC differ.
On my Athlon system, there is a comment in /usr/include/sys/io.h :
Portability note: not all Linux platforms support this call. Most platforms based on the PC I/O architecture probably will, however. E.g., Linux/Alpha for Alpha PCs supports this. */
So my point is no matter what glibc package is installed, any Linux distro for the PPC platform will not have that file. The debian PPC list archives confirmed this:
http://lists.debian.org/debian-powerpc/2000/debian-powerpc-200012/msg00711.h...
I noticed that there is a #ifndef MACOSX at the top of z_lp.c. Is there any symbol on Linux that specifies if it's PPC or not? It may be a simple as adding another #ifndef
-lee (wishing he had more experience programming C than a couple of hours)
On Sat, Dec 06, 2003 at 08:46:15PM -0500, lee@fallingforward.net wrote:
I noticed that there is a #ifndef MACOSX at the top of z_lp.c. Is there any symbol on Linux that specifies if it's PPC or not? It may be a simple as adding another #ifndef
You can try to addi a define statement before #ifndef MACOSX : # define MACOSX 1
-- Marc