Avatar billede condor9 Nybegynder
03. januar 2003 - 16:55 Der er 2 kommentarer og
1 løsning

Problemer med installation af Vpopmail til Qmail

Jeg sidder og er ved at installere qmail samt de rogrammer der skal til for at få det til at køre..

Jeg er nået til Vpopmail og har configureret denne, næste punkt er så at compile den. Der kommer den med en masse fejl. Jeg er lidt lost, og jeg ved ikke rigtigt hvordan jeg skal komme videre..

Det er når den når til gcc -I. -I/usr/include/mysql      -g -O2 -Wall -c vauth.c at den kommer med alle fejlene..

Er der nogle der kan se hvad fejlen er og måske komme med en lille hjælp..

MVH og på forhånd tak.

Thomas H.

I kan se fejlloggen her for neden, den er lidt lang..:
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
make[2]: Leaving directory `/tmp/vpopmail-5.2.1/cdb'
make[2]: Entering directory `/tmp/vpopmail-5.2.1'
gcc -I. -I/usr/include/mysql      -g -O2 -Wall -c vpopmail.c
gcc -I. -I/usr/include/mysql      -g -O2 -Wall -c md5.c
gcc -I. -I/usr/include/mysql      -g -O2 -Wall -c bigdir.c
gcc -I. -I/usr/include/mysql      -g -O2 -Wall -c vauth.c
In file included from vauth.c:28:
vmysql.h:53:22: warning: multi-line string literals are deprecated
In file included from vauth.c:32:
vmysql.h:53:22: warning: multi-line string literals are deprecated
vauth.c:35: parse error before "mysql_update"
vauth.c:35: warning: type defaults to `int' in declaration of `mysql_update'
vauth.c:35: warning: data definition has no type or storage class
vauth.c:36: parse error before "mysql_read_getall"
vauth.c:36: warning: type defaults to `int' in declaration of
`mysql_read_getall
'
vauth.c:36: warning: data definition has no type or storage class
vauth.c:54: parse error before '*' token
vauth.c:54: warning: type defaults to `int' in declaration of `res_update'
vauth.c:54: warning: data definition has no type or storage class
vauth.c:55: parse error before '*' token
vauth.c:55: warning: type defaults to `int' in declaration of
`res_read_getall'
vauth.c:55: warning: data definition has no type or storage class
vauth.c:63: parse error before "row"
vauth.c:63: warning: type defaults to `int' in declaration of `row'
vauth.c:63: warning: data definition has no type or storage class
vauth.c:64: parse error before "row_getall"
vauth.c:64: warning: type defaults to `int' in declaration of `row_getall'
vauth.c:64: warning: data definition has no type or storage class
vauth.c: In function `vauth_open_update':
vauth.c:108: warning: implicit declaration of function `mysql_init'
vauth.c:111: warning: implicit declaration of function `mysql_real_connect'
vauth.c:116: warning: implicit declaration of function `mysql_error'
vauth.c:116: warning: format argument is not a pointer (arg 3)
vauth.c:127: warning: format argument is not a pointer (arg 3)
vauth.c:135: warning: implicit declaration of function `mysql_query'
vauth.c:140: warning: format argument is not a pointer (arg 2)
vauth.c:143: warning: implicit declaration of function `mysql_store_result'
vauth.c:143: warning: assignment makes pointer from integer without a cast
vauth.c:144: warning: implicit declaration of function `mysql_free_result'
vauth.c:147: warning: implicit declaration of function `mysql_select_db'
vauth.c: In function `vauth_adddomain':
vauth.c:239: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vauth_adduser':
vauth.c:311: warning: int format, pointer arg (arg 7)
vauth.c:311: warning: format argument is not a pointer (arg 8)
vauth.c:311: warning: too many arguments for format
vauth.c:311: warning: int format, pointer arg (arg 7)
vauth.c:311: warning: format argument is not a pointer (arg 8)
vauth.c:311: warning: too many arguments for format
vauth.c:314: warning: format argument is not a pointer (arg 2)
vauth.c:317: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vauth_getpw':
vauth.c:362: warning: too many arguments for format
vauth.c:362: warning: too many arguments for format
vauth.c:366: warning: format argument is not a pointer (arg 2)
vauth.c:370: warning: assignment makes pointer from integer without a cast
vauth.c:375: warning: implicit declaration of function `mysql_num_rows'
vauth.c:394: warning: implicit declaration of function `mysql_fetch_row'
vauth.c:395: subscripted value is neither array nor pointer
vauth.c:395: subscripted value is neither array nor pointer
vauth.c:395: subscripted value is neither array nor pointer
vauth.c:395: subscripted value is neither array nor pointer
vauth.c:395: subscripted value is neither array nor pointer
vauth.c:396: subscripted value is neither array nor pointer
vauth.c:396: subscripted value is neither array nor pointer
vauth.c:396: subscripted value is neither array nor pointer
vauth.c:396: subscripted value is neither array nor pointer
vauth.c:396: subscripted value is neither array nor pointer
vauth.c:396: subscripted value is neither array nor pointer
vauth.c:397: subscripted value is neither array nor pointer
vauth.c:397: subscripted value is neither array nor pointer
vauth.c:398: subscripted value is neither array nor pointer
vauth.c:398: subscripted value is neither array nor pointer
vauth.c:399: subscripted value is neither array nor pointer
vauth.c:399: subscripted value is neither array nor pointer
vauth.c:399: subscripted value is neither array nor pointer
vauth.c:399: subscripted value is neither array nor pointer
vauth.c:399: subscripted value is neither array nor pointer
vauth.c:399: subscripted value is neither array nor pointer
vauth.c:400: subscripted value is neither array nor pointer
vauth.c:400: subscripted value is neither array nor pointer
vauth.c:400: subscripted value is neither array nor pointer
vauth.c:400: subscripted value is neither array nor pointer
vauth.c:400: subscripted value is neither array nor pointer
vauth.c:400: subscripted value is neither array nor pointer
vauth.c:401: subscripted value is neither array nor pointer
vauth.c:401: subscripted value is neither array nor pointer
vauth.c:401: subscripted value is neither array nor pointer
vauth.c:401: subscripted value is neither array nor pointer
vauth.c:401: subscripted value is neither array nor pointer
vauth.c:401: subscripted value is neither array nor pointer
vauth.c:403: subscripted value is neither array nor pointer
vauth.c:403: subscripted value is neither array nor pointer
vauth.c:403: subscripted value is neither array nor pointer
vauth.c:403: subscripted value is neither array nor pointer
vauth.c:403: subscripted value is neither array nor pointer
vauth.c:403: subscripted value is neither array nor pointer
vauth.c: In function `vauth_deldomain':
vauth.c:433: warning: assignment makes pointer from integer without a cast
vauth.c:446: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vauth_deluser':
vauth.c:475: warning: too many arguments for format
vauth.c:475: warning: too many arguments for format
vauth.c:479: warning: assignment makes pointer from integer without a cast
vauth.c:489: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vauth_setquota':
vauth.c:518: warning: too many arguments for format
vauth.c:518: warning: too many arguments for format
vauth.c:521: warning: format argument is not a pointer (arg 2)
vauth.c:524: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vauth_getall':
vauth.c:551: warning: too many arguments for format
vauth.c:551: warning: too many arguments for format
vauth.c:561: warning: format argument is not a pointer (arg 2)
vauth.c:565: warning: assignment makes pointer from integer without a cast
vauth.c:587: warning: comparison between pointer and integer
vauth.c:588: subscripted value is neither array nor pointer
vauth.c:588: subscripted value is neither array nor pointer
vauth.c:588: subscripted value is neither array nor pointer
vauth.c:588: subscripted value is neither array nor pointer
vauth.c:588: subscripted value is neither array nor pointer
vauth.c:589: subscripted value is neither array nor pointer
vauth.c:589: subscripted value is neither array nor pointer
vauth.c:589: subscripted value is neither array nor pointer
vauth.c:589: subscripted value is neither array nor pointer
vauth.c:589: subscripted value is neither array nor pointer
vauth.c:589: subscripted value is neither array nor pointer
vauth.c:590: subscripted value is neither array nor pointer
vauth.c:590: subscripted value is neither array nor pointer
vauth.c:591: subscripted value is neither array nor pointer
vauth.c:591: subscripted value is neither array nor pointer
vauth.c:592: subscripted value is neither array nor pointer
vauth.c:592: subscripted value is neither array nor pointer
vauth.c:592: subscripted value is neither array nor pointer
vauth.c:592: subscripted value is neither array nor pointer
vauth.c:592: subscripted value is neither array nor pointer
vauth.c:592: subscripted value is neither array nor pointer
vauth.c:593: subscripted value is neither array nor pointer
vauth.c:593: subscripted value is neither array nor pointer
vauth.c:593: subscripted value is neither array nor pointer
vauth.c:593: subscripted value is neither array nor pointer
vauth.c:593: subscripted value is neither array nor pointer
vauth.c:593: subscripted value is neither array nor pointer
vauth.c:594: subscripted value is neither array nor pointer
vauth.c:595: subscripted value is neither array nor pointer
vauth.c:595: subscripted value is neither array nor pointer
vauth.c:595: subscripted value is neither array nor pointer
vauth.c:595: subscripted value is neither array nor pointer
vauth.c:595: subscripted value is neither array nor pointer
vauth.c:598: subscripted value is neither array nor pointer
vauth.c:599: subscripted value is neither array nor pointer
vauth.c:599: subscripted value is neither array nor pointer
vauth.c:599: subscripted value is neither array nor pointer
vauth.c:599: subscripted value is neither array nor pointer
vauth.c:599: subscripted value is neither array nor pointer
vauth.c: In function `vauth_setpw':
vauth.c:684: warning: too many arguments for format
vauth.c:684: warning: too many arguments for format
vauth.c:687: warning: format argument is not a pointer (arg 2)
vauth.c:691: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vclose':
vauth.c:799: warning: implicit declaration of function `mysql_close'
vauth.c: In function `vread_dir_control':
vauth.c:954: warning: assignment makes pointer from integer without a cast
vauth.c:959: warning: comparison between pointer and integer
vauth.c:961: subscripted value is neither array nor pointer
vauth.c:962: subscripted value is neither array nor pointer
vauth.c:963: subscripted value is neither array nor pointer
vauth.c:965: subscripted value is neither array nor pointer
vauth.c:966: subscripted value is neither array nor pointer
vauth.c:967: subscripted value is neither array nor pointer
vauth.c:969: subscripted value is neither array nor pointer
vauth.c:970: subscripted value is neither array nor pointer
vauth.c:971: subscripted value is neither array nor pointer
vauth.c:973: subscripted value is neither array nor pointer
vauth.c:974: subscripted value is neither array nor pointer
vauth.c:975: subscripted value is neither array nor pointer
vauth.c:977: subscripted value is neither array nor pointer
vauth.c:978: subscripted value is neither array nor pointer
vauth.c:979: subscripted value is neither array nor pointer
vauth.c:981: subscripted value is neither array nor pointer
vauth.c:981: subscripted value is neither array nor pointer
vauth.c:981: subscripted value is neither array nor pointer
vauth.c:981: subscripted value is neither array nor pointer
vauth.c:981: subscripted value is neither array nor pointer
vauth.c: In function `vwrite_dir_control':
vauth.c:1031: warning: format argument is not a pointer (arg 2)
vauth.c:1035: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vcreate_dir_control':
vauth.c:1049: warning: format argument is not a pointer (arg 2)
vauth.c:1052: warning: assignment makes pointer from integer without a cast
vauth.c:1072: warning: format argument is not a pointer (arg 2)
vauth.c:1075: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vdel_dir_control':
vauth.c:1091: warning: format argument is not a pointer (arg 2)
vauth.c:1095: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vset_lastauth':
vauth.c:1114: warning: format argument is not a pointer (arg 2)
vauth.c:1117: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vget_lastauth':
vauth.c:1135: warning: format argument is not a pointer (arg 2)
vauth.c:1139: warning: assignment makes pointer from integer without a cast
vauth.c:1142: subscripted value is neither array nor pointer
vauth.c: In function `vget_lastauthip':
vauth.c:1160: warning: format argument is not a pointer (arg 2)
vauth.c:1164: warning: assignment makes pointer from integer without a cast
vauth.c:1166: subscripted value is neither array nor pointer
vauth.c:1166: subscripted value is neither array nor pointer
vauth.c:1166: subscripted value is neither array nor pointer
vauth.c:1166: subscripted value is neither array nor pointer
vauth.c:1166: subscripted value is neither array nor pointer
vauth.c: In function `vcreate_lastauth_table':
vauth.c:1180: warning: format argument is not a pointer (arg 2)
vauth.c:1183: warning: assignment makes pointer from integer without a cast
vauth.c: In function `logmysql':
vauth.c:1359: warning: assignment makes pointer from integer without a cast
vauth.c: In function `vcreate_vlog_table':
vauth.c:1376: warning: assignment makes pointer from integer without a cast
make[2]: *** [vauth.o] Error 1
make[2]: Leaving directory `/tmp/vpopmail-5.2.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/vpopmail-5.2.1'
make: *** [all-recursive-am] Error 2
Avatar billede bacce.dk Nybegynder
03. januar 2003 - 18:59 #1
hmm ja det ser meget ud som om at problemet ligger i at du vil benytte mysql meeen at dette ikke står skrevet helt korrekt i din ./comfigure, sååå må vi se ALT hvad du skriver i din "./comfigure bla bla" ??
Avatar billede condor9 Nybegynder
04. januar 2003 - 00:15 #2
Tak for hjælpen, jeg prøve at lave en ny config men uden mysql og det hjalp. Jeg fik den compilet og installeret.

Dernæst skal jeg så indtallere qmailadmin, der gør jeg det samme hvor jeg kører ./configure  --enable-htmldir=/var/www/html hvis jeg kører ./configure uden--enable-html...... så kommer den med fejl.

Når jeg så skal make støder jeg ind i samme problem som jeg gjorde før, den skriver en hel masse, men det halve af det er en warning og den bliver ikke færdig..

Vpopmail skulle være installeret korrekt, den kom i hvertfald ikke med nogle fejl da jeg kørte make install.

Teksten er her:
make  all-recursive
make[1]: Entering directory `/tmp/qmailadmin-0.45'
make[2]: Entering directory `/tmp/qmailadmin-0.45'
gcc -I. -I/home/vpopmail/include      -g -O2 -c qmailadmin.c
qmailadmin.c: In function `main':
qmailadmin.c:122: warning: assignment from incompatible pointer type
qmailadmin.c:206: warning: assignment from incompatible pointer type
gcc -I. -I/home/vpopmail/include      -g -O2 -c alias.c
alias.c: In function `show_redirect_lines':
alias.c:295: warning: assignment from incompatible pointer type
alias.c: In function `doredirect':
alias.c:326: warning: assignment from incompatible pointer type
alias.c: In function `moddotqmailnow':
alias.c:409: warning: assignment from incompatible pointer type
alias.c: In function `adddotqmailnow':
alias.c:501: warning: assignment from incompatible pointer type
alias.c: In function `delredirectnow':
alias.c:582: warning: assignment from incompatible pointer type
gcc -I. -I/home/vpopmail/include      -g -O2 -c autorespond.c
gcc -I. -I/home/vpopmail/include      -g -O2 -c forward.c
gcc -I. -I/home/vpopmail/include      -g -O2 -c mailinglist.c
gcc -I. -I/home/vpopmail/include      -g -O2 -c sysadmin.c
gcc -I. -I/home/vpopmail/include      -g -O2 -c user.c
In file included from user.c:32:
/home/vpopmail/include/vpopmail_config.h:170:1: warning: "PACKAGE" redefined
In file included from user.c:28:
config.h:97:1: warning: this is the location of the previous definition
In file included from user.c:32:
/home/vpopmail/include/vpopmail_config.h:173:1: warning: "VERSION" redefined
In file included from user.c:28:
config.h:100:1: warning: this is the location of the previous definition
user.c: In function `show_user_lines':
user.c:87: warning: assignment from incompatible pointer type
user.c:94: warning: assignment from incompatible pointer type
user.c:125: warning: assignment from incompatible pointer type
user.c:130: warning: assignment from incompatible pointer type
user.c:175: warning: assignment from incompatible pointer type
user.c: In function `modusergo':
user.c:381: warning: assignment from incompatible pointer type
user.c:383: warning: passing arg 1 of `vauth_setpw' from incompatible pointer type
user.c: In function `count_users':
user.c:542: warning: assignment from incompatible pointer type
user.c:545: warning: assignment from incompatible pointer type
gcc -I. -I/home/vpopmail/include      -g -O2 -c util.c
gcc -I. -I/home/vpopmail/include      -g -O2 -c auth.c
gcc -I. -I/home/vpopmail/include      -g -O2 -c template.c
template.c: In function `send_template':
template.c:338: warning: assignment from incompatible pointer type
template.c:342: warning: assignment from incompatible pointer type
gcc -I. -I/home/vpopmail/include      -g -O2 -c command.c
command.c: In function `setdefaultaccount':
command.c:209: warning: assignment from incompatible pointer type
gcc -I. -I/home/vpopmail/include      -g -O2 -c show.c
gcc -I. -I/home/vpopmail/include      -g -O2 -c cgi.c
gcc -I. -I/home/vpopmail/include      -g -O2 -c limits.c
gcc -I. -I/home/vpopmail/include      -g -O2 -c dotqmail.c
gcc  -g -O2  -o qmailadmin  qmailadmin.o alias.o autorespond.o forward.o mailinglist.o sysadmin.o user.o util.o auth.o template.o command.o show.o cgi.o limits.o dotqmail.o -L/home/vpopmail/lib -lvpopmail -lnsl -lm -lcrypt
alias.o: In function `show_redirect_lines':
/tmp/qmailadmin-0.45/alias.c:301: undefined reference to `slen'
/tmp/qmailadmin-0.45/alias.c:303: undefined reference to `scopy'
/tmp/qmailadmin-0.45/alias.c:304: undefined reference to `scat'
alias.o: In function `doredirect':
/tmp/qmailadmin-0.45/alias.c:333: undefined reference to `slen'
/tmp/qmailadmin-0.45/alias.c:335: undefined reference to `scopy'
/tmp/qmailadmin-0.45/alias.c:336: undefined reference to `scat'
alias.o: In function `delredirectnow':
/tmp/qmailadmin-0.45/alias.c:587: undefined reference to `slen'
/tmp/qmailadmin-0.45/alias.c:589: undefined reference to `scopy'
/tmp/qmailadmin-0.45/alias.c:590: undefined reference to `scat'
mailinglist.o: In function `delmailinglistnow':
/tmp/qmailadmin-0.45/mailinglist.c:277: undefined reference to `slen'
collect2: ld returned 1 exit status
make[2]: *** [qmailadmin] Error 1
make[2]: Leaving directory `/tmp/qmailadmin-0.45'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/qmailadmin-0.45'
make: *** [all-recursive-am] Error 2
Avatar billede condor9 Nybegynder
20. april 2003 - 20:13 #3
Lukker selv
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester