Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33826 - vlc 0.6.2 failed compiling
Summary: vlc 0.6.2 failed compiling
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-19 07:04 UTC by navidson
Modified: 2003-11-21 21:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to build vlc plugin for mozilla-1.5 (vlc-0.6.2-mozilla-1.5.patch,1.19 KB, patch)
2003-11-19 14:27 UTC, Olivier Castan
Details | Diff
Patch to build with ffmpeg-0.4.8 (ffmpeg.patch,437 bytes, patch)
2003-11-19 14:29 UTC, Olivier Castan
Details | Diff
vlc-0.6.2-r1.ebuild (vlc-0.6.2-r1.ebuild,6.39 KB, text/plain)
2003-11-19 14:30 UTC, Olivier Castan
Details
Patch to build vlc plugin for mozilla-1.5 (v2) (vlc-0.6.2-mozilla-1.5.patch,1.17 KB, patch)
2003-11-20 12:03 UTC, Olivier Castan
Details | Diff
vlc-0.6.2-r1.ebuild (v2) (vlc-0.6.2-r1.ebuild,6.48 KB, text/plain)
2003-11-20 12:04 UTC, Olivier Castan
Details
Patch to build vlc plugin for mozilla-1.5 (v3) (vlc-0.6.2-mozilla-1.5.patch,392 bytes, patch)
2003-11-21 11:46 UTC, Olivier Castan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description navidson 2003-11-19 07:04:06 UTC
when recompilg vlc after updated mozilla from 1.4-r3 to 1.5-r1 vlc failed on
compiling in module "mozilla"

if g++ -DHAVE_CONFIG_H -I. -I. -I..   -DSYS_LINUX -I../include
`top_builddir=".." ../vlc-config --cxxflags mozilla pic`  -Imozilla
-Wsign-compare -Wsign-compare -Wall  -finline-limit-30000 -pipe -MT
libplugin_a-vlcshell.o -MD -MP -MF ".deps/libplugin_a-vlcshell.Tpo" \
  -c -o libplugin_a-vlcshell.o `test -f 'vlcshell.cpp' || echo './'`vlcshell.cpp; \
then mv -f ".deps/libplugin_a-vlcshell.Tpo" ".deps/libplugin_a-vlcshell.Po"; \
else rm -f ".deps/libplugin_a-vlcshell.Tpo"; exit 1; \
fi
vlcshell.cpp:209: erreur de syntaxes avantle jeton 
Comment 1 navidson 2003-11-19 07:04:06 UTC
when recompilg vlc after updated mozilla from 1.4-r3 to 1.5-r1 vlc failed on
compiling in module "mozilla"

if g++ -DHAVE_CONFIG_H -I. -I. -I..   -DSYS_LINUX -I../include
`top_builddir=".." ../vlc-config --cxxflags mozilla pic`  -Imozilla
-Wsign-compare -Wsign-compare -Wall  -finline-limit-30000 -pipe -MT
libplugin_a-vlcshell.o -MD -MP -MF ".deps/libplugin_a-vlcshell.Tpo" \
  -c -o libplugin_a-vlcshell.o `test -f 'vlcshell.cpp' || echo './'`vlcshell.cpp; \
then mv -f ".deps/libplugin_a-vlcshell.Tpo" ".deps/libplugin_a-vlcshell.Po"; \
else rm -f ".deps/libplugin_a-vlcshell.Tpo"; exit 1; \
fi
vlcshell.cpp:209: erreur de syntaxes avantle jeton « ) »
vlcshell.cpp: Dans function « NPError NPP_SetWindow(NPP_t*, NPWindow*) »:
vlcshell.cpp:456: «struct NPSetWindowCallbackStruct» n'a pas de membre nommé «
   display »
