bugGnash - The GNU Flash player - Bugs: bug #18429, compile error (missing -pthread,...

 
 

bug #18429: compile error (missing -pthread, -ptrheads or -mthreads)

Submitted by:  None
Submitted on:  Fri 01 Dec 2006 08:09:57 AM UTC  
 
Category: buildSeverity: 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)

Mon 12 Feb 2007 07:30:18 PM UTC, comment #7:

This should be fixed in CVS. Please test.

Sandro Santilli <strk>
Project MemberIn charge of this item.
Mon 18 Dec 2006 07:45:50 PM UTC, comment #6:

Edit you boost/config/user.hpp so it finds your compiler, something on BOOST*CONFIG. Fixed it for me on Irix.

Markus Gothe <nihilus>
Project Member
Wed 06 Dec 2006 08:53:07 AM UTC, comment #5:

I bet "some days ago" was before we started using boost threads (we were using boost w/out it's threads lib before).
Anyway, does adding one of the flags in the summary fixes it for you ?
Does 'make dumpconfig' show any of the above flags ? Maybe in PTHREAD_LIBS ?

Sandro Santilli <strk>
Project MemberIn charge of this item.
Tue 05 Dec 2006 04:23:05 PM UTC, comment #4:

Note that worked fine up to some days ago...

Anonymous
Tue 05 Dec 2006 03:37:31 PM UTC, comment #3:

Yepp, I've had BIG problems with this under pkgsrc on IRIX.

Markus Gothe <nihilus>
Project Member
Tue 05 Dec 2006 03:34:54 PM UTC, comment #2:

Are you sure ? Shouldn't those flags be explicitly given instead ?
Maybe they whould be part of BOOST_LIBS ?

Sandro Santilli <strk>
Project MemberIn charge of this item.
Tue 05 Dec 2006 03:32:51 PM UTC, comment #1:

This is due to the installation of boost and not realated to gnash-code...

Markus Gothe <nihilus>
Project Member
Fri 01 Dec 2006 08:09:57 AM UTC, original submission:

I get this error while compiling gnash:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -DPLUGINSDIR=\"/usr/local/lib/gnash/plugins\" -I.. -I. -I.. -I../server -I/usr/include/libxml2 -I/usr/include/SDL -I/usr/include -I/usr/include -g -O0 -march=pentium3 -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -MT libgnashbase_la-sharedlib.lo -MD -MP -MF .deps/libgnashbase_la-sharedlib.Tpo -c sharedlib.cpp -fPIC -DPIC -o .libs/libgnashbase_la-sharedlib.o
In file included from /usr/include/boost/thread/detail/config.hpp:18,
from /usr/include/boost/thread/mutex.hpp:15,
from sharedlib.cpp:37:
/usr/include/boost/config/requires_threads.hpp:47:5: #error "Compiler threading support is not turned on. Please set the correct command line options for threading: -pthread (Linux), -pthreads (Solaris) or -mthreads (Mingw32)"
In file included from sharedlib.cpp:37:
/usr/include/boost/thread/mutex.hpp:58: error: `cv_state' was not declared in
this scope
/usr/include/boost/thread/mutex.hpp:58: error: `state' was not declared in this
scope
/usr/include/boost/thread/mutex.hpp:58: error: invalid data member
initialization
/usr/include/boost/thread/mutex.hpp:58: error: (use `=' to initialize static
data members)
/usr/include/boost/thread/mutex.hpp:58: error: variable or field `do_lock'
declared void
/usr/include/boost/thread/mutex.hpp:58: error: declaration of `int
boost::mutex::do_lock'
/usr/include/boost/thread/mutex.hpp:56: error: conflicts with previous
declaration `void boost::mutex::do_lock()'
/usr/include/boost/thread/mutex.hpp:59: error: `cv_state' was not declared in
this scope
/usr/include/boost/thread/mutex.hpp:59: error: `state' was not declared in this
scope
/usr/include/boost/thread/mutex.hpp:59: error: invalid data member
initialization
/usr/include/boost/thread/mutex.hpp:59: error: variable or field `do_unlock'
declared void
/usr/include/boost/thread/mutex.hpp:59: error: declaration of `int
boost::mutex::do_unlock'
/usr/include/boost/thread/mutex.hpp:57: error: conflicts with previous
declaration `void boost::mutex::do_unlock()'
/usr/include/boost/thread/mutex.hpp:100: error: `cv_state' was not declared in
this scope
/usr/include/boost/thread/mutex.hpp:100: error: `state' was not declared in
this scope
/usr/include/boost/thread/mutex.hpp:100: error: invalid data member
initialization
/usr/include/boost/thread/mutex.hpp:100: error: variable or field `do_lock'
declared void
/usr/include/boost/thread/mutex.hpp:100: error: declaration of `int
boost::try_mutex::do_lock'
/usr/include/boost/thread/mutex.hpp:97: error: conflicts with previous
declaration `void boost::try_mutex::do_lock()'
/usr/include/boost/thread/mutex.hpp:101: error: `cv_state' was not declared in
this scope
/usr/include/boost/thread/mutex.hpp:101: error: `state' was not declared in
this scope
/usr/include/boost/thread/mutex.hpp:101: error: invalid data member
initialization
/usr/include/boost/thread/mutex.hpp:101: error: variable or field `do_unlock'
declared void
/usr/include/boost/thread/mutex.hpp:101: error: declaration of `int
boost::try_mutex::do_unlock'
/usr/include/boost/thread/mutex.hpp:99: error: conflicts with previous
declaration `void boost::try_mutex::do_unlock()'
/usr/include/boost/thread/mutex.hpp:144: error: `cv_state' was not declared in
this scope
/usr/include/boost/thread/mutex.hpp:144: error: `state' was not declared in
this scope
/usr/include/boost/thread/mutex.hpp:144: error: invalid data member
initialization
/usr/include/boost/thread/mutex.hpp:144: error: variable or field `do_lock'
declared void
/usr/include/boost/thread/mutex.hpp:144: error: declaration of `int
boost::timed_mutex::do_lock'
/usr/include/boost/thread/mutex.hpp:140: error: conflicts with previous
declaration `void boost::timed_mutex::do_lock()'
/usr/include/boost/thread/mutex.hpp:145: error: `cv_state' was not declared in
this scope
/usr/include/boost/thread/mutex.hpp:145: error: `state' was not declared in
this scope
/usr/include/boost/thread/mutex.hpp:145: error: invalid data member
initialization
/usr/include/boost/thread/mutex.hpp:145: error: variable or field `do_unlock'
declared void
/usr/include/boost/thread/mutex.hpp:145: error: declaration of `int
boost::timed_mutex::do_unlock'
/usr/include/boost/thread/mutex.hpp:143: error: conflicts with previous
declaration `void boost::timed_mutex::do_unlock()'
/usr/include/boost/thread/detail/lock.hpp: In instantiation of `boost::detail::thread::lock_ops<boost::mutex>':
/usr/include/boost/thread/detail/lock.hpp:81: instantiated from `void boost::detail::thread::scoped_lock<Mutex>::lock() [with Mutex = boost::mutex]'
/usr/include/boost/thread/detail/lock.hpp:71: instantiated from `boost::detail::thread::scoped_lock<Mutex>::scoped_lock(Mutex&, bool) [with Mutex = boost::mutex]'
sharedlib.cpp:105: instantiated from here
/usr/include/boost/thread/detail/lock.hpp:34: error: no type named `cv_state'
in `class boost::mutex'
/usr/include/boost/thread/detail/lock.hpp:53: error: no type named `cv_state'
in `class boost::mutex'
/usr/include/boost/thread/detail/lock.hpp:57: error: no type named `cv_state'
in `class boost::mutex'
sharedlib.cpp:62: warning: `void gnash::gnash_mutex_seterror()' defined but not
used
sharedlib.cpp:68: warning: `const char* gnash::gnash_mutex_geterror()' defined
but not used
make[2]: *** [libgnashbase_la-sharedlib.lo] Error 1
make[2]: Leaving directory `/home/fabio/sorgenti/gnash/libbase'
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

 

Carbon-Copy List
  • -unavailable- added by nihilus (Posted a comment)
  • -unavailable- added by strk (Updated the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 09 Apr 2007 09:54:57 AM UTCstrkStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Mon 12 Feb 2007 07:30:18 PM UTCstrkStatusWont Fix=>Ready For Test
      Assigned tonihilus=>strk
    Tue 05 Dec 2006 03:32:51 PM UTCnihilusStatusNone=>Wont Fix
    Tue 05 Dec 2006 02:23:12 PM UTCstrkCategoryNone=>build
      Assigned toNone=>nihilus
      Summarycompile error=>compile error (missing -pthread, -ptrheads or -mthreads)

    Back to the top


    Powered by Savane 3.1-cleanup1