Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107553 - Totem 1.2.0 compile failure.
Summary: Totem 1.2.0 compile failure.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: x86 Linux
: Highest major (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 2.12
  Show dependency tree
 
Reported: 2005-09-28 19:43 UTC by Sylvain BERTRAND
Modified: 2005-11-29 06:54 UTC (History)
1 user (show)

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


Attachments
updated totem ebuild to use the new idl patch (totem-1.2.0.ebuild,3.49 KB, text/plain)
2005-10-03 17:27 UTC, Gonzalo Aguilar Delgado
Details
The new IDL patch for 1.2.0 version (totem-1.2.0-idl.patch,818 bytes, patch)
2005-10-03 17:28 UTC, Gonzalo Aguilar Delgado
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain BERTRAND 2005-09-28 19:43:21 UTC
make[2]: Entering directory `/var/tmp/portage/totem-1.2.0/work/totem-1.2.0/src'
/usr/lib/mozilla-firefox/xpidl -m typelib -I
/usr/lib/mozilla-firefox/include/idl totem_mozilla_scripting.idl && \
mv totem_mozilla_scripting.xpt libtotem_mozilla.xpt
totem_mozilla_scripting.idl:23: can't open included file nsISupports.idl for reading

input callback returned failure
make[2]: *** [libtotem_mozilla.xpt] Erreur 2
make[2]: Leaving directory `/var/tmp/portage/totem-1.2.0/work/totem-1.2.0/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/var/tmp/portage/totem-1.2.0/work/totem-1.2.0'
make: *** [all] Erreur 2

!!! ERROR: media-video/totem-1.2.0 failed.
!!! Function gnome2_src_compile, Line 48, Exitcode 2
!!! compile failure
!!! If you need support, post the topmost build error, NOT this status message.


My use flags are: a52, dvd, firefox, flac, gnome, mad, mpeg, ogg, theora, vorbis
, win32codecs xv
My mozilla-firefox-1.0.7-r2 use flags are:gnome mozsvg and truetype

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Luis Felipe 2005-09-28 23:04:04 UTC
Same problem here. 
Comment 2 Mike Gardiner (RETIRED) gentoo-dev 2005-09-29 02:52:25 UTC
Can you post your emerge info and the output of
`equery f mozilla | grep "nsISupports.idl"`, thanks.
Comment 3 Sylvain BERTRAND 2005-09-29 03:48:08 UTC
equery f mozilla | grep "nsISupports.idl"-->empty output
equery f mozilla-firefox | grep
"nsISupports.idl"-->/usr/lib/mozilla-firefox/idl/nsISupports.idl
Comment 4 Daniel Gryniewicz (RETIRED) gentoo-dev 2005-09-29 08:16:37 UTC
Totem appear to not be able to build against firefox.  It's not's uncommon,
evolution can't either.  We either need to get firefox fixed, or take the
firefox flag out of totem.
Comment 5 John N. Laliberte (RETIRED) gentoo-dev 2005-09-29 08:22:36 UTC
i'll check later today before filing another bug for firefox as well but:

http://bugs.gentoo.org/show_bug.cgi?id=104934 
( bug i filed for a similar issue with mozilla )

^^ this looks like the same problem.

to work around we can manually add / change it, so getting rid of the firefox
flag shouldn't be necessary.
Comment 6 Sylvain BERTRAND 2005-09-29 13:18:41 UTC
I replaced my firefox use flag with the mozilla use flag, and guess:

make[2]: Entering directory `/var/tmp/portage/totem-1.2.0/work/totem-1.2.0/src'
/usr/lib/mozilla/xpidl -m typelib -I /usr/lib/mozilla/include/idl
totem_mozilla_scripting.idl && \
mv totem_mozilla_scripting.xpt libtotem_mozilla.xpt
totem_mozilla_scripting.idl:23: can't open included file nsISupports.idl for reading

input callback returned failure
make[2]: *** [libtotem_mozilla.xpt] Erreur 2
make[2]: Leaving directory `/var/tmp/portage/totem-1.2.0/work/totem-1.2.0/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/var/tmp/portage/totem-1.2.0/work/totem-1.2.0'
make: *** [all] Erreur 2

!!! ERROR: media-video/totem-1.2.0 failed.
!!! Function gnome2_src_compile, Line 48, Exitcode 2
!!! compile failure
!!! If you need support, post the topmost build error, NOT this status message.
Comment 7 Lars S. Jensen 2005-09-29 14:43:26 UTC
The problem is the location of the idl's.
It is  /usr/lib/mozilla/idl 
not in /usr/lib/mozilla/include/idl
It is the same for /usr/lib/mozilla-firefox/idl
Workaround to build it is to do a:
 ln -s /usr/lib/mozilla/idl /usr/lib/mozilla/include/idl
Comment 8 Sylvain BERTRAND 2005-09-29 16:25:29 UTC
Well, I created a "media-video/totem" overlay and I got rid of the
totem-1.1.5-idl.patch which deals with IDL paths in totem-1.2.0.ebuild. This
patch not applied implies totem 1.2.0 to compile and install properly as far as
my system is concerned (mozilla-1.7.12-r2).
Mozilla-1.7.12-r2 uses /usr/lib/mozilla/idl and this patch is screewing the path
to /usr/lib/mozilla/include/idl that does NOT exit in this version of mozilla.

So a gentoo dev should modify the ebuild in order to get rid of this patch.
Comment 9 Gonzalo Aguilar Delgado 2005-10-03 17:27:36 UTC
Created attachment 69810 [details]
updated totem ebuild to use the new idl patch
Comment 10 Gonzalo Aguilar Delgado 2005-10-03 17:28:10 UTC
Created attachment 69811 [details, diff]
The new IDL patch for 1.2.0 version
Comment 11 Gonzalo Aguilar Delgado 2005-10-03 17:28:27 UTC
This bug is a excesive patching problem. This happens because in version 1.2.0
someone (AllanonJL?) is appliying the totem-1.1.5-idl.patch and this is WRONG!!!!!

It will work without this patch. The idl directory for my latest gentoo builds
is MOZILLA_ROOT/idl not MOZILLA_ROOT/includes/idl as the patch suggests. 

I include a modification of idl patch for 1.2.0 it should be on
/usr/portage/media-video/totem/files and the updated totem-1.2.0 ebuild.
Comment 12 John N. Laliberte (RETIRED) gentoo-dev 2005-10-03 17:39:27 UTC
The patch was not wrong for the time ( and still needs to be applied if you run
specific versions of mozilla ).  

The idl path was wrong in the previously stabled mozilla ebuilds, and they had
to stabilize a later version due to a security fix.

During the security fix, they also fixed where the files went.  Thats why its
unnecessary now.

The patch was necessary at the time, your just seeing the error due to a newly
stabilized package that fixed the original problem.

We will be updating this shortly.
Comment 13 Mike Gardiner (RETIRED) gentoo-dev 2005-10-07 09:32:30 UTC
Here's the fix for applying the patch depending on versions,

--- /usr/portage/media-video/totem/totem-1.2.0.ebuild   2005-09-17
06:35:51.000000000 +0800
+++ totem-1.2.0.ebuild  2005-10-08 00:13:35.000000000 +0800
@@ -97,8 +97,15 @@
                                        help/es/Makefile.in \
                                        help/ru/Makefile.in

-       # fix the IDL path ( AllanonJL )
-       epatch ${FILESDIR}/totem-1.1.5-idl.patch
+       # fix the IDL path ( AllanonJL ) for older versions
+       # of mozilla that don't set idlpath correctly.
+       if use firefox; then
+               has_version '>=www-client/mozilla-firefox-1.0.7' || \
+                       epatch ${FILESDIR}/totem-1.1.5-idl.patch
+       else
+               has_version '>=www-client/mozilla-1.0.7' || \
+                       epatch ${FILESDIR}/totem-1.1.5-idl.patch
+       fi
        # fix nsIDOMWindow.h include ( AllanonJL )
        epatch ${FILESDIR}/totem-1.1.5-nsi.patch
        # fix for italian translation

But we still have the problem of firefox-xpcom.pc not defining idldir. Mine
doesn't (1.0.7-r2) but Dan's does (1.0.7-r3). So we still need to iron that out
before it's fixed.

Comment 14 Leonardo Boshell (RETIRED) gentoo-dev 2005-10-08 05:31:37 UTC
Totem has been modified to compile against gecko-sdk, instead of mozilla or
firefox, and the relevant USE flag is now 'nsplugin'. Please test this with
totem-1.2.0-r1.
Comment 15 Mike Gardiner (RETIRED) gentoo-dev 2005-10-08 08:41:39 UTC
Leo, isn't it possible to compile against firefox, mozilla or gecko-sdk? The
comment here would be "but I've got mozilla/firefox allready installed, why do I
need to install gecko-sdk as well?"

Can we || the deps between all three (using the fixed/newest mozilla/firefox
versions?)
Comment 16 Chris Nicola 2005-11-02 13:01:03 UTC
I have tried the new ebuild in portage with -nsplugin and I am getting a
configure error.

checking whether to compile the mozilla plugin... yes
checking which gecko to use... configure: error: Gecko "gecko-sdk" not found

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/totem-1.2.0-r2/work/totem-1.2.0/config.log

!!! ERROR: media-video/totem-1.2.0-r2 failed.
!!! Function econf, Line 495, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.

I have gecko-sdk-1.7.8 so I may try upgrading to see if that solves the problem.    
Comment 17 Chris Nicola 2005-11-02 13:02:28 UTC
Sorry that should say USE="nsplugin" that '-' is not intended.  My bad.  
Comment 18 Karl Zollner 2005-11-29 05:20:51 UTC
Same exact error message here as descibed by Chris Nicola...



Calculating dependencies ...done!
[ebuild   R   ] media-video/totem-1.2.0-r2  +a52 +debug +dvd +flac +gnome +lirc
+mad +mpeg +nsplugin* +ogg +theora +vorbis +win32codecs +xine +xv 0 kB

Total size of downloads: 0 kB

Do you want me to merge these packages? [Yes/No] yes
>>> emerge (1 of 1) media-video/totem-1.2.0-r2 to /
>>> md5 src_uri ;-) totem-1.2.0.tar.bz2
>>> Unpacking source...
>>> Unpacking totem-1.2.0.tar.bz2 to /var/tmp/portage/totem-1.2.0-r2/work *
Applying totem-1.2.0-gecko-sdk.patch ...                        [ ok ] *
Applying totem-1.2.0-lang_it_fix.patch ...                      [ ok ] *
Applying totem-1.2.0-gmoduledep.patch ...                       [ ok ] * Running
aclocal ...                                             [ ok ] * Running
libtoolize ...                                          [ ok ] * Running aclocal
...                                             [ ok ] * Running autoconf ...  
                                         [ ok ] * Running autoheader ...       
                                  [ ok ] * Running automake ...                
                           [ ok ] * Fixing OMF Makefile: help/C/Makefile.in
 * Fixing OMF Makefile: help/de/Makefile.in
 * Fixing OMF Makefile: help/es/Makefile.in
 * Fixing OMF Makefile: help/fr/Makefile.in
 * Fixing OMF Makefile: help/ru/Makefile.in
 * Fixing OMF Makefile: omf.make
