Re: problems with building the CVS checkout of roadrunner

[email protected] (Jonas Borgström) 04 Sep 2002 19:55:20 +0200
Newsgroups gmane.network.beep.roadrunner.general
Message-ID <[email protected]>
Michael McLay <[email protected]> writes:

> I'm having some trouble getting started with building the CVS version of 
> roadrunner, the profiles, and the Python wrapper. I have found instructions 
> for extracting the files from CVS, but no instructions on how to build from 
> CVS.
> 
> To generate the ./configure file from the CVS tree I ran autoconf on the 
> confgure.ac file. Next I ran ./configure and then finally I ran make and then 
> "make install".  The following libraries were installed in /usr/local/lib by 
> "make install"
> 

The ./autogen.sh script should be used to generate the ./configure file for 
all modules in the CVS.

> 
> The compile step failed when running make in the doc/resources directory. (I'm 
> compiling on Rehat 7.3).  The following errors occured:
> 
> gcc -I../.. -D_REENTRANT -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include 
> -I/usr/include/libxml2 -DRR_DEBUG_NET_ENABLE -c roadrunner-scan.c  -fPIC 
> -DPIC -o .libs/roadrunner-scan.lo
> roadrunner-scan.c: In function `output_widget_args':
> roadrunner-scan.c:673: structure has no member named `n_property_specs'
> roadrunner-scan.c:675: structure has no member named `property_specs'
> Compilation of scanner failed
> make[3]: *** [scan-build.stamp] Error 1
> make[3]: Leaving directory `/home/mclay/roadrunner/roadrunner/doc/reference'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/mclay/roadrunner/roadrunner/doc'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/mclay/roadrunner/roadrunner'
> make: *** [all-recursive-am] Error 2
> 

This is because RedHat 7.3 comes with an old version (0.5.9) of the gtk-doc package.
So the solution to this compile problem is to upgrade this package to version 0.9 or 
greater or to simply remove it.

> When trying to build the pyrr module it failed with autoconf problems.
> 
> [me@farad pyrr] autoconf configure.ac > configure
> autoconf: Undefined macros:
> configure.ac:14:AC_DISABLE_STATIC
> 
> I looked in the roadrunner and Python configure.in and configure files and did 
> not find AC_DISABLE_STATIC defined. I tried it with the two versions of 
> autoconfig that are supplied with the Readhat distribution. (version 2.13 and 
> 2.53) The 2.53 version claimed additional possibly undefined macros.
> 
> I tried running the generated configure file in spite of the errors from 
> autoconf.  Here's the result:
> 
> [me@farad pyrr] ./configure
> loading cache ./config.cache
> ./configure: line 528: syntax error near unexpected token 
> `AM_INIT_AUTOMAKE(pyrr,'
> ./configure: line 528: `AM_INIT_AUTOMAKE(pyrr, $PYRR_VERSION)'
> [me@farad pyrr]
> 

Do you get the same problem when using ./autogen.sh to generate the configure script?

But if you want to test pyrr, make sure that you have patched the pyGtk source code
with this patch  http://afs.codefactory.se/~jonas/pygtk-1.99.12-pyrr-1.diff to avoid
some threading issues.

> 
> BTW, do the profiles need to be placed in the roadrunner/profiles directory or 
> can the be outside the roadrunner directory tree? I am currently trying to 
> build them outside of the roadrunner tree.
> 

They can be placed anywhere.

> Thanks for all the great work on RoadRunner. The OpenCal project looks like an 
> exciting addition to the mix. Do you have plans for integrating the Mr. 
> Project scheduling into an OpenCal database?
> 

Not so far, but it would be a cool thing to do.

/ Jonas
-- 
Jonas Borgström                  [email protected]
CodeFactory AB                   http://www.codefactory.se/
Office: +46 (0)90 71 86 10       Cell: +46 (0)70 248 89 58