bugGnash - The GNU Flash player - Bugs: bug #20138, Fails to build on amd64

 
 

bug #20138: Fails to build on amd64

Submitted by:  None
Submitted on:  Sun 10 Jun 2007 07:52:11 AM UTC  
 
Category: buildSeverity: 3 - Normal
Release: NoneStatus: Invalid
Privacy: PublicAssigned to: Sandro Santilli <strk>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Fri 15 Jun 2007 09:08:24 PM UTC, comment #11:

Sorry, no idea, might be a bug in autoheader, please report this to the bug tracker for your distribution.

Sandro Santilli <strk>
Project MemberIn charge of this item.
Fri 15 Jun 2007 08:50:56 PM UTC, comment #10:

autoheader is version 2.61

Hmm, no SIZET_FMT in config.h.in either

I've attached the file for reference

(file #13067)

Anonymous
Fri 15 Jun 2007 08:27:05 PM UTC, comment #9:

Please also check if you have SIZET_FMT in your config.h.in (in source tree, while config.h is in your build tree, if not the same)

Sandro Santilli <strk>
Project MemberIn charge of this item.
Fri 15 Jun 2007 08:19:58 PM UTC, comment #8:

MM.. then it seems autoheader failed to detect the SIZET_FMT definition it seems.

What version of autoheader do you have ?

Sandro Santilli <strk>
Project MemberIn charge of this item.
Fri 15 Jun 2007 08:17:09 PM UTC, comment #7:

The config.h file I have in the gnash source directory?

If so then I don't have a line like that at all. My config.h is attached to this bug report already if you wish to check.

As for the test you asked me to carry out:

grahame@borgmania:~/gnash$ cat testfile
#define A "another string"
" a string " A " yet another string "
grahame@borgmania:~/gnash$ cpp testfile
# 1 "testfile"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "testfile"

" a string " "another string" " yet another string "
grahame@borgmania:~/gnash$

Anonymous
Fri 15 Jun 2007 06:28:43 PM UTC, comment #6:

Mmm.. it seems your preprocessor doesn't support strings concatenation ?

What's the value of SIZET_FMT in your config.h file ?

Can you try runnign 'cpp' against a file containing the following line ?

#define A "another string"
" a string " A " yet another string "

Sandro Santilli <strk>
Project MemberIn charge of this item.
Fri 15 Jun 2007 05:04:37 PM UTC, comment #5:

removing the backslash from the end of the line you suggested got me a little bit further.

I'm now getting the following error however:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -DPLUGINSDIR=\"/usr/local/lib/gnash/plugins\" -I.. -I. -I.. -I../server -I../server/swf -pthread -I/usr/include/libxml2 -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include -I/usr/include/ffmpeg -g -O2 -pthread -march=athlon64 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -MT libgnashbase_la-extension.lo -MD -MP -MF .deps/libgnashbase_la-extension.Tpo -c extension.cpp -fPIC -DPIC -o .libs/libgnashbase_la-extension.o
./GC.h: In member function 'void gnash::GC::addCollectable(const gnash::GcResource*)':
./GC.h:219: error: expected primary-expression before 'const'
./GC.h:219: error: expected `)' before 'const'
./GC.h:219: error: expected `)' before ';' token
./GC.h: In member function 'void gnash::GC::collect()':
./GC.h:231: error: expected primary-expression before 'const'
./GC.h:231: error: expected `)' before 'const'
./GC.h:231: error: expected `)' before ';' token
./GC.h: In member function 'void gnash::GC::cleanUnreachable()':
./GC.h:310: error: expected primary-expression before 'const'
./GC.h:310: error: expected `)' before 'const'
./GC.h:312: error: expected `)' before ';' token
make: *** [libgnashbase_la-extension.lo] Error 1

Anonymous
Thu 14 Jun 2007 07:22:45 AM UTC, comment #4:

Please try removing the backslash at the end of the fprintf line 1881 of libbase/triangulate_impl.h.

Sandro Santilli <strk>
Project MemberIn charge of this item.
Wed 13 Jun 2007 07:55:35 PM UTC, comment #3:

I'm building using debian unstable. I've tried checking out a clean copy of the code from cvs but I still get the same error message every time.

Anonymous
Wed 13 Jun 2007 11:51:15 AM UTC, comment #2:

Builds for me (gnash-0.7.2) on gentoo

CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -Os -pipe -fstack-protector -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

but doesn't work for YouTube, Lulu, anything, etc.
YouTube shows the end frame with flikering lines over the buttons.
Lulu in a blank box with a grey rectangle across the buttons below.

Anonymous
Sun 10 Jun 2007 09:03:24 AM UTC, comment #1:

Could you please attach config.log and config.h to this bug?

Bastiaan Jacques <bjacques>
Project Member
Sun 10 Jun 2007 07:52:11 AM UTC, original submission:

I tried to build the latest cvs version of gnash on my debian unstable box (amd64) but it keeps failing at the same point:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -DPLUGINSDIR=\"/usr/local/lib/gnash/plugins\" -I.. -I. -I.. -I../server -I../server/swf -pthread -I/usr/include/libxml2 -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include -I/usr/include/ffmpeg -g -O2 -pthread -march=athlon64 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -MT libgnashbase_la-triangulate_float.lo -MD -MP -MF .deps/libgnashbase_la-triangulate_float.Tpo -c triangulate_float.cpp -fPIC -DPIC -o .libs/libgnashbase_la-triangulate_float.o
triangulate_impl.h: In member function 'void poly_env<coord_t>::init(int, const std::vector<coord_t, std::allocator<_CharT> >*)':
triangulate_impl.h:1881: error: expected `)' before 'SIZET_FMT'
triangulate_impl.h: In member function 'void poly_env<coord_t>::init(int, const std::vector<coord_t, std::allocator<_CharT> >*) [with coord_t = float]':
triangulate_impl.h:2238: instantiated from 'void compute_triangulation(std::vector<coord_t, std::allocator<_CharT> >, int, const std::vector<coord_t, std::allocator<_CharT> >, int, std::vector<coord_t, std::allocator<_CharT> >*) [with coord_t = float]'
triangulate_float.cpp:26: instantiated from here
triangulate_impl.h:1881: warning: too many arguments for format
make[2]: *** [libgnashbase_la-triangulate_float.lo] Error 1
make[2]: Leaving directory `/home/grahame/gnash/libbase'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/grahame/gnash'
make: *** [all] Error 2

I'm using gcc 4.1.2
./configure was envoked as './configure --disable-klash --with-plugindir=/usr/lib/mozilla/plugins'

Not sure what other info you need. Feel free to ask if you need more.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #13067:  config.h.in added by None (9KiB - application/octet-stream)
file #13019:  config.h added by None (9KiB - text/x-chdr - config.log and config.h as requested)
file #13020:  config.log added by None (97KiB - text/x-log - config.log and config.h as requested)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by bjacques (Posted a comment)
  •  

    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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 15 Jun 2007 09:08:24 PM UTCstrkStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Fri 15 Jun 2007 08:50:56 PM UTCNoneAttached File-=>Added config.h.in, #13067
    Thu 14 Jun 2007 07:22:45 AM UTCstrkAssigned toNone=>strk
    Mon 11 Jun 2007 10:23:59 PM UTCNoneAttached File-=>Added config.h, #13019
      Attached File-=>Added config.log, #13020

    Back to the top


    Powered by Savane 3.1-cleanup1