bugGnash - The GNU Flash player - Bugs: bug #15754, Unable to compile on Debian/amd64

 
 

bug #15754: Unable to compile on Debian/amd64

Submitted by:  None
Submitted on:  Tue 14 Feb 2006 08:35:47 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Rob Savoye <rsavoye>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 14 Feb 2006 08:39:53 PM UTC, comment #1:

Do a CVS update, and rerun autogen.sh. I already checked in a fix for this earlier today. This directory isn't needed yet, it's just holding code as I reverse engineer the AMF format. And yes, it appears to have 64 bit problems, which I've been able to reproduce.

Rob Savoye <rsavoye>
Project AdministratorIn charge of this item.
Tue 14 Feb 2006 08:35:47 PM UTC, original submission:

Hi,

I downloaded gnash from cvs.

Here's my configure-line:
./configure --enable-mp3 --disable-docbook --with-firefox=~/.mozilla/firefox/

I tried:
- with and without running ./autogen.sh first
- with and without parameters for configure
- with and without docbook installed

First, make failed with the following errors:
amf.cpp: In member function 'int amf::AMF::readElement(void, void)':
amf.cpp:128: warning: format '%lld' expects type 'long long int', but argument 2 has type 'amf::amfnum_t'
amf.cpp:178: warning: format '%lld' expects type 'long long int', but argument 2 has type 'amf::amfnum_t'
amf.cpp:182: warning: unused variable 'length'
amf.cpp:125: warning: enumeration value 'Unsupported' not handled in switch
amf.cpp:125: warning: enumeration value 'Recordset' not handled in switch
amf.cpp:125: warning: enumeration value 'XMLObject' not handled in switch
amf.cpp:125: warning: enumeration value 'TypedObject' not handled in switch
amf.cpp: In member function 'int amf::AMF::extractElementLength(void*)':
amf.cpp:402: error: cast from 'char*' to 'int' loses precision
amf.cpp:402: error: 'round' was not declared in this scope
amf.cpp:420: error: cast from 'char*' to 'int' loses precision
amf.cpp:420: error: cast from 'char*' to 'int' loses precision
amf.cpp:448: error: cast from 'char*' to 'int' loses precision
amf.cpp:448: error: cast from 'char*' to 'int' loses precision
make[2]: *** [amf.lo] Fejl 1
make[2]: Forlader katalog '/home/alexander/utpakk/gnash/libamf'
make[1]: *** [all-recursive] Fejl 1
make[1]: Forlader katalog '/home/alexander/utpakk/gnash'
make: *** [all] Fejl 2

After rewriting amf.cpp, so that (int)x - (int)somefunction() was (int)(x - (char*)somefunction()), the compilation got further.

Here's the next failure:

g++ -g -O2 -I/usr/include/SDL -D_REENTRANT -I.. -I. -I../server -g -O2 -o .libs/amftest amftest.o -L/usr/lib -L/usr/X11R6/lib ../libbase/.libs/libgnashbase.so /usr/lib64/libGL.so /usr/lib/libSDL.so /usr/lib/libSDL_mixer.so /usr/lib/libjpeg.so /usr/lib/libxml2.so -lm /usr/lib/libogg.so ./.libs/libgnashamf.so -L/usr/share/qt3/lib -lGLU -laudio -lXt -lXext -lncurses -lslang -lX11 -lpthread -lpng -ldl -lz -lrt -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/lib64
/usr/lib/gcc/x86_64-linux-gnu/4.0.3/../../../../lib64/crt1.o: In function `_start':../sysdeps/x86_64/elf/start.S:109: undefined reference to `main'
collect2: ld returned 1 exit status
make[2]: *** [amftest] Fejl 1
make[2]: Forlader katalog '/home/alexander/utpakk/gnash/libamf'
make[1]: *** [all-recursive] Fejl 1
make[1]: Forlader katalog '/home/alexander/utpakk/gnash'
make: *** [all] Fejl 2

It seems like this is related to me running x86_64, and now I'm stuck.

I will gladly send any required info at request.

My e-mail is:
alexander@pvv$.org (remove the $)

Best regards,
Alexander Rødseth

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 14 Feb 2006 08:39:53 PM UTCrsavoyeStatusNone=>Fixed
  Assigned toNone=>rsavoye
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1