Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41621 - media-plugins/live compilation failed due to the absence of strstream.h
Summary: media-plugins/live compilation failed due to the absence of strstream.h
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 36815
  Show dependency tree
 
Reported: 2004-02-14 20:14 UTC by Dmitriy Morozov
Modified: 2004-10-01 03:53 UTC (History)
4 users (show)

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


Attachments
Patch to get live-2003.04.11 compile (strstream.patch,1.09 KB, patch)
2004-02-29 07:45 UTC, Andre Hinrichs
Details | Diff
And the necessary ebuild (live-2003.04.11.ebuild,1.31 KB, text/plain)
2004-02-29 07:47 UTC, Andre Hinrichs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitriy Morozov 2004-02-14 20:14:42 UTC
When compiling media-plugins/live, the compilation breaks due to absence of the file strstream.h. locate strstream shows that plain "strstream" exists (for backwards compatibility) under /usr/lib/gcc-lib/..., but it has no extension.

Reproducible: Always
Steps to Reproduce:
1. emerge live
2.
3.

Actual Results:  
Long compilation...
c++ -c -Iinclude -I../UsageEnvironment/include -I. -O3 -march=pentium4
-funroll-loops -fprefetch-loop-arrays -pipe -Wno-deprecated
-DSOCKLEN_T=socklen_t -Wall -DBSD=1 Groupsock.cpp
Groupsock.cpp:29:23: strstream.h: No such file or directory
Groupsock.cpp: In member function `Boolean Groupsock::output(UsageEnvironment&, 
   unsigned char, unsigned char*, unsigned int, DirectedNetInterface*)':
Groupsock.cpp:210: error: `ostrstream' undeclared (first use this function)
Groupsock.cpp:210: error: (Each undeclared identifier is reported only once for 
   each function it appears in.)
Groupsock.cpp:210: error: parse error before `;' token
Groupsock.cpp:211: error: `out' undeclared (first use this function)
Groupsock.cpp: In member function `virtual Boolean 
   Groupsock::handleRead(unsigned char*, unsigned int, unsigned int&, 
   sockaddr_in&)':
Groupsock.cpp:230: error: parse error before `;' token
make[1]: *** [Groupsock.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/live-2003.04.11/work/live/groupsock'
make: *** [groupsock/libgroupsock.a] Error 2

!!! ERROR: media-plugins/live-2003.04.11 failed.
!!! Function src_compile, Line 26, Exitcode 2
!!! (no error message)


Expected Results:  
Successful compilation.
Comment 1 numerodix 2004-02-17 01:06:44 UTC
I can reproduce this.

# emerge info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-rc1-love1)
=================================================================
System uname: 2.6.3-rc1-love1 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
Gentoo Base System version 1.4.3.13
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distcc sandbox"
GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/ http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://gentoo.linux.no/pub/gentoo ftp://sunsite.dk/mirrors/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apm avi berkdb bonobo cdr crypt encode esd foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 imlib java jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla moznocompose moznoirc moznomail mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd tetex truetype x86 xml2 xmms xv zlib"
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2004-02-18 02:03:19 UTC
install dev-libs/STLport and try again
please report if works
Comment 3 numerodix 2004-02-18 04:48:15 UTC
I installed dev-libs/STLport-4.5.3-r2 and I still get the same error.
Comment 4 Luca Barbato gentoo-dev 2004-02-18 05:09:22 UTC
seems that we have to patch it to change that include with the proper one...
Comment 5 Patrick Kursawe (RETIRED) gentoo-dev 2004-02-18 05:49:19 UTC
Please try the latest ~x86 version. The last two versions should be safe for gcc 3.x.

Comment 6 numerodix 2004-02-18 08:51:30 UTC
Yes, a later version works fine. I have media-plugins/live-2003.04.11 here and I was in the process of downgrading (moving away from experimental packages) when I encountered this proble,
Comment 7 Dmitriy Morozov 2004-02-18 16:22:02 UTC
~x86 works for me (compiling and installing it works), however, after recompiling the mplayer, it does not play the stream I was hoping to play. I don't know if the bug is on the server end, however, from the messages that I'm getting it seems that something is wrong with mplayer - before it at least recognized that it was an RTSP stream, but it couldn't play it without live.com plugins, now it says:
This stream is non-cacheable
Stream not seekable!
Initiated "video/MP4V-ES" RTP subsession
Initiated "audio/MPEG4-GENERIC" RTP subsession
Unknown MPlayer format code for MIME type "audio/MPEG4-GENERIC"
FPS not specified in the header or invalid, use the -fps option.
==========================================================================
*** Try to upgrade /home/dmitriy/.mplayer/codecs.conf from etc/codecs.conf
*** If it still does not work, read DOCS/codecs.html!
Cannot find codec for audio format 0x0.
==========================================================================
Audio: no sound
Video: no video

So it would be nice to try it with a version that's marked stable to see if it works, but I guess I don't have a choice.
Comment 8 Andre Hinrichs 2004-02-29 07:45:36 UTC
Created attachment 26591 [details, diff]
Patch to get live-2003.04.11 compile
Comment 9 Andre Hinrichs 2004-02-29 07:47:17 UTC
Created attachment 26592 [details]
And the necessary ebuild
Comment 10 Andre Hinrichs 2004-02-29 07:49:15 UTC
With the above patches I got the live package compiled.
Try it and post if it works for you as well.
Comment 11 Steve Garcia 2004-03-13 10:11:44 UTC
Note that this was equivalent to bug #44005, which was resolved by a version bump to live-2004-03-05.

Unfortunately, no Gentoo mirrors seem to have picked up that package, and live.com has moved on to live-2004-03-12, deleting all non-current packages.  This means we the most current ~x86 ebuild is broken again since no package actually exists.  We need another version bump to live-2004-03-12, although at the pace live.com is revising the package and deleting old versions, this may not do much good.  As of right now, they have issued 8 versions this month, an it's only the 13th of the month.
Comment 12 Olivier Crete (RETIRED) gentoo-dev 2004-04-22 08:43:58 UTC
The current stable version doesnt build... is it possible to unmask a later version?
Comment 13 Joel Martin (RETIRED) gentoo-dev 2004-04-23 12:28:07 UTC
Somebody provide me with a way to test it, and I will unmask the newer version
since it hasn't had any bug reports for a while.

For example, a server that is streaming something that is live.com format that I 
can stream from would be nice.

Anyone?
Comment 14 Brian Harring (RETIRED) gentoo-dev 2004-06-01 07:03:55 UTC
Status?  mplayer-1.0_pre4 has a nasty has_version hack I'd *love* to get rid of, but requires live-2004.01.05.
Comment 15 Brian Harring (RETIRED) gentoo-dev 2004-06-02 14:43:50 UTC
Current stable version is 2004.03.27 .  Still an issue?
Comment 16 Patrick Kursawe (RETIRED) gentoo-dev 2004-10-01 03:53:21 UTC
No reaction for several months, I think we can bury this.