LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-09-2005, 07:12 PM   #1
i_suck_at_linux
LQ Newbie
 
Registered: Dec 2005
Location: Scotland
Distribution: FC4
Posts: 5

Rep: Reputation: 0
VLC make error??!


Hey folks, i've been banging my head against the wall for a solid day now trying to figure this one out.
I ran:

./configure --enable-ffmpeg --with-ffmpeg-tree=/usr/lib/vlc/ffmpeg-20051126/ --enable-shared --enable-shared-pp --enable-pp --enable-gpl

to configure the makefile when building VLC. All apparently went well until I tried to run the makefile. This is the error is get:

smb.c:101: parse error before "SMBCCTX"
smb.c:101: warning: no semicolon at end of struct or union
smb.c:102: warning: type defaults to `int' in declaration of `p_file'
smb.c:102: warning: data definition has no type or storage class
smb.c:106: parse error before '}' token
smb.c: In function `Open':
smb.c:131: `SMBCCTX' undeclared (first use in this function)
smb.c:131: (Each undeclared identifier is reported only once
smb.c:131: for each function it appears in.)
smb.c:131: `p_smb' undeclared (first use in this function)
smb.c:132: `SMBCFILE' undeclared (first use in this function)
smb.c:212: warning: implicit declaration of function `smbc_new_context'
smb.c:221: warning: implicit declaration of function `smbc_init_context'
smb.c:224: warning: implicit declaration of function `smbc_free_context'
smb.c:279: sizeof applied to an incomplete type
smb.c:280: sizeof applied to an incomplete type
smb.c:280: sizeof applied to an incomplete type
smb.c:280: sizeof applied to an incomplete type
smb.c:280: sizeof applied to an incomplete type
smb.c:280: sizeof applied to an incomplete type
smb.c:280: sizeof applied to an incomplete type
smb.c:283: dereferencing pointer to incomplete type
smb.c:284: dereferencing pointer to incomplete type
smb.c: In function `Close':
smb.c:305: dereferencing pointer to incomplete type
smb.c:305: dereferencing pointer to incomplete type
smb.c:305: dereferencing pointer to incomplete type
smb.c:309: dereferencing pointer to incomplete type
smb.c: In function `Seek':
smb.c:330: dereferencing pointer to incomplete type
smb.c:330: dereferencing pointer to incomplete type
smb.c:330: dereferencing pointer to incomplete type
smb.c: In function `Read':
smb.c:357: dereferencing pointer to incomplete type
smb.c:357: dereferencing pointer to incomplete type
smb.c:357: dereferencing pointer to incomplete type
make[4]: *** [libaccess_smb_plugin_a-smb.o] Error 1
make[4]: Leaving directory `/usr/lib/vlc/vlc-0.8.4/modules/access'
make[3]: *** [all-modules] Error 1
make[3]: Leaving directory `/usr/lib/vlc/vlc-0.8.4/modules/access'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/lib/vlc/vlc-0.8.4/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/lib/vlc/vlc-0.8.4'
make: *** [all] Error 2

Can anyone help me here?
 
Old 12-09-2005, 07:29 PM   #2
sandwhale
LQ Newbie
 
Registered: Nov 2004
Location: DFW Texas
Distribution: Debian Sarge
Posts: 20

Rep: Reputation: 0
what's on line 100 of smb.c?
 
Old 12-09-2005, 08:12 PM   #3
i_suck_at_linux
LQ Newbie
 
Registered: Dec 2005
Location: Scotland
Distribution: FC4
Posts: 5

Original Poster
Rep: Reputation: 0
nothing. here's everything before the above error:

