Problems compiling hobbit 4.1.0
list Thomas Krieger
Hello,
I'm having problems compiling hobbit 4.1.0. It's the same machine I've
compiled hobbit 4.0.4 without problems before. I'm using RedHat
Enterprise Linux 3.0.
Here's the output of the compiler run:
PKGBUILD=1 \
make
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT -DLINUX -I.
-I`pwd`/include" RPATHOPT="" PCREINCDIR="-I/usr/include/pcre"
SSLFLAGS="-DBBGEN_SSL" SSLINCDIR="-I/usr/include
-I/usr/kerberos/include"
SSLLIBS="-L/usr/lib -lssl -lcrypto" NETLIBS=""
BBTOPDIR="/usr/local/hobbit" BBLOGDIR="/var/log/hobbit"
BBHOSTNAME="localhost" BBHOSTIP="127.0.0.1" BBHOSTOS="linux" make
-C lib
all
make[1]: Entering directory
`/export/home/cs5977/rpmbuild/BUILD/hobbit-4.1.0/lib'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -DLINUX -I.
-I/export/home/cs5977/rpmbuild/BUILD/hobbit-4.1.0/include -I. -I../include
-c -o calc.o calc.c
In file included from
/export/home/cs5977/rpmbuild/BUILD/hobbit-4.1.0/include/libbbgen.h:35,
from calc.c:19:
/export/home/cs5977/rpmbuild/BUILD/hobbit-4.1.0/lib/matching.h:14:18:
pcre.h: No such file or directory
In file included from
/export/home/cs5977/rpmbuild/BUILD/hobbit-4.1.0/include/libbbgen.h:35,
from calc.c:19:
/export/home/cs5977/rpmbuild/BUILD/hobbit-4.1.0/lib/matching.h:16: syntax
error before '*' token
/export/home/cs5977/rpmbuild/BUILD/hobbit-4.1.0/lib/matching.h:16:
warning: type defaults to `int' in declaration of `compileregex'
/export/home/cs5977/rpmbuild/BUILD/hobbit-4.1.0/lib/matching.h:16:
warning: data definition has no type or storage class
/export/home/cs5977/rpmbuild/BUILD/hobbit-4.1.0/lib/matching.h:18: syntax
error before "pcre"
make[1]: *** [calc.o] Error 1
make[1]: Leaving directory
`/export/home/cs5977/rpmbuild/BUILD/hobbit-4.1.0/lib'
make: *** [lib-build] Error 2
Can anyone help?
Bye
Thomas
list Figaro Nicolas
Hi
▸
-----Message d'origine----- De : Thomas Krieger [mailto:user-c0f684cc576f@xymon.invalid] Envoyé : lundi 25 juillet 2005 11:33 À : user-ae9b8668bcde@xymon.invalid Objet : [hobbit] Problems compiling hobbit 4.1.0
In file included from /export/home/cs5977/rpmbuild/BUILD/hobbit-4.1.0/include/libbbgen.h:35,
from calc.c:19:
/export/home/cs5977/rpmbuild/BUILD/hobbit-4.1.0/lib/matching.h:14:18:
pcre.h: No such file or directoryIt looks like you're missing the pcre. Check this page for prerequisites http://hobbitmon.sourceforge.net/docs/install.html And pcre can be downloaded from www.pcre.org (or rpmfind.net for rpms)
Can anyone help? Bye Thomas
Nicolas Figaro
list Henrik Størner
▸
On Mon, Jul 25, 2005 at 09:33:05AM +0000, Thomas Krieger wrote:
Hello, I'm having problems compiling hobbit 4.1.0. It's the same machine I've compiled hobbit 4.0.4 without problems before. I'm using RedHat Enterprise Linux 3.0. Here's the output of the compiler run:
Seems I messed up the compile if the PCRE include's are not in a directory that is searched by default. The quick work-around is to change the top-level Makefile. Near the bottom where it says # Add local CFLAGS etc. settings here add the line CFLAGS += -I$(PCREINCDIR) Regards, Henrik
list Fabio Flores
Ive got a different problem while compiling hobbit 4.1 "cd etcfiles; ../../build/merge-lines hobbitserver.cfg /usr/local/hobbit/server/etc/hobbitserver.cfg LARRDCOLUMN=TRENDSCOLUMN LARRDS=TEST2RRD cd etcfiles; ../../build/merge-lines hobbitcgi.cfg /usr/local/hobbit/server/etc/hobbitcgi.cfg cd etcfiles; ../../build/merge-sects hobbitlaunch.cfg /usr/local/hobbit/server/etc/hobbitlaunch.cfg larrdstatus=rrdstatus larrddata=rrddata Segmentation Fault - core dumped gmake[1]: *** [install-cfg] Error 139 gmake[1]: Leaving directory `/tmp/hobbit-4.1.0/hobbitd' gmake: *** [install-hobbitd] Error 2" Any clue? Fabio Flores
list Thomas Krieger
Hello Henrik, Am 25.7.2005 schrieb "(Henrik Stoerner)" <user-ce4a2c883f75@xymon.invalid>:
▸
On Mon, Jul 25, 2005 at 09:33:05AM +0000, Thomas Krieger wrote:Hello, I'm having problems compiling hobbit 4.1.0. It's the same machine I've compiled hobbit 4.0.4 without problems before. I'm using RedHat Enterprise Linux 3.0. Here's the output of the compiler run:Seems I messed up the compile if the PCRE include's are not in a directory that is searched by default. The quick work-around is to change the top-level Makefile. Near the bottom where it says # Add local CFLAGS etc. settings here add the line CFLAGS += -I$(PCREINCDIR)
I added this to Makefile.rules. I made a patch for package building purpose. The patch is attached. There's another problem building a package as non-root udser. The client install tries to chown its files but PKGBUILD=1 is set. I wrote a patch to solve this issue. The patch is attached too. Using there two patches I can build my hobbit rpm package without errors. Regards Thomas
Attachments (2)