what does your "man scandir" say? The way that call has been written in the 1.0.7 code seems to match exactly with the example I get when I run "man scandir" on my Redhat linux box.
part of the output of "man scandir" : EXAMPLE /* print files in current directory in reverse order */ #include <dirent.h> main(){ struct dirent **namelist; int n; n = scandir(".", &namelist, 0, alphasort); if (n < 0) perror("scandir"); else { while(n--) { printf("%s\n", namelist[n]->d_name); free(namelist[n]); } free(namelist); } } Not sure what the fix is to make it compatible with solaris.. ps. v1.0.7 does compile ok for me under redhat Michael. > -----Original Message----- > From: Steve Fulton [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 16 January 2003 2:46 PM > To: [EMAIL PROTECTED] > Subject: [qmailadmin] Qmailadmin-1.0.7.01142003 compile > problem under Solaris. > > > Hi all, > > I'm having difficulty compile Qmailadmin-1.0.7.01142003 under > Solaris. I > get this error: > > bash-2.03# make > gcc -I. -I/var/vpopmail/include -g -O2 -c qmailadmin.c > gcc -I. -I/var/vpopmail/include -g -O2 -c alias.c > alias.c:33:21: sys/dir.h: No such file or directory > alias.c: In function `show_dotqmail_lines': > alias.c:82: `alphasort' undeclared (first use in this function) > alias.c:82: (Each undeclared identifier is reported only once > alias.c:82: for each function it appears in.) > make: *** [alias.o] Error 1 > > As you can see, it does not know the alphasort function. > According to "man > alphasort", it is part of <sys/types.h> and <sys/dir.h> .. I > added those in > manually to alias.c, and still had the same error. > > Any thoughts? > > -- Steve > > > >