[root@localhost vlc-0.8.4]# make
( cd . && cat include/aout_internal.h include/audio_output.h include/beos_specific.h include/charset.h include/codecs.h include/configuration.h include/darwin_specific.h include/intf_eject.h include/iso_lang.h include/main.h include/mmx.h include/modules.h include/modules_inner.h include/mtime.h include/network.h include/os_specific.h include/snapshot.h include/stream_output.h include/variables.h include/video_output.h include/vlc_access.h include/vlc_acl.h include/vlc_bits.h include/vlc_block.h include/vlc_block_helper.h include/vlc_codec.h include/vlc_common.h include/vlc_config.h include/vlc_cpu.h include/vlc_demux.h include/vlc_error.h include/vlc_es.h include/vlc_es_out.h include/vlc_filter.h include/vlc_config_cat.h include/vlc_httpd.h
include/vlc_tls.h include/vlc_md5.h include/vlc_image.h include/vlc_input.h include/vlc_interface.h include/vlc_keys.h include/vlc_messages.h include/vlc_meta.h include/vlc_objects.h include/vlc_osd.h include/vlc_playlist.h include/vlc_spu.h include/vlc_stream.h include/vlc_symbols.h include/vlc_threads_funcs.h include/vlc_threads.h include/vlc_video.h include/vlc_vlm.h include/vlc_vod.h include/vlc_xml.h include/vout_synchro.h include/win32_specific.h ) | \
top_srcdir="." perl ./vlc-api.pl
touch stamp-api
srcdir=. ./toolbox --update-includes
touch src/misc/modules_builtin.h
srcdir=. ./toolbox --update-version
which: no svnversion in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/shep/bin:/sbin/ldconfig:/sbin)
make all-recursive
make[1]: Entering directory `/usr/lib/vlc/vlc-0.8.4'
Making all in intl
make[2]: Entering directory `/usr/lib/vlc/vlc-0.8.4/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/lib/vlc/vlc-0.8.4/intl'
Making all in loader
make[2]: Entering directory `/usr/lib/vlc/vlc-0.8.4/loader'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/lib/vlc/vlc-0.8.4/loader'
Making all in modules
make[2]: Entering directory `/usr/lib/vlc/vlc-0.8.4/modules'
Making all in access
make[3]: Entering directory `/usr/lib/vlc/vlc-0.8.4/modules/access'
make[4]: Entering directory `/usr/lib/vlc/vlc-0.8.4/modules/access'
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYS_LINUX -I../../include `top_builddir="../.." ../../vlc-config --cflags plugin access_file` -Wsign-compare -Wall -pipe -MT libaccess_file_plugin_a-file.o -MD -MP -MF ".deps/libaccess_file_plugin_a-file.Tpo" -c -o libaccess_file_plugin_a-file.o `test -f 'file.c' || echo './'`file.c; \
then mv -f ".deps/libaccess_file_plugin_a-file.Tpo" ".deps/libaccess_file_plugin_a-file.Po"; else rm -f ".deps/libaccess_file_plugin_a-file.Tpo"; exit 1; fi
rm -f libaccess_file_plugin.a
ar cru libaccess_file_plugin.a libaccess_file_plugin_a-file.o
ranlib libaccess_file_plugin.a
gcc -Wsign-compare -Wall -pipe -o libaccess_file_plugin.so libaccess_file_plugin.a -L/usr/local/lib -shared -lpthread -fpic -fPIC -u vlc_entry__0_8_4
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYS_LINUX -I../../include `top_builddir="../.." ../../vlc-config --cflags plugin access_directory` -Wsign-compare -Wall -pipe -MT libaccess_directory_plugin_a-directory.o -MD -MP -MF ".deps/libaccess_directory_plugin_a-directory.Tpo" -c -o libaccess_directory_plugin_a-directory.o `test -f 'directory.c' || echo './'`directory.c; \
then mv -f ".deps/libaccess_directory_plugin_a-directory.Tpo" ".deps/libaccess_directory_plugin_a-directory.Po"; else rm -f ".deps/libaccess_directory_plugin_a-directory.Tpo"; exit 1; fi
rm -f libaccess_directory_plugin.a
ar cru libaccess_directory_plugin.a libaccess_directory_plugin_a-directory.o
ranlib libaccess_directory_plugin.a
gcc -Wsign-compare -Wall -pipe -o libaccess_directory_plugin.so libaccess_directory_plugin.a -L/usr/local/lib -shared -lpthread -fpic -fPIC -u vlc_entry__0_8_4
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYS_LINUX -I../../include `top_builddir="../.." ../../vlc-config --cflags plugin access_udp` -Wsign-compare -Wall -pipe -MT libaccess_udp_plugin_a-udp.o -MD -MP -MF ".deps/libaccess_udp_plugin_a-udp.Tpo" -c -o libaccess_udp_plugin_a-udp.o `test -f 'udp.c' || echo './'`udp.c; \
then mv -f ".deps/libaccess_udp_plugin_a-udp.Tpo" ".deps/libaccess_udp_plugin_a-udp.Po"; else
rm -f ".deps/libaccess_udp_plugin_a-udp.Tpo"; exit 1; fi
rm -f libaccess_udp_plugin.a
ar cru libaccess_udp_plugin.a libaccess_udp_plugin_a-udp.o
ranlib libaccess_udp_plugin.a
gcc -Wsign-compare -Wall -pipe -o libaccess_udp_plugin.so libaccess_udp_plugin.a -L/usr/local/lib -shared -lpthread -fpic -fPIC -u vlc_entry__0_8_4
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYS_LINUX -I../../include `top_builddir="../.." ../../vlc-config --cflags plugin access_tcp` -Wsign-compare -Wall -pipe -MT libaccess_tcp_plugin_a-tcp.o -MD -MP -MF ".deps/libaccess_tcp_plugin_a-tcp.Tpo" -c -o libaccess_tcp_plugin_a-tcp.o `test -f 'tcp.c' || echo './'`tcp.c; \
then mv -f ".deps/libaccess_tcp_plugin_a-tcp.Tpo" ".deps/libaccess_tcp_plugin_a-tcp.Po"; else
rm -f ".deps/libaccess_tcp_plugin_a-tcp.Tpo"; exit 1; fi
rm -f libaccess_tcp_plugin.a
ar cru libaccess_tcp_plugin.a libaccess_tcp_plugin_a-tcp.o
ranlib libaccess_tcp_plugin.a
gcc -Wsign-compare -Wall -pipe -o libaccess_tcp_plugin.so libaccess_tcp_plugin.a -L/usr/local/lib -shared -lpthread -fpic -fPIC -u vlc_entry__0_8_4
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYS_LINUX -I../../include `top_builddir="../.." ../../vlc-config --cflags plugin access_http` -Wsign-compare -Wall -pipe -MT libaccess_http_plugin_a-http.o -MD -MP -MF ".deps/libaccess_http_plugin_a-http.Tpo" -c -o libaccess_http_plugin_a-http.o `test -f 'http.c' || echo './'`http.c; \
then mv -f ".deps/libaccess_http_plugin_a-http.Tpo" ".deps/libaccess_http_plugin_a-http.Po"; else rm -f ".deps/libaccess_http_plugin_a-http.Tpo"; exit 1; fi
rm -f libaccess_http_plugin.a
ar cru libaccess_http_plugin.a libaccess_http_plugin_a-http.o
ranlib libaccess_http_plugin.a
gcc -Wsign-compare -Wall -pipe -o libaccess_http_plugin.so libaccess_http_plugin.a -L/usr/local/lib -shared -lpthread -fpic -fPIC -u vlc_entry__0_8_4
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYS_LINUX -I../../include `top_builddir="../.." ../../vlc-config --cflags plugin access_ftp` -Wsign-compare -Wall -pipe -MT libaccess_ftp_plugin_a-ftp.o -MD -MP -MF ".deps/libaccess_ftp_plugin_a-ftp.Tpo" -c -o libaccess_ftp_plugin_a-ftp.o `test -f 'ftp.c' || echo './'`ftp.c; \
then mv -f ".deps/libaccess_ftp_plugin_a-ftp.Tpo" ".deps/libaccess_ftp_plugin_a-ftp.Po"; else
rm -f ".deps/libaccess_ftp_plugin_a-ftp.Tpo"; exit 1; fi
rm -f libaccess_ftp_plugin.a
ar cru libaccess_ftp_plugin.a libaccess_ftp_plugin_a-ftp.o
ranlib libaccess_ftp_plugin.a
gcc -Wsign-compare -Wall -pipe -o libaccess_ftp_plugin.so libaccess_ftp_plugin.a -L/usr/local/lib -shared -lpthread -fpic -fPIC -u vlc_entry__0_8_4
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -DSYS_LINUX -I../../include `top_builddir="../.." ../../vlc-config --cflags plugin access_smb` -Wsign-compare -Wall -pipe -MT libaccess_smb_plugin_a-smb.o -MD -MP -MF ".deps/libaccess_smb_plugin_a-smb.Tpo" -c -o libaccess_smb_plugin_a-smb.o `test -f 'smb.c' || echo './'`smb.c; \
then mv -f ".deps/libaccess_smb_plugin_a-smb.Tpo" ".deps/libaccess_smb_plugin_a-smb.Po"; else
rm -f ".deps/libaccess_smb_plugin_a-smb.Tpo"; exit 1; fi
 
