[hobbit] Building bbproxy fails

Lee J. Imber toaster at imber.com
Mon Apr 30 21:53:03 CEST 2007


Thanks Henrik,

I tried that, got complaints about pcre, so I installed that from  
ports..

Now I get:

$ gmake bbproxy-build
CC="gcc" CFLAGS="-g -O2 -Wall -Wno-unused -D_REENTRANT -I/usr/local/ 
include -L/usr/local/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 - 
DBSD -I. -I`pwd`/include -DCLIENTONLY=1" LDFLAGS="" OSDEF="-DBSD"  
RPATHOPT=""-Wl,--rpath="" PCREINCDIR="" SSLFLAGS="" SSLINCDIR=""  
SSLLIBS="" NETLIBS="" BBTOPDIR="/home/hobbit" BBLOGDIR=""  
BBHOSTNAME="" BBHOSTIP="172.16.0.10" BBHOSTOS="" gmake -C lib all
gmake[1]: Entering directory `/usr/home/hobbit/hobbit-4.2.0/lib'
gcc -g -O2 -Wall -Wno-unused -D_REENTRANT -I/usr/local/include -L/usr/ 
local/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DBSD -I. -I/usr/ 
home/hobbit/hobbit-4.2.0/include -DCLIENTONLY=1 -I. -I../include   -c  
-o loadalerts.o loadalerts.c
loadalerts.c:44: error: syntax error before "criteria_t"
loadalerts.c:58: error: syntax error before '*' token
loadalerts.c:58: error: syntax error before "recip_t"
loadalerts.c:59: warning: return type defaults to `int'
loadalerts.c: In function `setup_criteria':
loadalerts.c:60: error: `criteria_t' undeclared (first use in this  
function)
loadalerts.c:60: error: (Each undeclared identifier is reported only  
once
loadalerts.c:60: error: for each function it appears in.)
loadalerts.c:60: error: `crit' undeclared (first use in this function)
loadalerts.c:66: error: `currule' undeclared (first use in this  
function)
loadalerts.c:73: error: syntax error before ')' token
loadalerts.c:77: error: `currcp' undeclared (first use in this function)
loadalerts.c:82: error: `recip_t' undeclared (first use in this  
function)
loadalerts.c:82: error: `rwalk' undeclared (first use in this function)
loadalerts.c:84: error: syntax error before ')' token
loadalerts.c: At top level:
loadalerts.c:168: error: syntax error before '*' token
loadalerts.c: In function `free_criteria':
loadalerts.c:170: error: `crit' undeclared (first use in this function)
loadalerts.c: In function `load_alertconfig':
loadalerts.c:203: error: `recip_t' undeclared (first use in this  
function)
loadalerts.c:203: error: `currcp' undeclared (first use in this  
function)
loadalerts.c:203: error: `rcptail' undeclared (first use in this  
function)
loadalerts.c:233: error: structure has no member named `criteria'
loadalerts.c:234: error: structure has no member named `criteria'
loadalerts.c:235: error: structure has no member named `criteria'
loadalerts.c:235: error: structure has no member named `criteria'
loadalerts.c:235: error: structure has no member named `criteria'
loadalerts.c:238: error: structure has no member named `recipients'
loadalerts.c:239: error: `trecip' undeclared (first use in this  
function)
loadalerts.c:239: error: structure has no member named `recipients'
loadalerts.c:242: error: `rwalk' undeclared (first use in this function)
loadalerts.c:255: error: structure has no member named `recipients'
loadalerts.c:255: error: structure has no member named `recipients'
loadalerts.c:282: error: `curlinerecips' undeclared (first use in  
this function)
loadalerts.c:312: error: `criteria_t' undeclared (first use in this  
function)
loadalerts.c:312: error: `crit' undeclared (first use in this function)
loadalerts.c:318: warning: implicit declaration of function  
`compileregex'
loadalerts.c:479: error: `SR_WANTED' undeclared (first use in this  
function)
loadalerts.c:487: error: `SR_NOTWANTED' undeclared (first use in this  
function)
loadalerts.c:508: error: `ALERTFORM_TEXT' undeclared (first use in  
this function)
loadalerts.c:509: error: `ALERTFORM_PLAIN' undeclared (first use in  
this function)
loadalerts.c:510: error: `ALERTFORM_SMS' undeclared (first use in  
this function)
loadalerts.c:511: error: `ALERTFORM_PAGER' undeclared (first use in  
this function)
loadalerts.c:512: error: `ALERTFORM_SCRIPT' undeclared (first use in  
this function)
loadalerts.c:537: error: `newrcp' undeclared (first use in this  
function)
loadalerts.c:540: error: syntax error before ')' token
loadalerts.c:542: error: `M_MAIL' undeclared (first use in this  
function)
loadalerts.c:562: error: structure has no member named `recipients'
loadalerts.c:563: error: structure has no member named `recipients'
loadalerts.c:579: error: syntax error before ')' token
loadalerts.c:581: error: `M_SCRIPT' undeclared (first use in this  
function)
loadalerts.c:611: error: structure has no member named `recipients'
loadalerts.c:612: error: structure has no member named `recipients'
loadalerts.c:628: error: syntax error before ')' token
loadalerts.c:630: error: `M_IGNORE' undeclared (first use in this  
function)
loadalerts.c:631: error: `ALERTFORM_NONE' undeclared (first use in  
this function)
loadalerts.c:638: error: structure has no member named `recipients'
loadalerts.c:639: error: structure has no member named `recipients'
loadalerts.c: At top level:
loadalerts.c:678: error: syntax error before '*' token
loadalerts.c: In function `dump_criteria':
loadalerts.c:680: error: `crit' undeclared (first use in this function)
loadalerts.c:707: error: `isrecip' undeclared (first use in this  
function)
loadalerts.c:709: error: `SR_UNKNOWN' undeclared (first use in this  
function)
loadalerts.c:710: error: `SR_WANTED' undeclared (first use in this  
function)
loadalerts.c:711: error: `SR_NOTWANTED' undeclared (first use in this  
function)
loadalerts.c: In function `dump_alertconfig':
loadalerts.c:724: error: `recip_t' undeclared (first use in this  
function)
loadalerts.c:724: error: `recipwalk' undeclared (first use in this  
function)
loadalerts.c:727: error: structure has no member named `criteria'
loadalerts.c:730: error: structure has no member named `recipients'
loadalerts.c:733: error: `M_MAIL' undeclared (first use in this  
function)
loadalerts.c:734: error: `M_SCRIPT' undeclared (first use in this  
function)
loadalerts.c:735: error: `M_IGNORE' undeclared (first use in this  
function)
loadalerts.c:738: error: `ALERTFORM_TEXT' undeclared (first use in  
this function)
loadalerts.c:739: error: `ALERTFORM_PLAIN' undeclared (first use in  
this function)
loadalerts.c:740: error: `ALERTFORM_SMS' undeclared (first use in  
this function)
loadalerts.c:741: error: `ALERTFORM_PAGER' undeclared (first use in  
this function)
loadalerts.c:742: error: `ALERTFORM_SCRIPT' undeclared (first use in  
this function)
loadalerts.c:743: error: `ALERTFORM_NONE' undeclared (first use in  
this function)
loadalerts.c: At top level:
loadalerts.c:758: error: syntax error before '*' token
loadalerts.c: In function `criteriamatch':
loadalerts.c:765: error: `alert' undeclared (first use in this function)
loadalerts.c:772: error: `crit' undeclared (first use in this function)
loadalerts.c:773: error: `rulecrit' undeclared (first use in this  
function)
loadalerts.c:780: error: `A_PAGING' undeclared (first use in this  
function)
loadalerts.c:788: warning: implicit declaration of function `namematch'
loadalerts.c:875: error: `A_NOTIFY' undeclared (first use in this  
function)
loadalerts.c:885: error: `SR_NOTWANTED' undeclared (first use in this  
function)
loadalerts.c:886: error: `SR_WANTED' undeclared (first use in this  
function)
loadalerts.c:898: error: `anymatch' undeclared (first use in this  
function)
loadalerts.c:906: error: `nexttime' undeclared (first use in this  
function)
loadalerts.c:924: warning: implicit declaration of function `timematch'
loadalerts.c:943: error: `A_RECOVERED' undeclared (first use in this  
function)
loadalerts.c: At top level:
loadalerts.c:971: error: syntax error before '*' token
loadalerts.c:971: error: syntax error before '*' token
loadalerts.c:972: warning: return type defaults to `int'
loadalerts.c: In function `next_recipient':
loadalerts.c:974: error: syntax error before '*' token
loadalerts.c:976: error: `anymatch' undeclared (first use in this  
function)
loadalerts.c:979: error: `first' undeclared (first use in this function)
loadalerts.c:983: error: `alert' undeclared (first use in this function)
loadalerts.c:983: error: structure has no member named `criteria'
loadalerts.c:987: error: `recipwalk' undeclared (first use in this  
function)
loadalerts.c:987: error: structure has no member named `recipients'
loadalerts.c:1004: error: structure has no member named `criteria'
loadalerts.c:1009: error: structure has no member named `recipients'
loadalerts.c:1018: error: structure has no member named `criteria'
loadalerts.c:1018: error: `nexttime' undeclared (first use in this  
function)
loadalerts.c: At top level:
loadalerts.c:1027: error: syntax error before '*' token
loadalerts.c: In function `have_recipient':
loadalerts.c:1031: error: `alert' undeclared (first use in this  
function)
loadalerts.c:1031: error: `anymatch' undeclared (first use in this  
function)
loadalerts.c: At top level:
loadalerts.c:1040: error: syntax error before '*' token
loadalerts.c: In function `print_alert_recipients':
loadalerts.c:1046: error: `recip_t' undeclared (first use in this  
function)
loadalerts.c:1046: error: `recip' undeclared (first use in this  
function)
loadalerts.c:1063: error: `alert' undeclared (first use in this  
function)
loadalerts.c:1072: error: `buf' undeclared (first use in this function)
loadalerts.c:1078: error: structure has no member named `criteria'
loadalerts.c:1078: error: structure has no member named `criteria'
loadalerts.c:1080: error: structure has no member named `criteria'
loadalerts.c:1080: error: structure has no member named `criteria'
loadalerts.c:1082: error: structure has no member named `criteria'
loadalerts.c:1082: error: structure has no member named `criteria'
loadalerts.c:1082: error: structure has no member named `criteria'
loadalerts.c:1088: error: structure has no member named `criteria'
loadalerts.c:1088: error: structure has no member named `criteria'
loadalerts.c:1088: error: structure has no member named `criteria'
loadalerts.c:1097: error: structure has no member named `criteria'
loadalerts.c:1097: error: structure has no member named `criteria'
loadalerts.c:1097: error: `SR_WANTED' undeclared (first use in this  
function)
loadalerts.c:1098: error: structure has no member named `criteria'
loadalerts.c:1098: error: `SR_UNKNOWN' undeclared (first use in this  
function)
loadalerts.c:1101: error: structure has no member named `criteria'
loadalerts.c:1101: error: structure has no member named `criteria'
loadalerts.c:1102: error: structure has no member named `criteria'
loadalerts.c:1106: error: `M_IGNORE' undeclared (first use in this  
function)
gmake[1]: *** [loadalerts.o] Error 1
gmake[1]: Leaving directory `/usr/home/hobbit/hobbit-4.2.0/lib'
gmake: *** [lib-build] Error 2
$




Thanks,

Lee

On Apr 30, 2007, at 3:44 PM, Henrik Stoerner wrote:

> On Mon, Apr 30, 2007 at 03:06:59PM -0400, Lee J. Imber wrote:
>> Hi, trying to build bbproxy and it keeps failing.
>>
>> $ pwd
>> /usr/home/hobbit/hobbit-4.2.0/bbproxy
>
> Dont build from that directory. From the hobbit-4.2.0 directory,
> run "gmake bbproxy-build" if you only want to build the proxy.
>
> When you run "make" directly from the hobbit-4.2.0/bbproxy  
> directory, it
> won't pickup the settings in the top-level Makefile.
>
>
> Regards,
> Henrik
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>




More information about the Xymon mailing list