Page 1 of 1

Compile Error in Redhat Linux 9.0 using vlc-0.8.4

Posted: 16 Dec 2005 09:17
by ks
Hi Streamers,

I'm facing the below errors when compile VLC. It seems that it is related with samba settings.


source='smb.c' object='libaccess_smb_plugin_a-smb.o' libtool=no \
depfile='.deps/libaccess_smb_plugin_a-smb.Po' tmpdepfile='.deps/libaccess_smb_plugin_a-smb.TPo' \
depmode=gcc3 /bin/sh ../../autotools/depcomp \
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYS_LINUX -I../../include `top_builddir="../.." ../../vlc-config --cflags plugin access_smb` -Wsign-compare -Wall -pipe -c -o libaccess_smb_plugin_a-smb.o `test -f 'smb.c' || echo './'`smb.c
smb.c:102: parse error before "SMBCCTX"
smb.c:102: warning: no semicolon at end of struct or union
smb.c:103: warning: type defaults to `int' in declaration of `p_file'
smb.c:103: warning: data definition has no type or storage class
smb.c:107: parse error before '}' token
smb.c: In function `Open':
smb.c:132: `SMBCCTX' undeclared (first use in this function)
smb.c:132: (Each undeclared identifier is reported only once
smb.c:132: for each function it appears in.)
smb.c:132: `p_smb' undeclared (first use in this function)
smb.c:133: `SMBCFILE' undeclared (first use in this function)
smb.c:213: warning: implicit declaration of function `smbc_new_context'
smb.c:222: warning: implicit declaration of function `smbc_init_context'
smb.c:225: warning: implicit declaration of function `smbc_free_context'
smb.c:280: sizeof applied to an incomplete type
smb.c:281: sizeof applied to an incomplete type
smb.c:281: sizeof applied to an incomplete type
smb.c:281: sizeof applied to an incomplete type
smb.c:281: sizeof applied to an incomplete type
smb.c:281: sizeof applied to an incomplete type
smb.c:281: sizeof applied to an incomplete type
smb.c:284: dereferencing pointer to incomplete type
smb.c:285: dereferencing pointer to incomplete type
smb.c: In function `Close':
smb.c:306: dereferencing pointer to incomplete type
smb.c:306: dereferencing pointer to incomplete type
smb.c:306: dereferencing pointer to incomplete type
smb.c:310: dereferencing pointer to incomplete type
smb.c: In function `Seek':
smb.c:331: dereferencing pointer to incomplete type
smb.c:331: dereferencing pointer to incomplete type
smb.c:331: dereferencing pointer to incomplete type
smb.c: In function `Read':
smb.c:358: dereferencing pointer to incomplete type
smb.c:358: dereferencing pointer to incomplete type
smb.c:358: dereferencing pointer to incomplete type
make[4]: *** [libaccess_smb_plugin_a-smb.o] Error 1
make[4]: Leaving directory `/root/videolan/vlc-0.8.4/modules/access'
make[3]: *** [all-modules] Error 1
make[3]: Leaving directory `/root/videolan/vlc-0.8.4/modules/access'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/videolan/vlc-0.8.4/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/videolan/vlc-0.8.4'
make: *** [all] Error 2

Posted: 16 Dec 2005 19:26
by dionoea
If you don't need samba support in VLC, just add

Code: Select all

--disable-smb
to the configure options. If you need samba ... i can't really help. sorry :(

an rpm is now available

Posted: 17 Dec 2005 13:05
by bipdan
You can get vlc 0.8.4 on freshrpms in packahe form.

I've been able to install it on fedora core 4, after resolving a bunch of dependanceis. Unfortunately, i still have an error about matroska in spite it successfully installed without forcing anything. Hope you will have more chances.

libi420_rgb_mmx_a-i420_rgb16.o ERROR

Posted: 19 Dec 2005 08:10
by ks
HI!

Thanks for that! After I disable the samba, it came out with the following errors when do the compilation.

Please advise!

gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYS_LINUX -I../../include `top_builddir="../.." ../../vlc-config --cflags builtin i420_rgb_mmx` -Wsign-compare -Wall -pipe -c -o libi420_rgb_mmx_a-i420_rgb16.o `test -f 'i420_rgb16.c' || echo './'`i420_rgb16.c
i420_rgb16.c: In function `I420_RGB16__i420_rgb_mmx':
i420_rgb16.c:415: Internal compiler error in find_reloads_toplev, at reload.c:4439
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla/> for instructions.
make[4]: *** [libi420_rgb_mmx_a-i420_rgb16.o] Error 1
make[4]: Leaving directory `/root/mmp/videolan/vlc-0.8.4/modules/video_chroma'
make[3]: *** [all-modules] Error 1
make[3]: Leaving directory `/root/mmp/videolan/vlc-0.8.4/modules/video_chroma'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/mmp/videolan/vlc-0.8.4/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/mmp/videolan/vlc-0.8.4'
make: *** [all] Error 2

Posted: 19 Dec 2005 10:20
by ks
Hi all,

Finally, I'd successfully built the vlc executable files. Here is my setting juz for sharing:

./configure --enable-debug --enable-x11 --enable-wxwindows --enable-gtk --enable-kde --enable-qt --enable-skins --enable-skins2 --disable-sdl --enable-ffmpeg --with-ffmpeg-ogg --with-ffmpeg-vorbis --with-ffmpeg-faad --with-ffmpeg-faac --with-ffmpeg-a52 --with-ffmpeg-mp3lame --with-ffmpeg-x264 --with-ffmpeg-xvid --enable-mad --enable-libdvbpsi --enable-libmpeg2 --enable-dts --enable-mkv --enable-fribidi --enable-speex --enable-flac --enable-caca --enable-livedotcom --enable-dvd --enable-dvdnav --enable-dvdread --enable-libcdio --enable-libcddb --enable-vcdx --enable-vcd --enable-ncurses --enable-id3tag --disable-freetype --disable-wxwidgets --disable-skins2 --with-ffmpeg-tree=/home/kristof/ffmpeg --disable-smb

Make sure you have roll back this two file under modules/video_chroma/ directory, which are i420_rgb16.c and i420_rgb_mmx.h. You can get it from the below URL.

http://trac.videolan.org/vlc/file/trunk ... ?rev=11664
http://trac.videolan.org/vlc/file/trunk ... ?rev=11664

Thanks!

By the way, if someone knew how to compile vlc player with samba enable, please share with me.

Cheers,
KS

Posted: 20 Jul 2006 22:35
by TranzMatt
By the way, if someone knew how to compile vlc player with samba enable, please share with me.
I updated my RH9 samba to

samba-client-3.0.0-15
samba-3.0.0-15
samba-common-3.0.0-15

IIRC, I grabbed those from the Fedora Core 1 build, had to update some dependencies too. But once I did, that samba thing went away.

Matt