Errors while installing on FreeBSD 5.3 stable

rtetzloff

Verified User
Joined
Nov 12, 2004
Messages
11
Hello,

I'm trying to install DirectAdmin on FreeBSD 5.3 stable that was just released. It goes fairly well until this:

Trying to make zZip...
make all-recursive
Making all in zzip
source='zip.c' object='zip.lo' libtool=yes depfile='.deps/zip.Plo' tmpdepfile='.deps/zip.TPlo' depmode=gcc3 /bin/sh ../uses/depcomp /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I.. -I.. -O2 -D_USE_MMAP -fomit-frame-pointer -Wall -fno-writable-strings -Wwrite-strings -Wpointer-arith -Wsign-compare -Wmissing-declarations -c -o zip.lo `test -f zip.c || echo './'`zip.c
In file included from ../zzip/lib.h:21,
from zip.c:14:
../zzip/zzip.h:83: error: syntax error before "zzip_ssize_t"
../zzip/zzip.h:83: warning: type defaults to `int' in declaration of `zzip_ssize_t'
../zzip/zzip.h:83: warning: data definition has no type or storage class
../zzip/zzip.h:185: error: syntax error before "zzip_file_read"
../zzip/zzip.h:185: warning: type defaults to `int' in declaration of `zzip_file_read'
../zzip/zzip.h:185: warning: data definition has no type or storage class
../zzip/zzip.h:192: error: syntax error before "zzip_read"
../zzip/zzip.h:192: warning: type defaults to `int' in declaration of `zzip_read'
../zzip/zzip.h:192: warning: data definition has no type or storage class
In file included from ../zzip/lib.h:22,
from zip.c:14:
../zzip/plugin.h:45: error: syntax error before "zzip_ssize_t"
zip.c: In function `__zzip_find_disk_trailer':
zip.c:135: error: called object is not a function
zip.c:200: error: structure has no member named `read'
zip.c:200: error: syntax error before "maplen"
zip.c:202: error: `mapped' undeclared (first use in this function)
zip.c:202: error: (Each undeclared identifier is reported only once
zip.c:202: error: for each function it appears in.)
zip.c:133: error: label `cleanup' used but not defined
zip.c: At top level:
zip.c:207: error: syntax error before '{' token
*** Error code 1

Stop in /usr/local/directadmin/customapache/zziplib-0.10.82/zzip.
*** Error code 1

Stop in /usr/local/directadmin/customapache/zziplib-0.10.82.
*** Error code 1

Stop in /usr/local/directadmin/customapache/zziplib-0.10.82.

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


After hitting y a couple of times and it repeating that, I hit n, and then I get the following, which for all I know could be related or the result of the previous error:

Welcome to DirectAdmin verion 1.23.1!
You are now about to run the install program. If DirectAdmin is already
installed, it may destroy previous data.

Cannot find mysql in the ./scripts/setup.txt file
Permissions set
temp234#


Any help on this would be greatly appreciated, as I'm trying to get this installed for a client. Thanks.
 
Makesure you have libtool installed. And if necassary you can try modifying the setup file so that when it configures zzip before the make it points to the libtool tools.

Since this is a first time installation I suggest contacting DA support. I don't think they've had time to thouroughly test installation on 5.3 yet.
 
Last edited:
Okay thanks. libtool wasn't installed, but it still does it with it installed.

Email support it is I guess :)
 
While you wait, you could also make sure that zzip is looking in the right place. Did you try setting the libtool location during the configuration?
 
I did not set anything during configuration, as far as I know. What erxactly should I be looking for in making sure this location is set properly?

I'm not exactly an expert with this stuff. I normally just install and pray that it works :) especially on FreeBSD. I can normally handle Linux just fine.
 
Okay, I've gotten everything working, except I'm getting the following error while it's making webalizer:

localhost# make
gcc -L/usr/local/lib -o webalizer webalizer.o hashtab.o linklist.o preserve.o parser.o output.o dns_resolv.o graphs.o -lgd -lpng -lz -lm
/usr/local/lib/libgd.so: undefined reference to `libiconv_open'
/usr/local/lib/libgd.so: undefined reference to `libiconv_close'
/usr/local/lib/libgd.so: undefined reference to `libiconv'
*** Error code 1

Stop in /usr/local/directadmin/customapache/webalizer-2.01-10.
localhost# cd /usr

Other than that, it seems to be working quite well. Any ideas would again be greatly appreciated!
 
I got it figured out. Libiconv was installed. I installed the compat4 package, and it seemed to work fine.

Anyways, everything looks good with it now. Thanks for your help!
 
I get the same error :(

Code:
make  all-recursive
Making all in zzip
source='zip.c' object='zip.lo' libtool=yes  depfile='.deps/zip.Plo' tmpdepfile='.deps/zip.TPlo'  depmode=gcc3 /bin/sh ../uses/depcomp  /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I.. -I..       -O2 -D_USE_MMAP  -fomit-frame-pointer -Wall -fno-writable-strings -Wwrite-strings -Wpointer-arith -Wsign-compare -Wmissing-declarations -c -o zip.lo `test -f zip.c || echo './'`zip.c
In file included from ../zzip/lib.h:21,
                 from zip.c:14:
../zzip/zzip.h:83: error: syntax error before "zzip_ssize_t"
../zzip/zzip.h:83: warning: type defaults to `int' in declaration of `zzip_ssize_t'
../zzip/zzip.h:83: warning: data definition has no type or storage class
../zzip/zzip.h:185: error: syntax error before "zzip_file_read"
../zzip/zzip.h:185: warning: type defaults to `int' in declaration of `zzip_file_read'
../zzip/zzip.h:185: warning: data definition has no type or storage class
../zzip/zzip.h:192: error: syntax error before "zzip_read"
../zzip/zzip.h:192: warning: type defaults to `int' in declaration of `zzip_read'
../zzip/zzip.h:192: warning: data definition has no type or storage class
In file included from ../zzip/lib.h:22,
                 from zip.c:14:
../zzip/plugin.h:45: error: syntax error before "zzip_ssize_t"
zip.c: In function `__zzip_find_disk_trailer':
zip.c:135: error: called object is not a function
zip.c:200: error: structure has no member named `read'
zip.c:200: error: syntax error before "maplen"
zip.c:202: error: `mapped' undeclared (first use in this function)
zip.c:202: error: (Each undeclared identifier is reported only once
zip.c:202: error: for each function it appears in.)
zip.c:133: error: label `cleanup' used but not defined
zip.c: At top level:
zip.c:207: error: syntax error before '{' token
*** Error code 1

Stop in /usr/local/directadmin/custombuild/zziplib-0.10.82/zzip.
*** Error code 1

Stop in /usr/local/directadmin/custombuild/zziplib-0.10.82.
*** Error code 1

Stop in /usr/local/directadmin/custombuild/zziplib-0.10.82.

Any suggestions ? I have visited this link but didnt find anything useful to me.

FreeBSD 6.2R

Regards
 
Apropos inability to build zzip 0.10.82 on FreeBSD:

In file zzip/zzip.h find line:
#include <zzip/conf.h>
and add after it:
#include <sys/types.h>

Regards,
Andrzej
 
Back
Top