[PD-dev] zexy external z_lp does not compile on PPC Linux

lee at fallingforward.net lee at fallingforward.net
Sun Dec 7 02:46:15 CET 2003


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 at 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.html

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)




More information about the Pd-dev mailing list