make[3]: *** [libplugin_a-vlcshell.o] Erreur 1
make[3]: Leaving directory `/var/tmp/portage/vlc-0.6.2/work/vlc-0.6.2/mozilla'
make[2]: *** [all] Erreur 2
make[2]: Leaving directory `/var/tmp/portage/vlc-0.6.2/work/vlc-0.6.2/mozilla'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/var/tmp/portage/vlc-0.6.2/work/vlc-0.6.2'
make: *** [all] Erreur 2

Reproducible: Always
Steps to Reproduce:
1.update mozilla to 1.5-r1
2.compile vlc 0.6.2
3.use : +arts +qt +ncurses +dvd +gtk +nls -3dfx +svga +fbcon +esd +kde +X +alsa
+ggi +oggvorbis +gnome +xv +oss +sdl +aalib +slp +truetype -v4l +xvid -lirc
+wxwindows +imlib +mozilla -dvb -debug -faad +xosd +matroska -altivec

Actual Results:  
i use 0.6.2 installed previously

Expected Results:  
compiling done

gcc flags options :

CFLAGS="-mmmx -m3dnow  -march=athlon-tbird -O2 -pipe -fomit-frame-pointer
-fforce-addr -falign-functions=4 -fprefetch-loop-arrays -maccumulate-outgoing-args"

mozilla 1.5-r1 compiled with USE options +java +crypt -ipv6 +gtk2 +ssl -ldap
-gnome -debug -mozcalendar -mozaccess -mozxmlterm -moznoirc -moznomail
-moznocompose -moznoxft
Comment 2 Olivier Castan 2003-11-19 14:27:16 UTC
Created attachment 20956 [details, diff]
Patch to build vlc plugin for mozilla-1.5

This issue is not x86 specific, I have the same problem both on ppc and x86.
This is due to changes in mozilla headers. I've created a small patch to add
the correct header references in the code. There's another small patch to cope
with ffmpeg-0.4.8 instead of downgrading to ffmpeg-0.4.7, and finally the
ebuild vlc-0.6.2-r1. Seems to work fine on x86 (but not as fine as mplayer with
some wmv and I won't compare with a build against ffmpeg-0.4.7), I'll report
later for ppc.
Comment 3 Olivier Castan 2003-11-19 14:29:11 UTC
Created attachment 20957 [details, diff]
Patch to build with ffmpeg-0.4.8
Comment 4 Olivier Castan 2003-11-19 14:30:40 UTC
Created attachment 20958 [details]
vlc-0.6.2-r1.ebuild
Comment 5 Olivier Castan 2003-11-20 12:03:37 UTC
Created attachment 20996 [details, diff]
Patch to build vlc plugin for mozilla-1.5 (v2)

Corrections for the patch and the ebuild : the build was done but the plugin
always made mozilla crash... (there's was an undefined reference in the lib).
x86 version seems to behave correctly when testing at
http://fredrik.hubbe.net/plugger/test.html
Tested on PPC with both ffmpeg-0.4.7 and ffmpeg-0.4.8 (some problems with asf
files not present on x86)
Are there some issues when both vlcplugin and mplayerplug-in are installed ?
Comment 6 Olivier Castan 2003-11-20 12:04:33 UTC
Created attachment 20997 [details]
vlc-0.6.2-r1.ebuild (v2)
Comment 7 Nick Hadaway 2003-11-21 10:06:51 UTC
vlc-0.6.2 now depends on =mozilla-1.4* 
Comment 8 Olivier Castan 2003-11-21 11:46:53 UTC
Created attachment 21042 [details, diff]
Patch to build vlc plugin for mozilla-1.5 (v3)

Removed stuff which was useless in the patch since '-DMOZ_X11 -DOJI' was
introduced in the CFLAGS.
The plugin was still broken on PPC (but not x86) because of ffmpeg build :
created bug #34013 and uploaded a patch.
Comment 9 Luca Barbato gentoo-dev 2003-11-21 21:23:31 UTC
Now builds against -1.5, the new mozilla has a mozilla-config.h that you should include before any other mozilla include ^^;

About the ppc issue, as I said in the other bug you filled, please one issue per bug if isn't really related.