Issues related to compiling apache, php etc.. Undefined symbol ‘dbm_fetch’ with the Apache server

Issues related to compiling apache, php etc.. Undefined symbol ‘dbm_fetch’ with the Apache server. If you get this error when trying to start apache,

Now run the following (example uses apache 1.3.37, try change the version as needed to match the version you have):

cd /usr/local/directadmin/customapache/apache_1.3.37/src/modules/standard
gcc -shared -o mod_rewrite.lo -lgdbm
cd ../../..
make install

Try Restart apache and it should be fixed up.

[warn] (2)No such file or directory: Failed to enable the ‘httpready’ Accept Filter

If you are getting the following error in your apache logs

[warn] (2)No such file or directory: Failes to enable the ‘httpready’ Accept Filter

Then add:


to your /boot/loader.confand run:

kldload accf_http

/usr/lib/ could not read symbols: File in wrong format

If there you get this error

/usr/lib/ could not read symbols: File in wrong format

to your apache configure file, add the following option :


You place that into:



    “–with-expat=builtin” \

taking note of the \ character that must be present on all lines except for that last line.

You will need to copy this file to the above location:


to ensure that your change remain after updating custombuild.

August 29, 2014

Another report solution (untested):

rpm -e expat-devel.i386

../../bins/zziptest.c:76: error: invalid value in assignment

if you face an error like this one when compiling zzip:

       gcc -DHAVE_CONFIG_H -I.. -I../..       -O2 -D_USE_MMAP  -fomit-frame-pointer -Wall -Wstrict-prototypes -Wpointer-arith -Wsign-compare -Wmissing-declarations -c `test -f ../../bins/zziptest.c || echo ‘../../bins/’`../../bins/zziptest.c
../../bins/zziptest.c: In function ‘main’:
../../bins/zziptest.c:76: error: invalid lvalue in assignment
make[3]: *** [zziptest.o] Error 1

Then you will need to type the following.

cd /usr/local/directadmin/customapache/zziplib-0.10.82
wget -O bins/zziptest.c
make install

assuming you’re using zziplib-0.10.82.
Please Note, the main changes are to insert:





#define I_(_T,_L,_R) _L _R

just below if #endif after “#define O_BINARY 0” in the bins/zziptest.c file.

Then must change the line:

(char *)hdr += hdr->d_reclen;

to read:

I_(char *, hdr, += hdr->d_reclen);

this issue appears to be a casting issue, where the compiler was not letting the programmer do exactly what he wanted to.

This issue has been known to occur on Fedora 8 boxes and some 64-bit OS machines.

Can’t locate Data/ in @INC

If there you see the above error anywhere, then install Data/Dumper:

tar xvzf Data-Dumper-2.121.tar.gz
cd Data-Dumper-2.121
perl Makefile.PL
make install

Leave a Reply

Your email address will not be published. Required fields are marked *