Page 1 of 1

libaccess_smb_plugin build problem

Posted: 18 Aug 2005 20:02
by Daniel
Hi!

I want to build vlc 0.8.2 on my heavily updated SuSE 9.1.

Build stops at smb.c line 304:

smb.c: In function `Close':
smb.c:304: error: structure has no member named `close'
make[4]: *** [libaccess_smb_plugin_a-smb.o] Fehler 1
make[4]: Leaving directory `/usr/src/packages/BUILD/vlc-0.8.2/modules/access'
make[3]: *** [all-modules] Fehler 1
make[3]: Leaving directory `/usr/src/packages/BUILD/vlc-0.8.2/modules/access'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/usr/src/packages/BUILD/vlc-0.8.2/modules'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/usr/src/packages/BUILD/vlc-0.8.2'
make: *** [all] Fehler 2

I habe libsmbclient-3.0.20rc2 and -devel packages

Solution is this patch:
--- modules/access/smb.c.orig 2005-08-18 19:57:59.163117720 +0200
+++ modules/access/smb.c 2005-08-18 19:57:11.734327992 +0200
@@ -45,6 +45,7 @@
# define smbc_close close
#else
# include <libsmbclient.h>
+# define close close_fn
# define USE_CTX 1
#endif

Hope I could help somebody. And I hope I said nothing too horribly wrong....

Best,
Daniel

Posted: 29 Sep 2005 09:17
by huales
OK, it work, great, thank you :)

Posted: 20 Oct 2005 22:52
by ronan
thanks for that Daniel, real time saver...

Ronan

Posted: 04 Dec 2005 02:18
by alt20
Fantastic work!

Posted: 15 Dec 2005 05:44
by Guest
yeaaa! one line added;D in the other hand why developers makes such stupid mistakes?:(