Hi there,
I wouls like to add an additional module, the Iprot module, which a customer bought for website protection against bandwidth bandits ;-)
I've attached the installation manual. I would like to dynamicly link this module to the existing apache installation of Direct admin. But it doesn't work out the way I want.
When trying to build a dynamically linked mod_iprot I receive the following error message:
[root@pipi iprot]# apxs -o mod_iprot.so -c iprot_db.c iprot_admin.c mod_iprot.c
gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWRITEMAP -DMOD_SSL=208122 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -c iprot_db.c
In file included from iprot_db.c:9:
mod_iprot.h:24:18: error: ndbm.h: No such file or directory
In file included from iprot_db.c:9:
mod_iprot.h:129: error: syntax error before â*â token
mod_iprot.h:131: error: syntax error before â*â token
mod_iprot.h:132: warning: data definition has no type or storage class
mod_iprot.h:134: error: syntax error before â*â token
mod_iprot.h:136: error: syntax error before â*â token
mod_iprot.h:140: error: syntax error before â*â token
mod_iprot.h:143: error: syntax error before â*â token
mod_iprot.h:146: error: syntax error before â*â token
mod_iprot.h:147: warning: data definition has no type or storage class
mod_iprot.h:150: error: syntax error before â*â token
mod_iprot.h:162: error: syntax error before â*â token
mod_iprot.h:169: error: syntax error before âDBMâ
mod_iprot.h:173: error: syntax error before âDBMâ
iprot_db.c:11: error: syntax error before â*â token
iprot_db.c: In function ânew_str_from_datumâ:
iprot_db.c:13: error: âstrâ undeclared (first use in this function)
iprot_db.c:13: error: (Each undeclared identifier is reported only once
iprot_db.c:13: error: for each function it appears in.)
iprot_db.c:13: error: ârâ undeclared (first use in this function)
iprot_db.c:13: error: âdâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:24: error: syntax error before â*â token
iprot_db.c: In function âopen_dbâ:
iprot_db.c:27: error: âDBMâ undeclared (first use in this function)
iprot_db.c:27: error: âdbâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:43: error: syntax error before â*â token
iprot_db.c: In function âclose_dbâ:
iprot_db.c:45: error: âdbâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:51: error: syntax error before â*â token
iprot_db.c: In function âget_recordâ:
iprot_db.c:55: error: âdatumâ undeclared (first use in this function)
iprot_db.c:55: error: syntax error before âkâ
iprot_db.c:56: error: âkâ undeclared (first use in this function)
iprot_db.c:56: error: âkeyâ undeclared (first use in this function)
iprot_db.c:56: error: âhostâ undeclared (first use in this function)
iprot_db.c:57: error: ârâ undeclared (first use in this function)
iprot_db.c:60: error: âdâ undeclared (first use in this function)
iprot_db.c:67: error: âdbâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:71: error: syntax error before â*â token
iprot_db.c: In function âstore_recordâ:
iprot_db.c:74: error: âdatumâ undeclared (first use in this function)
iprot_db.c:74: error: syntax error before âkâ
iprot_db.c:76: error: âkâ undeclared (first use in this function)
iprot_db.c:76: error: âkeyâ undeclared (first use in this function)
iprot_db.c:76: error: âhostâ undeclared (first use in this function)
iprot_db.c:77: error: ârâ undeclared (first use in this function)
iprot_db.c:85: error: âvâ undeclared (first use in this function)
iprot_db.c:85: error: âvalueâ undeclared (first use in this function)
iprot_db.c:93: error: âdbâ undeclared (first use in this function)
iprot_db.c:93: error: âDBM_REPLACEâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:101: error: syntax error before â*â token
iprot_db.c: In function âdelete_recordâ:
iprot_db.c:104: error: âdatumâ undeclared (first use in this function)
iprot_db.c:104: error: syntax error before âkâ
iprot_db.c:106: error: âkâ undeclared (first use in this function)
iprot_db.c:106: error: âkeyâ undeclared (first use in this function)
iprot_db.c:106: error: âhostâ undeclared (first use in this function)
iprot_db.c:107: error: ârâ undeclared (first use in this function)
iprot_db.c:116: error: âdbâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:169: error: syntax error before â*â token
iprot_db.c: In function âget_data_stringsâ:
iprot_db.c:175: error: âdâ undeclared (first use in this function)
iprot_db.c:178: error: ârâ undeclared (first use in this function)
iprot_db.c:184: error: âp_str_1â undeclared (first use in this function)
iprot_db.c:184: error: âp_str_2â undeclared (first use in this function)
iprot_db.c:184: error: âp_str_3â undeclared (first use in this function)
iprot_db.c:184: error: âp_str_4â undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:273: error: syntax error before â*â token
iprot_db.c: In function âblock_ignore_expiredâ:
iprot_db.c:279: error: âtimestampâ undeclared (first use in this function)
iprot_db.c:279: error: ârequest_timeâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:298: error: syntax error before âDBMâ
iprot_db.c: In function âupdate_iprot_dbâ:
iprot_db.c:300: error: ârâ undeclared (first use in this function)
iprot_db.c:301: error: âDBMâ undeclared (first use in this function)
iprot_db.c:301: error: âblock_ignore_dbâ undeclared (first use in this function)
iprot_db.c:302: error: âdatumâ undeclared (first use in this function)
iprot_db.c:302: error: syntax error before âdb_keyâ
iprot_db.c:314: error: âdb_keyâ undeclared (first use in this function)
iprot_db.c:325: error: âdb_dataâ undeclared (first use in this function)
iprot_db.c:335: error: âiprot_dbâ undeclared (first use in this function)
iprot_db.c:335: error: âdâ undeclared (first use in this function)
iprot_db.c:367: error: âdb_nextkeyâ undeclared (first use in this function)
iprot_db.c:392: error: âDBM_REPLACEâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:401: error: syntax error before â*â token
iprot_db.c: In function âopen_iprot_dbâ:
iprot_db.c:404: error: âDBMâ undeclared (first use in this function)
iprot_db.c:404: error: âiprot_dbâ undeclared (first use in this function)
iprot_db.c:405: error: âdatumâ undeclared (first use in this function)
iprot_db.c:405: error: syntax error before âdb_keyâ
iprot_db.c:411: error: âdb_keyâ undeclared (first use in this function)
iprot_db.c:420: error: âdb_dataâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:428: error: syntax error before âDBMâ
iprot_db.c: In function âdelete_block_ignoreâ:
iprot_db.c:432: error: âactionâ undeclared (first use in this function)
iprot_db.c:433: error: âblock_ignore_dbâ undeclared (first use in this function)
iprot_db.c:433: error: âserver_hostnameâ undeclared (first use in this function)
iprot_db.c:433: error: âtargetâ undeclared (first use in this function)
iprot_db.c:433: error: ârâ undeclared (first use in this function)
iprot_db.c:437: error: âiprot_dbâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:443: error: syntax error before âDBMâ
iprot_db.c: In function âcheck_block_ignoreâ:
iprot_db.c:449: error: âDBMâ undeclared (first use in this function)
iprot_db.c:449: error: âblock_ignore_dbâ undeclared (first use in this function)
iprot_db.c:450: error: âBlockIgnoreStrâ undeclared (first use in this function)
iprot_db.c:452: error: ârâ undeclared (first use in this function)
iprot_db.c:453: error: âconfig_recâ undeclared (first use in this function)
iprot_db.c:457: error: âiprot_dbâ undeclared (first use in this function)
iprot_db.c:458: error: âserver_hostnameâ undeclared (first use in this function)
iprot_db.c:458: error: âtargetâ undeclared (first use in this function)
apxs:Break: Command failed with rc=1
Can you please help me solve this problem? Thanks in advance.
I wouls like to add an additional module, the Iprot module, which a customer bought for website protection against bandwidth bandits ;-)
I've attached the installation manual. I would like to dynamicly link this module to the existing apache installation of Direct admin. But it doesn't work out the way I want.
When trying to build a dynamically linked mod_iprot I receive the following error message:
[root@pipi iprot]# apxs -o mod_iprot.so -c iprot_db.c iprot_admin.c mod_iprot.c
gcc -DLINUX=22 -DHAVE_SET_DUMPABLE -DNO_DBM_REWRITEMAP -DMOD_SSL=208122 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache -c iprot_db.c
In file included from iprot_db.c:9:
mod_iprot.h:24:18: error: ndbm.h: No such file or directory
In file included from iprot_db.c:9:
mod_iprot.h:129: error: syntax error before â*â token
mod_iprot.h:131: error: syntax error before â*â token
mod_iprot.h:132: warning: data definition has no type or storage class
mod_iprot.h:134: error: syntax error before â*â token
mod_iprot.h:136: error: syntax error before â*â token
mod_iprot.h:140: error: syntax error before â*â token
mod_iprot.h:143: error: syntax error before â*â token
mod_iprot.h:146: error: syntax error before â*â token
mod_iprot.h:147: warning: data definition has no type or storage class
mod_iprot.h:150: error: syntax error before â*â token
mod_iprot.h:162: error: syntax error before â*â token
mod_iprot.h:169: error: syntax error before âDBMâ
mod_iprot.h:173: error: syntax error before âDBMâ
iprot_db.c:11: error: syntax error before â*â token
iprot_db.c: In function ânew_str_from_datumâ:
iprot_db.c:13: error: âstrâ undeclared (first use in this function)
iprot_db.c:13: error: (Each undeclared identifier is reported only once
iprot_db.c:13: error: for each function it appears in.)
iprot_db.c:13: error: ârâ undeclared (first use in this function)
iprot_db.c:13: error: âdâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:24: error: syntax error before â*â token
iprot_db.c: In function âopen_dbâ:
iprot_db.c:27: error: âDBMâ undeclared (first use in this function)
iprot_db.c:27: error: âdbâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:43: error: syntax error before â*â token
iprot_db.c: In function âclose_dbâ:
iprot_db.c:45: error: âdbâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:51: error: syntax error before â*â token
iprot_db.c: In function âget_recordâ:
iprot_db.c:55: error: âdatumâ undeclared (first use in this function)
iprot_db.c:55: error: syntax error before âkâ
iprot_db.c:56: error: âkâ undeclared (first use in this function)
iprot_db.c:56: error: âkeyâ undeclared (first use in this function)
iprot_db.c:56: error: âhostâ undeclared (first use in this function)
iprot_db.c:57: error: ârâ undeclared (first use in this function)
iprot_db.c:60: error: âdâ undeclared (first use in this function)
iprot_db.c:67: error: âdbâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:71: error: syntax error before â*â token
iprot_db.c: In function âstore_recordâ:
iprot_db.c:74: error: âdatumâ undeclared (first use in this function)
iprot_db.c:74: error: syntax error before âkâ
iprot_db.c:76: error: âkâ undeclared (first use in this function)
iprot_db.c:76: error: âkeyâ undeclared (first use in this function)
iprot_db.c:76: error: âhostâ undeclared (first use in this function)
iprot_db.c:77: error: ârâ undeclared (first use in this function)
iprot_db.c:85: error: âvâ undeclared (first use in this function)
iprot_db.c:85: error: âvalueâ undeclared (first use in this function)
iprot_db.c:93: error: âdbâ undeclared (first use in this function)
iprot_db.c:93: error: âDBM_REPLACEâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:101: error: syntax error before â*â token
iprot_db.c: In function âdelete_recordâ:
iprot_db.c:104: error: âdatumâ undeclared (first use in this function)
iprot_db.c:104: error: syntax error before âkâ
iprot_db.c:106: error: âkâ undeclared (first use in this function)
iprot_db.c:106: error: âkeyâ undeclared (first use in this function)
iprot_db.c:106: error: âhostâ undeclared (first use in this function)
iprot_db.c:107: error: ârâ undeclared (first use in this function)
iprot_db.c:116: error: âdbâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:169: error: syntax error before â*â token
iprot_db.c: In function âget_data_stringsâ:
iprot_db.c:175: error: âdâ undeclared (first use in this function)
iprot_db.c:178: error: ârâ undeclared (first use in this function)
iprot_db.c:184: error: âp_str_1â undeclared (first use in this function)
iprot_db.c:184: error: âp_str_2â undeclared (first use in this function)
iprot_db.c:184: error: âp_str_3â undeclared (first use in this function)
iprot_db.c:184: error: âp_str_4â undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:273: error: syntax error before â*â token
iprot_db.c: In function âblock_ignore_expiredâ:
iprot_db.c:279: error: âtimestampâ undeclared (first use in this function)
iprot_db.c:279: error: ârequest_timeâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:298: error: syntax error before âDBMâ
iprot_db.c: In function âupdate_iprot_dbâ:
iprot_db.c:300: error: ârâ undeclared (first use in this function)
iprot_db.c:301: error: âDBMâ undeclared (first use in this function)
iprot_db.c:301: error: âblock_ignore_dbâ undeclared (first use in this function)
iprot_db.c:302: error: âdatumâ undeclared (first use in this function)
iprot_db.c:302: error: syntax error before âdb_keyâ
iprot_db.c:314: error: âdb_keyâ undeclared (first use in this function)
iprot_db.c:325: error: âdb_dataâ undeclared (first use in this function)
iprot_db.c:335: error: âiprot_dbâ undeclared (first use in this function)
iprot_db.c:335: error: âdâ undeclared (first use in this function)
iprot_db.c:367: error: âdb_nextkeyâ undeclared (first use in this function)
iprot_db.c:392: error: âDBM_REPLACEâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:401: error: syntax error before â*â token
iprot_db.c: In function âopen_iprot_dbâ:
iprot_db.c:404: error: âDBMâ undeclared (first use in this function)
iprot_db.c:404: error: âiprot_dbâ undeclared (first use in this function)
iprot_db.c:405: error: âdatumâ undeclared (first use in this function)
iprot_db.c:405: error: syntax error before âdb_keyâ
iprot_db.c:411: error: âdb_keyâ undeclared (first use in this function)
iprot_db.c:420: error: âdb_dataâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:428: error: syntax error before âDBMâ
iprot_db.c: In function âdelete_block_ignoreâ:
iprot_db.c:432: error: âactionâ undeclared (first use in this function)
iprot_db.c:433: error: âblock_ignore_dbâ undeclared (first use in this function)
iprot_db.c:433: error: âserver_hostnameâ undeclared (first use in this function)
iprot_db.c:433: error: âtargetâ undeclared (first use in this function)
iprot_db.c:433: error: ârâ undeclared (first use in this function)
iprot_db.c:437: error: âiprot_dbâ undeclared (first use in this function)
iprot_db.c: At top level:
iprot_db.c:443: error: syntax error before âDBMâ
iprot_db.c: In function âcheck_block_ignoreâ:
iprot_db.c:449: error: âDBMâ undeclared (first use in this function)
iprot_db.c:449: error: âblock_ignore_dbâ undeclared (first use in this function)
iprot_db.c:450: error: âBlockIgnoreStrâ undeclared (first use in this function)
iprot_db.c:452: error: ârâ undeclared (first use in this function)
iprot_db.c:453: error: âconfig_recâ undeclared (first use in this function)
iprot_db.c:457: error: âiprot_dbâ undeclared (first use in this function)
iprot_db.c:458: error: âserver_hostnameâ undeclared (first use in this function)
iprot_db.c:458: error: âtargetâ undeclared (first use in this function)
apxs:Break: Command failed with rc=1
Can you please help me solve this problem? Thanks in advance.