Log in Register FAQ Memberlist Search pcHDTV Forum Index
pcHDTV Forum

pcHDTV Forum Index -> xine-hd -> Complile error under Fedora 4
Post new topic  This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic 
Complile error under Fedora 4
PostPosted: Tue Jul 26, 2005 10:38 am Reply with quote
johnc
 
Joined: 26 Jul 2005
Posts: 2




I am running Fedora 4 (FC4) which has been fully updated, including kernel 2.6.12-1.

When I try to compile xine-hd library all modules compile except for memcpy.c.

memcpy.c: In function 'sse_memcpy':
memcpy.c:221: error: invalid lvalue in assignment
memcpy.c:222: error: invalid lvalue in assignment
memcpy.c:244: error: invalid lvalue in assignment
memcpy.c:245: error: invalid lvalue in assignment
memcpy.c: In function 'mmx_memcpy':
memcpy.c:299: error: invalid lvalue in assignment
memcpy.c:300: error: invalid lvalue in assignment
memcpy.c: In function 'mmx2_memcpy':
memcpy.c:366: error: invalid lvalue in assignment
memcpy.c:367: error: invalid lvalue in assignment
make[3]: *** [memcpy.lo] Error 1
make[3]: Leaving directory `/home/johnc/Build/xine-hd/xine-hd-lib-1-rc6a/src/xine-utils'

The troublesome code at lines 222 and 244 is:

((const unsigned char *)from) += 64;
((unsigned char *)to)+=64;

The remaining errors are similar to the above.

Any suggestions?

BTW: The same code compiled swell under SUSE 9.3. However, there were other issues which caused me to give FC4 a whirl.
View user's profile Send private message
PostPosted: Tue Jul 26, 2005 6:43 pm Reply with quote
pcHDTV_tech
 
Joined: 16 Dec 2004
Posts: 295




FC4 shipped with GCC4 which the developers decided to make "-w pendantic" warnings now be errors. It's a PITA because it now breaks a lot of code over some semantic interpretation of being ANSI standard code. I don't know the best solution other than to go back to an earlier version of gcc.

Rusty
View user's profile Send private message Visit poster's website
PostPosted: Wed Jul 27, 2005 7:59 am Reply with quote
johnc
 
Joined: 26 Jul 2005
Posts: 2




Rusty, thank you for the lead!

As a result I went to the xine home site (http://xinehq.de/) and picked up the source for
xine-lib-1.1.0 which is claimed to compile under gcc-4. And the good news is it indeed did compile without error.

Xine-hd-ui compiled except for xine-hd-ui-0.99.2/src/xitk/mediamark.c which generated an lvalue error two in places calling xine_strdupa(). I was able to change the error to a warning by using intermediate variables:

if(mrl && (!strlen(mrl))){
s1=(char*)mrl;
s2=((char *)(*mmkeditor->mmk)->mrl);
/* xine_strdupa((char *) mrl, (*mmkeditor->mmk)->mrl); */
xine_strdupa(s1,s2);
}

The remaining issues was that "confiigure" complained that it could not find libpng, so I downloaded libpng-1.2.8-config.tar and compiiled with shared libraries.

Anyway Rusty, as a result of your Iead was able to build and startup xine-hd. Whether or not I introducted some bugs remains to be seen.

johnc
View user's profile Send private message
Same issues
PostPosted: Fri Dec 23, 2005 10:39 pm Reply with quote
Lordimpal
 
Joined: 23 Dec 2005
Posts: 1




I ran into the same problem when in Breezy Ubuntu for the xine-hd(v0.99.2) sources packaged by pchdtv.I had to make one more modification a couple lines down using the same technique. The following was the result for those of you who are basically at my level of knowledge (minimal with repairing code):
/* MODIFIED BY ADAM 12/24/05 00:23 see 6 lines below */
char *s1, *s2, *s3;
if(mmkeditor->mmk) {

mrl = atoa(xitk_inputtext_get_text(mmkeditor->mrl));
if(mrl && (!strlen(mrl)))
/*MODIFIED BY ADAM 12/24/05 00:23 sourced from http://www.pchdtv.com/forum/viewtopic.php?t=916&view=previous&sid=af2806beb63534b04a0c2832057d0857
Changed due to rules in GCC4 making "-w pendantic" errors instead of warnings, use intermediate variable to change back to warning*/
s1=(char*)mrl;
s2=((char *)(*mmkeditor->mmk)->mrl);
/*xine_strdupa((char *) mrl, (*mmkeditor->mmk)->mrl);*/
xine_strdupa(s1,s2);

ident = atoa(xitk_inputtext_get_text(mmkeditor->ident));
if(ident && (!strlen(ident)))
/*MODIFIED see 9 lines above*/
s3=((char *) ident);
/*xine_strdupa((char *) ident, mrl);*/
xine_strdupa(s3, mrl);

My orignial error (for searching purposes) was: "mediamark.c:3071: error: invalid lvalue in assignment"

Thanks
View user's profile Send private message
PostPosted: Sat Feb 04, 2006 1:36 pm Reply with quote
dnult
 
Joined: 02 Feb 2006
Posts: 10
Location: Austin, TX




View the response I just posted in the "xine impossible to compile' thread. I think it may help. Has to do with passing a compiler referernce to ./configure so that a different gcc is used. gcc4 is just too darn picky to work with xine. Hopefully someday that will change, but for now, check the other thread.
View user's profile Send private message
Complile error under Fedora 4
  pcHDTV Forum Index -> xine-hd
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 7 Hours  
Page 1 of 1  

  
  
 Post new topic  This topic is locked: you cannot edit posts or make replies.  


Powered by phpBB © 2001-2003 phpBB Group
Theme created by Vjacheslav Trushkin