Page 1 of 1

vlc compile error on Linux

Posted: 21 Mar 2006 11:55
by montylee
vl c gives compile error on Red Hat Linux 9:
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[1]: *** [libaccess_smb_plugin_a-smb.o] Error 1
make[1]: Leaving directory `/home/ramandeeps/Wallpapers/vlc-0.8.4a/modules/access'


please help

Posted: 21 Mar 2006 12:04
by montylee
i was able to remove some errors by declaring some data types. Now i get the following error:

smb.c: In function `Open':
smb.c:215: warning: implicit declaration of function `smbc_new_context'
smb.c:215: warning: assignment makes pointer from integer without a cast
smb.c:221: dereferencing pointer to incomplete type
smb.c:222: dereferencing pointer to incomplete type
smb.c:224: warning: implicit declaration of function `smbc_init_context'
smb.c:227: warning: implicit declaration of function `smbc_free_context'
smb.c:232: dereferencing pointer to incomplete type
smb.c:242: dereferencing pointer to incomplete type
smb.c: In function `Close':
smb.c:308: dereferencing pointer to incomplete type
smb.c: In function `Seek':
smb.c:333: dereferencing pointer to incomplete type
smb.c: In function `Read':
smb.c:360: dereferencing pointer to incomplete type
make[4]: *** [libaccess_smb_plugin_a-smb.o] Error 1
make[4]: Leaving directory `/home/ramandeeps/Wallpapers/vlc-0.8.4a/modules/access'
make[3]: *** [all-modules] Error 1
make[3]: Leaving directory `/home/ramandeeps/Wallpapers/vlc-0.8.4a/modules/access'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ramandeeps/Wallpapers/vlc-0.8.4a/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ramandeeps/Wallpapers/vlc-0.8.4a'
make: *** [all] Error 2


PLease help

Re: vlc compile error on Linux

Posted: 08 May 2006 04:32
by Guest
vl c gives compile error on Red Hat Linux 9:
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[1]: *** [libaccess_smb_plugin_a-smb.o] Error 1
make[1]: Leaving directory `/home/ramandeeps/Wallpapers/vlc-0.8.4a/modules/access'


please help

comment . //#undef USE_CTX

Posted: 22 Jun 2006 09:13
by spike(ko)
hi.
i was had such trouble.
i don't know exactly but i was passed the error using comment like this.

100 : #undef USE_CTX // add
101 : #ifdef USE_CTX
102 : ....