Here is the error I get:
if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I/usr/include/mysql -g -O2 -MT action.o -MD -MP -MF ".deps/action.Tpo" -c -o action.o action.c; \
then mv -f ".deps/action.Tpo" ".deps/action.Po"; else rm -f ".deps/action.Tpo"; exit 1; fi
action.c: In function `DBadd_action':
action.c:36: error: `ACTION_SUBJECT_LEN_MAX' undeclared (first use in this function)
action.c:36: error: (Each undeclared identifier is reported only once
action.c:36: error: for each function it appears in.)
action.c: At top level:
action.c:63: error: parse error before "DB_ACTION"
action.c: In function `DBget_action_by_actionid':
action.c:65: error: `DB_RESULT' undeclared (first use in this function)
action.c:65: error: parse error before "result"
action.c:66: error: `DB_ROW' undeclared (first use in this function)
action.c:70: error: `actionid' undeclared (first use in this function)
action.c:73: error: `result' undeclared (first use in this function)
action.c:74: error: `row' undeclared (first use in this function)
action.c:82: error: `action' undeclared (first use in this function)
make[4]: *** [action.o] Error 1
Here are my compile options:
./configure --prefix=/usr --with-net-snmp --with-mysql --enable-server
I'm not sure why it says there is a parse error, I looked at the file and it looks fine to me.
schu
if gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -I/usr/include/mysql -g -O2 -MT action.o -MD -MP -MF ".deps/action.Tpo" -c -o action.o action.c; \
then mv -f ".deps/action.Tpo" ".deps/action.Po"; else rm -f ".deps/action.Tpo"; exit 1; fi
action.c: In function `DBadd_action':
action.c:36: error: `ACTION_SUBJECT_LEN_MAX' undeclared (first use in this function)
action.c:36: error: (Each undeclared identifier is reported only once
action.c:36: error: for each function it appears in.)
action.c: At top level:
action.c:63: error: parse error before "DB_ACTION"
action.c: In function `DBget_action_by_actionid':
action.c:65: error: `DB_RESULT' undeclared (first use in this function)
action.c:65: error: parse error before "result"
action.c:66: error: `DB_ROW' undeclared (first use in this function)
action.c:70: error: `actionid' undeclared (first use in this function)
action.c:73: error: `result' undeclared (first use in this function)
action.c:74: error: `row' undeclared (first use in this function)
action.c:82: error: `action' undeclared (first use in this function)
make[4]: *** [action.o] Error 1
Here are my compile options:
./configure --prefix=/usr --with-net-snmp --with-mysql --enable-server
I'm not sure why it says there is a parse error, I looked at the file and it looks fine to me.
schu
Comment