You are not logged in.

#1 2007-05-15 06:13:00

bzklrm
Member
From: Australia
Registered: 2005-04-18
Posts: 36

Compiling ncpfs package from ABS

Hi,
I am trying to compile the vanilla ncpfs package from ABS (well, I added arch=(i686)), but the compiling fails with:

 ncpm_common.c: In function 'process_connection':
ncpm_common.c:1229: error: expected expression before 'struct'

The incriminated line in ncpm_common.c is calling:

 unix_len = offsetof(struct sockaddr_un, sun_path) + sprintf(unix_addr.sun_path, "%cncpfs.permanent.mount.%lu", 0, (unsigned long)stb.st_dev) + 1;

Google tells me that such errors with offsetof seem to come from missing kernel libraries, but I have not been able to find out more. Compiling a dummy file with a call to offsetof works flawlessly.

The reason why I am trying to rebuild the ncpfs package myself is that the community package installs in /usr/usr/bin/ and running the programs fails with:

 error while loading shared libraries: libncp.so.2.3: cannot open shared object file: No such file or directory

Can anyone help me on this?

Offline

Board footer

Powered by FluxBB