Installing DirectAdmin on Debian 4.0

Vincent10

New member
Joined
Aug 14, 2007
Messages
1
Hello, I'm encountering some problems in our installation of Directadmin.

Fresh install of Debian 4.0 with build-essentials and all other stuff mentioned.
Installation starts out ok, but then this comes flying by:
---
Extracting /usr/local/directadmin/customapache/apache_1.3.37.tar.gz...
Done. Applying patches...
patching file ./mod_frontpage.c
patching file ./src/include/httpd.h
Hunk #1 succeeded at 759 (offset -47 lines).
patching file ./src/main/http_request.c
Hunk #1 succeeded at 146 (offset -42 lines).
Hunk #2 succeeded at 542 (offset -36 lines).
Hunk #3 succeeded at 553 (offset -36 lines).
patching file ./src/main/util.c
Hunk #1 succeeded at 666 (offset -42 lines).
patching file ./src/main/util_script.c
Hunk #1 succeeded at 1132 (offset -63 lines).
Increasing hard limit to 32768...
Setting up mod_ssl...
Found /usr/local/directadmin/customapache/mod_ssl-2.8.28-1.3.37.tar.gz
Extracting /usr/local/directadmin/customapache/mod_ssl-2.8.28-1.3.37.tar.gz...
Configuring mod_ssl-2.8.28-1.3.37...
Configuring mod_ssl/2.8.28 for Apache/1.3.37
+ Apache location: ../apache_1.3.37 (Version 1.3.37)
+ OpenSSL location: /usr
+ Auxiliary patch tool: ./etc/patch/patch (local)
./configure:Error: Building of 'patch' tool failed:
-------------------------------------------------
checking for long file names... (cached) yes
creating ./config.status
creating Makefile
creating config.h
config.h is unchanged
gcc -c -DHAVE_CONFIG_H -I. backupfile.c
In file included from /usr/include/stdio.h:72,
from backupfile.c:22:
/usr/include/libio.h:449: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â^â token
make: *** [backupfile.o] Error 1
-------------------------------------------------
Hint: Either try to build 'patch' under etc/patch/
Hint: manually and re-run this 'configure' script
Hint: or provide us the path to your vendor 'patch'
Hint: program via the --with-patch=FILE option (but
Hint: expect perhaps failures when applying patches!)

*** There was an error while trying to configure apache+mod_ssl. Check the configure.apache_ssl file
---

In the service monitor control Apache is marked as not running. When trying to restart it gives:
---
Cannot find the script

Details

/etc/init.d/httpd
---

Can someone please help?
---
 
While trying to do some other work on this server and convert to dovecot some other errors occured.
---
checking openssl/ssl.h usability... no
checking openssl/ssl.h presence... yes
configure: WARNING: openssl/ssl.h: present but cannot be compiled
configure: WARNING: openssl/ssl.h: check for missing prerequisite headers?
configure: WARNING: openssl/ssl.h: see the Autoconf documentation
configure: WARNING: openssl/ssl.h: section "Present But Cannot Be Compiled"
configure: WARNING: openssl/ssl.h: proceeding with the preprocessor's result
configure: WARNING: openssl/ssl.h: in the future, the compiler will take precede nce
configure: WARNING: ## ---------------------------------- ##
configure: WARNING: ## Report this to [email protected] ##
configure: WARNING: ## ---------------------------------- ##

Some further down the line:
---
*** The make has failed, do you want to try to make again? (y,n):
y

Trying to make dovecot...
make all-recursive
make[1]: Entering directory `/usr/local/directadmin/customapache/dovecot-1.0.3'
Making all in src
make[2]: Entering directory `/usr/local/directadmin/customapache/dovecot-1.0.3/s rc'
Making all in lib
make[3]: Entering directory `/usr/local/directadmin/customapache/dovecot-1.0.3/s rc/lib'
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/kerberos/include -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar- subscripts -Wformat=2 -Wbad-function-cast -MT compat.o -MD -MP -MF ".deps/compa t.Tpo" -c -o compat.o compat.c; \
then mv -f ".deps/compat.Tpo" ".deps/compat.Po"; else rm -f ".deps/compa t.Tpo"; exit 1; fi
In file included from /usr/include/stdio.h:72,
from compat.c:15:
/usr/include/libio.h:449: error: expected â=â, â,â, â;â, âasmâ or â__attribute__ â before â^â token
make[3]: *** [compat.o] Error 1
make[3]: Leaving directory `/usr/local/directadmin/customapache/dovecot-1.0.3/sr c/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/directadmin/customapache/dovecot-1.0.3/sr c'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/customapache/dovecot-1.0.3'
make: *** [all] Error 2

*** The make has failed, do you want to try to make again? (y,n):
---

I guess somewhere in my build environment there's something wrong. A little help would be greatly appreciated.
 
Hello,

This error is a red flag:
Code:
In file included from /usr/include/stdio.h:72,
from backupfile.c:22:
/usr/include/libio.h:449: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before â^â token
make: *** [backupfile.o] Error 1
It refers to libio.h, which would be part of the gcc/g++ install. My only suggesstion is to reinstall gcc, g++, libssl and libssl-dev with apt-get.

John
 
after apt-get remove gcc g++ libssl libssl-dev and apt-get install gcc g++ libssl libssl-dev no changes at all :(
 
libio.h file was corrupted, fixed it and everything went fine.
 
Back
Top