Problem compiling Apache/PHP with custombuild

dreamline

Verified User
Joined
Dec 3, 2005
Messages
108
Hi All,
After I ruined my openssl0.9.8 I managed to restore it, however when I compile apache now, I get error below, I hope someone has encountered the same problem and knows a solution. Much help is appreciated. The OS I have is Debian.. :D

I tried compiling apache 2.2.11 with custombuild version 1.2, on one server it worked like a charm but on the other (after problems with openssl) it doesn't compile anymore.. :(

Thanks for any help.. :D

Code:
/usr/local/directadmin/custombuild/httpd-2.2.11/srclib/apr/libtool --silent --mode=link gcc -g -O2 -pthread -I/usr/local/include     -L/usr/local/lib   -o htpasswd  htpasswd.lo   -lm -L/usr/local/lib -lpcre /usr/local/directadmin/custombuild/httpd-2.2.11/srclib/apr-util/libaprutil-1.la /usr/local/directadmin/custombuild/httpd-2.2.11/srclib/apr-util/xml/expat/lib/libexpat.la -liconv /usr/local/directadmin/custombuild/httpd-2.2.11/srclib/apr/libapr-1.la -lrt -lpthread -ldl
.libs/htpasswd.o: In function `mkrecord':
/usr/local/directadmin/custombuild/httpd-2.2.11/support/htpasswd.c:213: undefined reference to `crypt'
collect2: ld returned 1 exit status
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.11/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.2.11/support'
make: *** [all-recursive] Error 1

*** The make has failed, do you want to try to make again? (y,n):
n
 
Last edited:
Seems like the openssl headers are not installed; if they were there the configure script should have found them and added -lcrypt to the command, which is not the case.
Try to avoid compiling and installing openssl by hand, use apt and install the libssl and libssl-dev packages. If you already have compiled it by hand, go to the sources directory and try a "make uninstall" or remove any installed file by hand (run "make -n install" and look where all files have been installed).
You will have to run "./build all d" on custombuild after that.
 
Thanks tillo I'll try that.. :)

Unfortunately I've tried and it didn't work. I deleted all libssl* en libcrypto* from:
/usr/lib
Then reinstalled the debian packages (to be sure I also did ldconfig -v) then tried to recompile with ./build all d. The same error occurs. So I'll keep on trying and hopefully I will find a solution since I'm already at it for several days now.. :(
 
Last edited:
Hi All,
Seems I fixed the problem. I deleted just a little too much... LOL.. I also deleted libcrypt.a and librypt.so, so I guess that was my problem the whole time. After reinstaling libc6 and libc6-devel (apt-get --reinstall install libc6) I was able to compile Apache without any problems. I also reinstalled the openssl packages from Debian and am now back to 0.9.8c..

So thanks tillo for pointing me in the right direction.. Your help is appreciated greatly... I'm happy again... :D
 
Back
Top