PPC vs Intel apps and Kernel Headers

John Van Hoorn yellowdog-general@lists.terrasoftsolutions.com
Thu Sep 4 21:37:01 2003


Thanks, 
 
I thought I'd installed this rpm, but obviously I never did
successfully.

Now I have and got a /usr/src/linux-2.4 link and a
/usr/src/linux-2.4.20-8d directory.

I'm trying to install a Cisco VPN client.  It allows for the creation of
a new driver.
This was the reason for needing kernel source and headers.

I attempted to create the new driver and got lines and lines of output
that began with this:

'
In file included from /usr/include/linux/fs.h:23,
                 from /usr/include/linux/capability.h:17,
                 from /usr/include/linux/binfmts.h:5,
                 from /usr/include/linux/sched.h:9,
                 from /usr/include/linux/skbuff.h:19,
                 from linuxcniapi.c:18:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header
in userland!
In file included from /usr/include/linux/sched.h:14,
                 from /usr/include/linux/skbuff.h:19,
                 from linuxcniapi.c:18:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/linux/sched.h:17,
                 from /usr/include/linux/skbuff.h:19,
                 from linuxcniapi.c:18:
/usr/include/asm/semaphore.h:34: parse error before "wait_queue_head_t"
/usr/include/asm/semaphore.h: In function `sema_init':
/usr/include/asm/semaphore.h:63: dereferencing pointer to incomplete
type
/usr/include/asm/semaphore.h:64: dereferencing pointer to incomplete
type
/usr/include/asm/semaphore.h: In function `down':
/usr/include/asm/semaphore.h:93: dereferencing pointer to incomplete
type
/usr/include/asm/semaphore.h: In function `down_interruptible':
/usr/include/asm/semaphore.h:106: dereferencing pointer to incomplete
type
/usr/include/asm/semaphore.h: In function `down_trylock':
/usr/include/asm/semaphore.h:120: dereferencing pointer to incomplete
type
/usr/include/asm/semaphore.h: In function `up':
/usr/include/asm/semaphore.h:132: dereferencing pointer to incomplete
type
In file included from /usr/include/linux/sched.h:81,
                 from /usr/include/linux/skbuff.h:19,
                 from linuxcniapi.c:18:
/usr/include/linux/timer.h: At top level:
/usr/include/linux/timer.h:45: parse error before "spinlock_t"
/usr/include/linux/timer.h:53: parse error before '}' token
/usr/include/linux/timer.h:67: parse error before "tvec_base_t"
/usr/include/linux/timer.h:101: parse error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':


It goes on and on.
The last two lines are:
ld: libdriver.so: Relocations in generic ELF (EM: 3)
libdriver.so: could not read symbols: File in wrong format

This client was targeted for "Intel x86" platforms, but I had hopes that
the driver configuration script could leverage the PPC assembler.
Does the output above suggest that this is a hopeless cause on a PPC
system?

Cisco does provide a client for OS X, but I have no intention of
installing that on this Powerbook G3.

John Van Hoorn

On Thu, 2003-09-04 at 09:42, Jann Röder wrote:
> There is a package called kernel-source-2.4.20-8d.rpm . It can be found
> on CD 2, or you simply do a "yum install kernel-source" . Usually you 
> can compile any linux application on YDL.
> 
> Jann