I am getting a: syntax error before `uid_t' in vauth.c for some 
reason.  Hopefully someone can help.

Using:
vpopmail 5.0
vqadmin 1.18
gcc version 2.95.3 20010315 (release) [FreeBSD]

Jason

# ./configure --prefix=/usr/local/vqadmin 
--enable-cgibindir=/home/https/cgi-bin
creating cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... found
checking host system type... i386-unknown-freebsd4.4
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for POSIXized ISC... no
checking how to run the C preprocessor... gcc -E
checking for AIX... no
yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking for ANSI C header files... yes
checking for unistd.h... yes
checking for working const... yes
checking for size_t... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for crypt in -lcrypt... yes
checking for floor in -lm... yes
checking for compress in -lz... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h

             Current settings
---------------------------------------
vpopmail directory = /home/vpopmail
                uid = 1011
                gid = 1006
        cgi-bin dir = /home/https/cgi-bin
        vqadmin dir = /home/https/cgi-bin/vqadmin
# make
make  all-recursive
gcc -I. -I/home/vpopmail/include     -g -O2 -Wall -c vqadmin.c
gcc -I. -I/home/vpopmail/include     -g -O2 -Wall -c cgi.c
gcc -I. -I/home/vpopmail/include     -g -O2 -Wall -c template.c
gcc -I. -I/home/vpopmail/include     -g -O2 -Wall -c global.c
gcc -I. -I/home/vpopmail/include     -g -O2 -Wall -c acl.c
acl.c: In function `acl_parse_features':
acl.c:133: warning: array subscript has type `char'
acl.c:134: warning: array subscript has type `char'
acl.c:135: warning: array subscript has type `char'
acl.c:136: warning: array subscript has type `char'
gcc -I. -I/home/vpopmail/include     -g -O2 -Wall -c misc.c
In file included from misc.c:25:
/home/vpopmail/include/vauth.h:38: syntax error before `uid_t'
/home/vpopmail/include/vauth.h:62: syntax error before `vget_lastauth'
/home/vpopmail/include/vauth.h:62: warning: type defaults to `int' in 
declaration of `vget_lastauth'
/home/vpopmail/include/vauth.h:62: warning: data definition has no type or 
storage class
/home/vpopmail/include/vauth.h:89: syntax error before `uid_t'
/home/vpopmail/include/vauth.h:90: syntax error before `uid_t'
/home/vpopmail/include/vauth.h:91: syntax error before `uid'
/home/vpopmail/include/vauth.h:95: syntax error before `uid_t'
/home/vpopmail/include/vauth.h:98: syntax error before `uid_t'
/home/vpopmail/include/vauth.h:99: syntax error before `uid_t'
*** Error code 1

Stop in /usr/home/kerrja/vqadmin-1.18.
*** Error code 1

Stop in /usr/home/kerrja/vqadmin-1.18.
*** Error code 1

Stop in /usr/home/kerrja/vqadmin-1.18.
#

vi /home/vpopmail/include/vauth.h
<<snip>>>
struct vqpasswd {
   char *pw_name;                /* Username.  */
   char *pw_passwd;              /* Password.  */
   uid_t pw_uid;                 /* User ID.  */
   gid_t pw_gid;                 /* Group ID.  */
   char *pw_gecos;               /* Real name.  */
   char *pw_dir;                 /* Home directory.  */
   char *pw_shell;               /* Shell program.  */
   char *pw_clear_passwd;        /* Clear password.  */
};

It looks okay to me.

Reply via email to