- 论坛徽章:
- 0
|
Sorry, I can't type Chinese.
I want to install qmail+vpopmail+mysql on Solaris 10 x86. Qmail and mysql is ok. But "make vpopmail", I got error as following:
# make
make all-recursive
Making all in cdb
( cat warn-auto.sh;
echo CC='`head -1 conf-cc`';
echo LD='`head -1 conf-ld`';
cat find-systype.sh;
) | sh > systype
( cat warn-auto.sh;
echo 'main="$1"; shift';
echo 'rm -f "$main"';
echo 'ar cr "$main" ${1+"$@"}';
case "`cat systype`" in
sunos-5.*) ;;
unix_sv*) ;;
irix64-*) ;;
irix-*) ;;
dgux-*) ;;
hp-ux-*) ;;
sco*) ;;
*) echo 'ranlib "$main"' ;;
esac
) > makelib
chmod 755 makelib
( ( ./compile tryulong32.c && ./load tryulong32 &&
./tryulong32 ) >/dev/null 2>&1
&& cat uint32.h2 || cat uint32.h1 ) > uint32.h
rm -f tryulong32.o tryulong32
./compile cdb_hash.c
./compile cdb_unpack.c
./compile cdb_seek.c
./makelib cdb.a cdb_hash.o cdb_unpack.o cdb_seek.o
./compile cdbmake_pack.c
./compile cdbmake_hash.c
./compile cdbmake_add.c
./makelib cdbmake.a cdbmake_pack.o cdbmake_hash.o
cdbmake_add.o
gcc -I. -I/usr/local/mysql/include -g -O2 -Wall -c vpopmail.c
gcc -I. -I/usr/local/mysql/include -g -O2 -Wall -c md5.c
gcc -I. -I/usr/local/mysql/include -g -O2 -Wall -c bigdir.c
gcc -I. -I/usr/local/mysql/include -g -O2 -Wall -c vauth.c
vauth.c: In function `vauth_setpw':
vauth.c:684: warning: int format, uid_t arg (arg 6)
vauth.c:684: warning: int format, gid_t arg (arg 7)
gcc -I. -I/usr/local/mysql/include -g -O2 -Wall -c file_lock.c
gcc -I. -I/usr/local/mysql/include -g -O2 -Wall -c vpalias.c
rm -f libvpopmail.a
ar cru libvpopmail.a vpopmail.o md5.o bigdir.o vauth.o file_lock.o vpalias.o cdb/*.o
ranlib libvpopmail.a
gcc -I. -I/usr/local/mysql/include -g -O2 -Wall -c vchkpw.c
gcc -g -O2 -Wall -o vchkpw vchkpw.o libvpopmail.a -L/usr/local/mysql/lib -R/usr/local/mysql/lib -lmysqlclient -lz -lsocket -lnsl -lcrypt -lz -lm
ld: warning: file /usr/local/mysql/lib/libmysqlclient.a(libmysql.o): wrong ELF class: ELFCLASS64
Undefined first referenced
symbol in file
mysql_fetch_row libvpopmail.a(vauth.o)
mysql_query libvpopmail.a(vauth.o)
mysql_error libvpopmail.a(vauth.o)
mysql_close libvpopmail.a(vauth.o)
mysql_free_result libvpopmail.a(vauth.o)
mysql_store_result libvpopmail.a(vauth.o)
mysql_init libvpopmail.a(vauth.o)
mysql_select_db libvpopmail.a(vauth.o)
mysql_real_connect libvpopmail.a(vauth.o)
mysql_num_rows libvpopmail.a(vauth.o)
ld: fatal: Symbol referencing errors. No output written to vchkpw
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `vchkpw'
Current working directory /Desktop/vpopmail-5.2.1
*** Error code 1
The following command caused the error:
set fnord ; amf=$2;
dot_seen=no;
target=`echo all-recursive | sed s/-recursive//`;
list='cdb'; for subdir in $list; do
echo "Making $target in $subdir";
if test "$subdir" = "."; then
dot_seen=yes;
local_target="$target-am";
else
local_target="$target";
fi;
(cd $subdir && make $local_target)
|| case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac;
done;
if test "$dot_seen" = "no"; then
make "$target-am" || exit 1;
fi; test -z "$fail"
make: Fatal error: Command failed for target `all-recursive'
Current working directory /Desktop/vpopmail-5.2.1
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'
env PATH /usr/sbin:/usr/bin:/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin
Any idea?
Thank you. |
|