Old 12-10-2005, 10:15 AM   #4
sandwhale
LQ Newbie
 
Registered: Nov 2004
Location: DFW Texas
Distribution: Debian Sarge
Posts: 20

Rep: Reputation: 0
well, I don't know for sure, but this looks like an issue with the smb.c file - not your make file. These lines

smb.c:101: parse error before "SMBCCTX"
smb.c:101: warning: no semicolon at end of struct or union

indicate a problem when your make file tries to compile smb.c - have you edited that file at any time?
 
Old 12-10-2005, 10:35 AM   #5
arunvk
Member
 
Registered: Nov 2005
Location: India
Distribution: Fedora 29
Posts: 197

Rep: Reputation: 30
u get vlc rpms. they r easier to install. why do u want to build it from source code when u have a easier option.

u can get them at www.videolan.com
 
Old 12-10-2005, 10:59 AM   #6
i_suck_at_linux
LQ Newbie
 
Registered: Dec 2005
Location: Scotland
Distribution: FC4
Posts: 5

Original Poster
Rep: Reputation: 0
I haven't modified the smb.c at all. I got Mplayer installed so I can watch DVD's and stuff, but I really liked VLC in my windoze days and would like to have it again.
This is annoying the hell out of me. Could it have anything to do with the segmentation faults i'm getting when I try and run XMMS? That is an NVIDIA issue I think and i'm about to deal with that anyway, so i'll try and make VLC again after that.
And arunvk: I want to learn how to install programs this way because one day I might decide to go with a non-rpm based distro of linux and besides, it's more fun!
 
