[PlanetCCRMA] hydrogen build error

Fernando Lopez-Lezcano nando@ccrma.Stanford.EDU
Fri Dec 17 19:01:01 2004


On Fri, 2004-11-26 at 22:36, Florin Andrei wrote:
> Rebuilding the Hydrogen-0.9.0 src.rpm on Fedora 3:
> 
> source='LocalFileMng.cpp' object='LocalFileMng.o' libtool=no \
> depfile='.deps/LocalFileMng.Po' tmpdepfile='.deps/LocalFileMng.TPo' \
> depmode=gcc3 /bin/sh ../admin/depcomp \
> g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/FLAC   -
> DQT_THREAD_SUPPORT  -D_REENTRANT  -O3  -c -o LocalFileMng.o `test -f
> 'LocalFileMng.cpp' || echo './'`LocalFileMng.cpp
> In file included from LocalFileMng.cpp:27:
> xml/tinyxml.h: In static member function `static const char*
> TiXmlBase::GetChar(const char*, char*)':
> xml/tinyxml.h:174: error: `assert' undeclared (first use this function)
> xml/tinyxml.h:174: error: (Each undeclared identifier is reported only
> once for each function it appears in.)
> xml/tinyxml.h: In member function `void TiXmlDocument::SetError(int)':
> xml/tinyxml.h:970: error: `assert' undeclared (first use this function)
> make[3]: *** [LocalFileMng.o] Error 1
> make[3]: Leaving directory `/usr/src/redhat/BUILD/hydrogen-0.9.0/lib'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/usr/src/redhat/BUILD/hydrogen-0.9.0/lib'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/redhat/BUILD/hydrogen-0.9.0'
> make: *** [all] Error 2

This one is very weird. For some reason <assert.h> is _not_ being
included at all. I resorted to including several #warning's in the
system assert.h and it is not even being looked at. I don't know why.
Replacing <assert.h> with a explicit </usr/include/assert.h> seems to
fix this problem. 

C(++) hackers out there, why???

-- Fernando

PS: I've restarted work on the fc3 build. Due to an amazingly stupid
mistake I was building everything in the wrong root, so I had to start
from the beginning. Ha. Fun. I discovered this when I finally got
another disk for my laptop to start testing on fc3. Again, sorry for the
delay, I was hoping to have already released a lot of packages. 

Of course this is good, you can keep making music instead of trying to
upgrade to the latest of everything :-)