bugGnash - The GNU Flash player - Bugs: bug #17348, Compliation error

 
 

bug #17348: Compliation error

Submitted by:  None
Submitted on:  Mon 07 Aug 2006 10:09:06 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Release: NoneStatus: Fixed
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)

Wed 09 Aug 2006 10:01:28 PM UTC, comment #6:

The problem seems to be in the use of namespaces.

In the file NetConnections.cpp, in the line 141, replacing:
RTMPproto proto;

by:
rtmp::RTMPproto proto;

Seems to solve the problem.

Miry

Miriam Ruiz <inniyah>
Wed 09 Aug 2006 09:53:03 PM UTC, comment #5:

I have the same error with GCC 4.1:
i486-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../server -I../../server/swf -I../../libbase -I../../libamf -I../.. -I/usr/include/SDL -I/usr/include/SDL -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/atk-1.0 -I/usr/include/libxml2 -DQT_THREAD_SUPPORT -D_REENTRANT -g -O2 -ansi -pedantic -Wno-long-long -Wall -MT NetConnection.lo -MD -MP -MF .deps/NetConnection.Tpo -c NetConnection.cpp -fPIC -DPIC -o .libs/NetConnection.o
NetConnection.cpp: In member function 'bool gnash::NetConnection::connect(const char*)':
NetConnection.cpp:141: error: 'RTMPproto' was not declared in this scope
NetConnection.cpp:141: error: expected `;' before 'proto'
NetConnection.cpp:143: error: 'proto' was not declared in this scope
make[4]: *** [NetConnection.lo] Error 1

i486-linux-gnu-g++ --version
i486-linux-gnu-g++ (GCC) 4.1.2 20060729 (prerelease) (Debian 4.1.1-10)

The code was get from a clean checkout from CVS (no update) at 2006-08-09 21h 17m UTC

Configuration string is:

./configure CFLAGS="-Wall -g -Werror-implicit-function-declaration -O2" \
--host=i486-linux-gnu --build=i486-linux-gnu \
--prefix=/usr --mandir=\${prefix}/share/man --infodir=\${prefix}/share/info \
--enable-mp3 --enable-plugin --enable-klash --enable-sound=gst \
--with-plugindir=\${prefix}/lib/gnash \
--enable-shared=yes --enable-static=yes --enable-sdk-install \
--disable-rpath --enable-lotsa-warnings

libamf directory exists and those files are there:

$ ls libamf/.libs/
amf.o libgnashamf.la libgnashamf.so libgnashamf.so.0.0.0
libgnashamf.a libgnashamf.lai libgnashamf.so.0 rtmp.o

Miry

Miriam Ruiz <inniyah>
Mon 07 Aug 2006 06:51:09 PM UTC, comment #4:

Sorry, I confirm this is fixed with current CVS.

Anonymous
Mon 07 Aug 2006 06:13:11 PM UTC, comment #3:

Yes, I am doing a build after a clean cvs checkout.

The libamf dir exists and I find amf.o and rtmp.o builded when I get this error.

Anonymous
Mon 07 Aug 2006 06:00:35 PM UTC, comment #2:

Fixed in cvs, rtmp namespace was not in search path

Sandro Santilli <strk>
Project MemberIn charge of this item.
Mon 07 Aug 2006 01:44:52 PM UTC, comment #1:

I assume you are doing this after a cvs update ? Does the libamf directory exist, and is libamf getting built with both amf.o and rtmp.o ?

Rob Savoye <rsavoye>
Project Administrator
Mon 07 Aug 2006 10:09:06 AM UTC, original submission:

I am getting this error compiling gnash with gcc 3.3.6

g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../server -I../../server/swf -I../../libbase -I../../libamf -I../.. -I/usr/include/SDL -I/usr/include/SDL -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/atk-1.0 -I/usr/include/libxml2 -DQT_THREAD_SUPPORT -D_REENTRANT -g -O2 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -MT NetConnection.lo -MD -MP -MF .deps/NetConnection.Tpo -c NetConnection.cpp -fPIC -DPIC -o .libs/NetConnection.o
NetConnection.cpp: In member function `bool gnash::NetConnection::connect(const
char*)':
NetConnection.cpp:141: error: `RTMPproto' undeclared (first use this function)
NetConnection.cpp:141: error: (Each undeclared identifier is reported only once
for each function it appears in.)
NetConnection.cpp:141: error: syntax error before `;' token
NetConnection.cpp:143: error: `proto' undeclared (first use this function)
make[3]: *** [NetConnection.lo] Error 1
make[3]: Leaving directory `/home/fabio/sorgenti/gnash/server/asobj'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/fabio/sorgenti/gnash/server'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fabio/sorgenti/gnash'
make: *** [all] Error 2

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

Date Changed By Updated Field Previous Value => Replaced By
Mon 07 Aug 2006 06:00:35 PM UTCstrkStatusNeed Info=>Fixed
  Assigned torsavoye=>strk
  Open/ClosedOpen=>Closed
Mon 07 Aug 2006 01:44:52 PM UTCrsavoyeStatusNone=>Need Info
  Assigned toNone=>rsavoye

Back to the top


Powered by Savane 3.1-cleanup1