Old 12-10-2005, 11:17 AM   #7
void_linux
Member
 
Registered: Aug 2003
Distribution: SuSE
Posts: 73

Rep: Reputation: 15
Agree - why not install vlc via rpm?

Quote:
Originally Posted by arunvk
u get vlc rpms. they r easier to install. why do u want to build it from source code when u have a easier option.

u can get them at www.videolan.com
I agree with arunvk. Is there any particular reason why you are insisting on compiling vlc, when you can install it via rpm?

Another source for vlc rpms is http://rpm.pbone.net. For example:
http://rpm.pbone.net/index.php3/stat....i386.rpm.html
 
Old 12-10-2005, 11:29 AM   #8
i_suck_at_linux
LQ Newbie
 
Registered: Dec 2005
Location: Scotland
Distribution: FC4
Posts: 5

Original Poster
Rep: Reputation: 0
Well, it's pointless going down the rpm route now that i've compiled all the dependancies for vlc. I mean, i've spent ages on it already, and i'd rather finish it now. I didn't have any major problems up till now and it's pointless harping on about what I should have done when i've came this far with the ./configure make make install method.
Don't get me wrong, I probably should have used the rpm's for ease but who cares at this point?

I find it more fun this way, and as a new linux user i'd rather explore as many methods of using the system as I can.
 
Old 12-10-2005, 03:01 PM   #9
arunvk
Member
 
Registered: Nov 2005
Location: India
Distribution: Fedora 29
Posts: 197

Rep: Reputation: 30
if u want to learn installing the hard way i guess its ok. u can refer to this link

http://www.tldp.org/REF/VLC-User-Guide/

there is detailed procedure here for installing vlc. hope that solves ur problem.
 
Old 12-10-2005, 06:26 PM   #10
void_linux
Member
 
Registered: Aug 2003
Distribution: SuSE
Posts: 73

Rep: Reputation: 15
Good luck & best wishes.

Quote:
Originally Posted by i_suck_at_linux
Well, it's pointless going down the rpm route now that i've compiled all the dependancies for vlc. I mean, i've spent ages on it already, and i'd rather finish it now. I didn't have any major problems up till now and it's pointless harping on about what I should have done when i've came this far with the ./configure make make install method.
Don't get me wrong, I probably should have used the rpm's for ease but who cares at this point?

I find it more fun this way, and as a new linux user i'd rather explore as many methods of using the system as I can.
Best of luck compiling. I also compiled vlc the first time for use on my SuSE, as at that time there was no rpm for SuSE. After significant hair pulling, I got it to work (I had different errors than what you are experiencing). .... Now thats all fine and dandy, but eventually an rpm showed up for vlc for my SuSE version. I ignored it, as my compiled version was just as good. And then vlc updated a version, and very soon after another rpm showed up for the new vlc (before I could be bothered to re-compile to the new vlc version). And then I learned the new vlc had a feature I wanted. So then I asked myself, should I recompile, or should I use the new rpm? I mean, after all, I have the dependency's worked out already. Right?? Well, not quite. The new vlc needed newer dependencies. .... So I decided enough was enough. I made my point. Proved I could do it. And I now use the rpms.

Again, best wishes in compiling vlc. Its a great program. But don't dismiss the rpm route out right. A lot depends, on what you want to do with your time. Compile vlc? or perhaps do something else.

Cheers!

Last edited by void_linux; 12-10-2005 at 06:28 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Really, really Weird trouble with make (make error 2) flyeater SUSE / openSUSE 5 06-20-2005 01:05 PM
Gdk-ERROR using VLC clandestine Linux - Software 0 11-02-2004 01:39 PM
lopster v1.2.2 make error: No rule to make target `m4/glibc21.m4' Kropotkin Fedora 0 10-31-2004 12:19 PM
make failing to make with this error. Help needed? vdemuth Linux - Software 4 06-20-2004 04:08 PM
make: cc: command not found make: *** [gzip.o]error 127 zyjk Linux - Newbie 5 02-08-2002 10:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration