PDA

View Full Version : gnomevfs2 failing to compile


Richie P
11-04-2005, 06:06 PM
There's already a thread on this, but it's a bit obscure so here's a new one.

When I try to compile gnomevfs2 from the ports tree it fails with this message:

smb-method.c: In function `do_close':
smb-method.c:1428: error: structure has no member named `close_fn'

The structure in question is smb_context which is an instance of SMBCCTX which can be found in /usr/local/include/libsmbclient.h. It indeed does not contain the method pointer (I presume it's a method pointer, I don't code in C) close_fn.

I'v noticed that samba 3.x is installed on PC-BSD when the version on the FreeBSD ports tree is samba 2.x. Does gnomevfs2 2.10.1 not work with Samba 3.x? If so is there a way to work around this?

antik
11-04-2005, 06:16 PM
There's already a thread on this, but it's a bit obscure so here's a new one.

When I try to compile gnomevfs2 from the ports tree it fails with this message:

smb-method.c: In function `do_close':
smb-method.c:1428: error: structure has no member named `close_fn'

The structure in question is smb_context which is an instance of SMBCCTX which can be found in /usr/local/include/libsmbclient.h. It indeed does not contain the method pointer (I presume it's a method pointer, I don't code in C) close_fn.

I'v noticed that samba 3.x is installed on PC-BSD when the version on the FreeBSD ports tree is samba 2.x. Does gnomevfs2 2.10.1 not work with Samba 3.x? If so is there a way to work around this?

What CPU optimizations you are using? I had this problem when compiled with Athlon support.

try recompile all dependencies:

portupgrade -Nra

Richie P
11-06-2005, 04:16 PM
Thanks very much. :D

I'm not sure specifically what did it, but it now compiles. I noticed that there is a seperate folder for samba3 while updateports was running and it updated that. I had to type 'make clean' on the gnomevfs2 dir as well after samba and the other libs had been updated before it worked as well.