Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57285 - helixplayer 1.0 beta1 fails on my sytem
Summary: helixplayer 1.0 beta1 fails on my sytem
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: 2004-07-16 05:45 UTC by Giacomo Perale
Modified: 2005-04-11 06:24 UTC (History)
2 users (show)

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


Attachments
ntpl patch as suggested by discussion (helix-ntpl.diff,500 bytes, patch)
2004-08-04 14:09 UTC, Alex C
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Giacomo Perale 2004-07-16 05:45:36 UTC
helixplayer fails on my system but seems to work for other users. this is the first error I found in build.out:

g++ -pipe -Wall -Wreturn-type -fno-exceptions -march=pentium -mcpu=pentium --permissive -fno-rtti -Wno-ctor-dtor-privacy -O2  -I../../common/runtime/pub -I/usr/X11R6/include -Ipub/platform/unix -I../include -I../container/pub -I../dbgtool/pub -I../util/pub -I../fileio/pub -I../runtime/pub -I./pub -I. -include rel/common_system_ribodefs.h -fPIC -DPIC -o rel/obj/platform/unix/pthreadthreads.o -c platform/unix/pthreadthreads.cpp
In file included from platform/unix/pthreadthreads.cpp:46:
pub/platform/unix/pthreadthreads.h:92: error: base type `sem_t' fails to be a
   struct or class type
platform/unix/pthreadthreads.cpp: In member function `virtual HX_RESULT
   HXPthreadMutex::_Lock()':
platform/unix/pthreadthreads.cpp:145: warning: unused variable `int nResult'
platform/unix/pthreadthreads.cpp: In member function `virtual HX_RESULT
   HXPthreadMutex::_Unlock()':
platform/unix/pthreadthreads.cpp:198: warning: unused variable `int nResult'
platform/unix/pthreadthreads.cpp: In constructor `
   HXPthreadSemaphore::HXPthreadSemaphore(long unsigned int)':
platform/unix/pthreadthreads.cpp:378: error: cannot convert `HXsem_t*' to `
   sem_t*' for argument `1' to `int sem_init(sem_t*, int, unsigned int)'
platform/unix/pthreadthreads.cpp: In destructor `virtual
   HXPthreadSemaphore::~HXPthreadSemaphore()':
platform/unix/pthreadthreads.cpp:388: error: cannot convert `HXsem_t*' to `
   sem_t*' for argument `1' to `int sem_destroy(sem_t*)'
platform/unix/pthreadthreads.cpp: In member function `virtual HX_RESULT
   HXPthreadSemaphore::_Post()':
platform/unix/pthreadthreads.cpp:396: error: cannot convert `HXsem_t*' to `
   sem_t*' for argument `1' to `int sem_post(sem_t*)'
platform/unix/pthreadthreads.cpp: In member function `virtual HX_RESULT
   HXPthreadSemaphore::_Wait()':
platform/unix/pthreadthreads.cpp:409: error: cannot convert `HXsem_t*' to `
   sem_t*' for argument `1' to `int sem_wait(sem_t*)'
platform/unix/pthreadthreads.cpp: In member function `virtual HX_RESULT
   HXPthreadSemaphore::_TryWait()':
platform/unix/pthreadthreads.cpp:418: error: cannot convert `HXsem_t*' to `
   sem_t*' for argument `1' to `int sem_trywait(sem_t*)'
platform/unix/pthreadthreads.cpp: In member function `virtual HX_RESULT
   HXPthreadSemaphore::_GetValue(int*)':
platform/unix/pthreadthreads.cpp:475: error: cannot convert `HXsem_t*' to `
   sem_t*' for argument `1' to `int sem_getvalue(sem_t*, int*)'
make: *** [rel/obj/platform/unix/pthreadthreads.o] Error 1
Time used: 1.62 seconds
ERROR: UNIXCompile(common/system) ERROR: Make failed.

then several errors that complain lack of file syslibs.a 

I think this is due to something in my system, but I've tried reverting all ebuild dependencies to stable x86 and the problem isn't related to gtk+/glib nor to linux26-headers (it fails with 2.4 too). Same happens when I try to compile manually from sources. Could this error be related to NPTL?

Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7)
=================================================================
System uname: 2.6.7 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /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/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.tiscali.nl/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3ds X aalib acpi acpi4linux alsa antlr apache2 audiofile avi berkdb bonobo cdr crypt cups divx4linux dvd encode esd f77 faac faad fam fbcon fbdev flac foomaticdb freetype gd gd-external gif gimpprint gnome gnomedb gpm gstreamer gtk gtk2 gtkhtml imagemagick imlib java javascript jce jpeg libcaca libg++ libsamplerate libwww live mad matroska mikmod mmap mmx mng motif mozilla mozinterfaceinfo moznocompose moznoirc moznomail mozp3p mozsvg mpeg mysql ncurses nls nptl objc oggvorbis opengl pam pcap pdflib perl pic plotutils png ppds python qt quicktime radeon readline samba sdl slang spell sse ssl svga tcltk tcpd tetex theora threads tiff truetype type1 usb vim-with-x wmf wxwindows x86 xface xinerama xml xml2 xmms xv xvid yv12 zlib"


Reproducible: Always
Steps to Reproduce:
Comment 1 Chris White (RETIRED) gentoo-dev 2004-07-16 10:28:22 UTC
This is most definately a nptl issue.  I'd say build without, but as I know that's not something that can easily be worked with.  If you CAN however, that would be the solution.  I'll see if I can rectify the issue.
Comment 2 Alex C 2004-08-04 14:09:04 UTC
Created attachment 36768 [details, diff]
ntpl patch as suggested by discussion

Here's a patch fitting the reccomendations made on the Helix list in this
thread: 
http://lists.helixcommunity.org/pipermail/helix-client-dev/2004-July/001963.html


Only apply this patch on systems using ntpl
Comment 3 Giacomo Perale 2004-08-05 02:43:27 UTC
I've modified the ebuild adding Alex C's patch with these lines:

IUSE="mozilla nptl"

[...]

src_unpack() {
        
        [...]
        
        if use nptl; then
            epatch ${FILESDIR}/nptl.patch
        fi
}


helixplayer compiles and works now
Comment 4 Jan Brinkmann (RETIRED) gentoo-dev 2005-04-11 06:17:49 UTC
is this still an issue with newer versions?
Comment 5 Giacomo Perale 2005-04-11 06:24:09 UTC
Latest version of realplayer (same codebase) work without problems, so I think that this bug can be closed.