[Ardour-Dev] New Machine won't build Ardour
Mark Jones
mdjones0978-ardour at yahoo.com
Sat Jul 28 09:45:02 PDT 2007
Problem solved. I had chosen to install pthread
libpthread-dev
from the ubuntu cd.
Well, I don't know what this puppy is, but it screws up pthreads pretty badly and that keeps
things from compiling.
If it isn't installed, you still have pthreads installed......
--- Mark Jones <mdjones0978-ardour at yahoo.com> wrote:
> The one in /usr/local/include is a symlink that I added to try and fix the problem. Ubuntu
> seems
> to put boost in /usr instead of /usr/local.
>
> This morning, I tried something else. I create this test.cc file
>
> #include <boost/shared_ptr.hpp>
>
> int main() {
>
> return 0;
> }
>
> And when I try to compile it:
> mark at record:~$ g++ test.cc
> /usr/include/pthread.h:285: error: conflicting declaration typedef struct pthread_st*
> pthread_t
> /usr/include/bits/pthreadtypes.h:36: error: pthread_t has a previous declaration as typedef
> long unsigned int pthread_t
> /usr/include/pthread.h:286: error: conflicting declaration typedef struct pthread_attr_st*
> pthread_attr_t
> /usr/include/bits/pthreadtypes.h:43: error: pthread_attr_t has a previous declaration as
> typedef union pthread_attr_t pthread_attr_t
> /usr/include/pthread.h:287: error: conflicting declaration typedef int pthread_key_t
> /usr/include/bits/pthreadtypes.h:109: error: pthread_key_t has a previous declaration as
> typedef unsigned int pthread_key_t
> /usr/include/pthread.h:289: error: conflicting declaration typedef int pthread_mutexattr_t
> /usr/include/bits/pthreadtypes.h:79: error: pthread_mutexattr_t has a previous declaration as
> typedef union pthread_mutexattr_t pthread_mutexattr_t
> /usr/include/pthread.h:290: error: conflicting declaration typedef struct pthread_mutex_st*
> pthread_mutex_t
> /usr/include/bits/pthreadtypes.h:73: error: pthread_mutex_t has a previous declaration as
> typedef union pthread_mutex_t pthread_mutex_t
> /usr/include/pthread.h:291: error: conflicting declaration typedef int pthread_condattr_t
> /usr/include/bits/pthreadtypes.h:105: error: pthread_condattr_t has a previous declaration as
> typedef union pthread_condattr_t pthread_condattr_t
> /usr/include/pthread.h:292: error: conflicting declaration typedef struct pthread_cond_st*
> pthread_cond_t
> /usr/include/bits/pthreadtypes.h:99: error: pthread_cond_t has a previous declaration as
> typedef union pthread_cond_t pthread_cond_t
> /usr/include/pthread.h:293: error: conflicting declaration typedef int pthread_rwlockattr_t
> /usr/include/bits/pthreadtypes.h:142: error: pthread_rwlockattr_t has a previous declaration
> as
> typedef union pthread_rwlockattr_t pthread_rwlockattr_t
> /usr/include/pthread.h:294: error: conflicting declaration typedef struct pthread_rwlock_st*
> pthread_rwlock_t
> /usr/include/bits/pthreadtypes.h:136: error: pthread_rwlock_t has a previous declaration as
> typedef union pthread_rwlock_t pthread_rwlock_t
> m
>
> Which is making me think, hmmmmm, I wonder what is really wrong. I'll dig into it some more to
> see what I can find. If anyone else has had this problem, please let me know what you found..
>
> Mark
>
>
> --- Doug McLain <doug at nostar.net> wrote:
>
> > Well, you are the first to report a problem here, but according to the
> > scons docs the call to CheckLib() is wrong:
> >
> > http://www.scons.org/doc/latest/HTML/scons-api/SCons.Conftest-module.html#CheckHeader
> >
> > The docs say that "C" or C++" is to be used as the argument to language,
> > where we use "CXX". Try changing CXX to C++ on line 768 of SConstruct,
> > so that it looks like this:
> >
> > if conf.CheckHeader ('boost/shared_ptr.hpp', language='C++') == False:
> >
> > Just a thought, stressing again that CXX works fine for everyone else.
> > I'm more concerned about locate finding shared_ptr.hpp in /usr/include
> > yet one also existing in /usr/local/include. Was the first one a
> > symlink? The boosty poitner stuff is header only (right?) so i dont
> > think multiple installs would cause much problems but something is
> > definately off there. Hope this helps
> >
> > -Doug
> >
> > Mark Jones wrote:
> > > This is the 3rd machine I'm setting up, but this one just won't build ardour. Scons is
> > claiming
> > > that boost isn't installed, but I know better, running ubuntu (not ubuntustudio yet) Any
> > Ideas?
> > >
> > > Checking for usb_interrupt_write() in C library usb... no
> > > Checking for C header file linux/input.h... yes
> > > Checking for FLAC__seekable_stream_decoder_init() in C++ library FLAC... yes
> > > Checking for C++ header file boost/shared_ptr.hpp... no
> > > Boost header files do not appear to be installed.
> > >
> > > mark at record:~/2.0-ongoing$ locate shared_ptr.hpp
> > > /usr/include/boost/shared_ptr.hpp
> > >
> > > mark at record:~/2.0-ongoing$ ls -l /usr/local/include/boost/shared_ptr.hpp
> > > -rw-r--r-- 1 root root 11648 2005-04-02 06:00 /usr/local/include/boost/shared_ptr.hpp
> > >
> > >
> > > _______________________________________________
> > > ardour-dev mailing list
> > > ardour-dev at lists.ardour.org
> > > http://lists.ardour.org/listinfo.cgi/ardour-dev-ardour.org
> >
>
>
More information about the Ardour-Dev
mailing list