Jeremy Kister wrote:
looks like vpopmail is looking for an "err.h"

make[2]: Leaving directory `/export/home/src/sparc-sun-solaris2.7/vpopmail-5.4.13/cdb' make[2]: Entering directory `/export/home/src/sparc-sun-solaris2.7/vpopmail-5.4.13' gcc -I. -Icdb -I. -I. -I. -fPIC -g -O2 -Wall -c -o libvpopmail_a-vpopmail.o `test -f 'vpopmail.c' || echo './'`vpopmail.c
vpopmail.c:35: err.h: No such file or directory
make[2]: *** [libvpopmail_a-vpopmail.o] Error 1

the only place I have an err.h is in /usr/include/sys/

If I muck with the Makefile,

-DEFAULT_INCLUDES =  -I. -I$(srcdir) -I.
+DEFAULT_INCLUDES =  -I. -I$(srcdir) -I/usr/include/sys/

and then try to make, i still get errors:

In file included from vpopmail.c:35:
/usr/include/sys/err.h:32: field `e_map' has incomplete type
vpopmail.c: In function `vadddomain':
vpopmail.c:130: warning: implicit declaration of function `chdir'
vpopmail.c:3096: dereferencing pointer to incomplete type
make[2]: *** [libvpopmail_a-vpopmail.o] Error 1

What's the solution to this problem ?

I am still using an older version, but the problem is with the use of "warn" in the "r_mkdir" routine more or less lines 1822 & 1830. It will compile if you change the format from "warn ('xxx')" to "fprintf (stderr, 'xxx');" a format also used in line 1833. I checked, and err.h is available for Linux, but not for Solaris.

I don't have a patch, but could make one for you if you really need it, or better yet, if the maintainers could roll back to using fprintf to stderr for compatibility's sake?

Jorge Valdes
Intercom El Salvador
voz: ++(503) 2278-5068
fax: ++(503) 2265-7025

Reply via email to