Hi
The warnings on lines 630 & 675 are caused by calls to getpid(), which are returning values of type pid_t and formatting them as ints inside printf().
Sorry, I'm not sure why, but I guess Solaris does not take as kindly to this as Linux does.
Under Solaris, where is the getline() function found? Under Linux, it is in stdio.h and you must include `#define _GNU_SOURCE` at the top of your file. The "implicit declaration of function getline" warning may be being generated because your compiler cannot find getline(). Under Solaris, the function may be defined somewhere else. However, it is strange that the compiler does not complain about the getline() call in disable_efilter().
Some modifications may need to be made to the source in order to get it to run on Solaris. Sorry! I'm not as familiar with Solaris as Linux. Anyways, I hope this is of some help :)
Chris
domain.c: In function `enable_efilter':
domain.c:630: warning: int format, pid_t arg (arg 5)
domain.c:675: warning: int format, pid_t arg (arg 5)
domain.c:681: warning: implicit declaration of function `getline'
domain.c: In function `disable_efilter':
domain.c:735: warning: int format, pid_t arg (arg 5)
gcc -I. -I/var/vpopmail/include -g -O2 -Wall -c lang.c
gcc -I. -I/var/vpopmail/include -g -O2 -Wall -c user.c
user.c: In function `show_users':
user.c:444: warning: subscript has type `char'
gcc -I. -I/var/vpopmail/include -g -O2 -Wall -c cedit.c
gcc -g -O2 -Wall -o vqadmin vqadmin.o cgi.o template.o global.o acl.o misc.o domain.o lang.o user.o cedit.o -L/var/vpopmail/lib -lvpopmail -lz -lm -lcrypt
Undefined first referenced
symbol in file
getline domain.o
ld: fatal: Symbol referencing errors. No output written to vqadmin
collect2: ld returned 1 exit status
make[2]: *** [vqadmin] Error 1
make[2]: Leaving directory `/usr/local/src/mail/vqadmin-2.3.4'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/mail/vqadmin-2.3.4'
make: *** [all-recursive-am] Error 2
....
I'm at a loss, the code looks fine, and it does not seem to complain about similar calls in disable_efilter (regarding getline).
Any help?
-- Steve



Reply via email to