>>> Source unpacked.
 * Running elibtoolize in: totem-1.2.0
 *   Applying portage-1.2.0.patch ...
 *   Applying sed-1.5.6.patch ...
QA Notice: USE Flag 'doc' not in IUSE for media-video/totem-1.2.0-r2
 * econf: updating totem-1.2.0/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating totem-1.2.0/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --build=i686-pc-linux-gnu --disable-gtk --enable-lirc
--enable-nautilus --enable-mozilla --with-mozilla=gecko-sdk
MOZILLA_PLUGINDIR=/usr/lib/nsbrowser --enable-debug=yes --enable-gtk-doc
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-g++... i686-pc-linux-gnu-g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether i686-pc-linux-gnu-g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of i686-pc-linux-gnu-g++... gcc3
checking dependency style of i686-pc-linux-gnu-g++... (cached) gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none
neededchecking dependency style of i686-pc-linux-gnu-gcc... gcc3
checking dependency style of i686-pc-linux-gnu-gcc... (cached) gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by i686-pc-linux-gnu-gcc... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for /usr/i686-pc-linux-gnu/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/i686-pc-linux-gnu-nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... i686-pc-linux-gnu-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... i686-pc-linux-gnu-g++ -E
checking for i686-pc-linux-gnu-g77... i686-pc-linux-gnu-g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether i686-pc-linux-gnu-g77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/i686-pc-linux-gnu-nm -B output from
i686-pc-linux-gnu-gcc object... ok
checking for objdir... .libs
checking for i686-pc-linux-gnu-ar... i686-pc-linux-gnu-ar
checking for i686-pc-linux-gnu-ranlib... i686-pc-linux-gnu-ranlib
checking for i686-pc-linux-gnu-strip... i686-pc-linux-gnu-strip
checking for correct ltmain.sh version... yes
checking if i686-pc-linux-gnu-gcc static flag  works... yes
checking if i686-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for i686-pc-linux-gnu-gcc option to produce PIC... -fPIC
checking if i686-pc-linux-gnu-gcc PIC flag -fPIC works... yes
checking if i686-pc-linux-gnu-gcc supports -c -o file.o... yes
checking whether the i686-pc-linux-gnu-gcc linker
(/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by i686-pc-linux-gnu-g++... /usr/i686-pc-linux-gnu/bin/ld
checking if the linker (/usr/i686-pc-linux-gnu/bin/ld) is GNU ld... yes
checking whether the i686-pc-linux-gnu-g++ linker
(/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking for i686-pc-linux-gnu-g++ option to produce PIC... -fPIC
checking if i686-pc-linux-gnu-g++ PIC flag -fPIC works... yes
checking if i686-pc-linux-gnu-g++ supports -c -o file.o... yes
checking whether the i686-pc-linux-gnu-g++ linker
(/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for i686-pc-linux-gnu-g77 option to produce PIC... -fPIC
checking if i686-pc-linux-gnu-g77 PIC flag -fPIC works... yes
checking if i686-pc-linux-gnu-g77 supports -c -o file.o... yes
checking whether the i686-pc-linux-gnu-g77 linker
(/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for intltool >= 0.20... 0.33 found
checking for perl... /usr/bin/perl
checking for XML::Parser... ok
checking for iconv... /usr/bin/iconv
checking for msgfmt... /usr/bin/msgfmt
checking for msgmerge... /usr/bin/msgmerge
checking for xgettext... /usr/bin/xgettext
checking for i686-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for NVTV... checking for backend libraries... checking for XINE... yes
xine-lib
checking for Linux... yes
checking whether to compile vanity... no
checking for EXTRA_GNOME... yes
checking whether iso-codes has iso-639 domain... yes
checking for GTK... yes
checking whether to compile the mozilla plugin... yes
checking which gecko to use... configure: error: Gecko "gecko-sdk" not found

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/totem-1.2.0-r2/work/totem-1.2.0/config.log

!!! ERROR: media-video/totem-1.2.0-r2 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.


I have gecko-sdk 1.7.8 installed, along with mozilla 1.7.12-r2 and
mozilla-firefox-1.5_rc3-r2...

I will also check if it works with the new(er) gecko-sdk.....
if the new(er) geck-sdk doesn't work this bug should be re-opened
Comment 19 Karl Zollner 2005-11-29 06:54:26 UTC
ok...the totem mozilla plugin builds fine with :
 net-libs/gecko-sdk-1.7.12-r1

just to let everyone know.....