Excellent! Michael I think you found the answer. Somewhere in a .c file put in: #ifndef HAVE_ALPHASORT the code from the links below #endif
Then in the configure.in file change this line: AC_CHECK_FUNCS(getcwd mkdir strdup strstr fdatasync sigaction ) To some thing like: AC_CHECK_FUNCS(alphasort getcwd mkdir strdup strstr fdatasync sigaction ) The AC_CHECK_FUNCS check for alphasort and set the #define if it is found. If it is not found it doesn't set HAVE_ALPHASORT. So #ifndef HAVE_ALPHASORT will compile in the alphasort code for solaris or other boxen that don't have it in the standard libraries. So it might work on HP, FreeBSD, SCO... /* Define if you have the alphasort function. */ #define HAVE_ALPHASORT 1 Alternativly, in the configure.in file you can create a little c program and compile it to see if the alphasort function, or whatever code you are trying, actually works and set some #ifdef variable accordingly. Anyone with a Solaris boxen want to try cutting and pasting in an #ifdef to get the alpha sort stuff working? Ken Jones On Friday 17 January 2003 04:23 pm, Michael Bowe wrote: > Are any of these links of use in helping fix the scandir/alphasort problem > on solaris? > > http://www.unidata.ucar.edu/projects/coohl/mhonarc/MailArchives/gempak/msg0 >0 759.html > > http://www.htdig.org/htdig-dev/2000/09/0051.html > > http://www.niac.man.ac.uk/Tina/lxr/http/source/file/util/file_name.c > > Michael > > > -----Original Message----- > > From: Steve Fulton [mailto:[EMAIL PROTECTED]] > > Sent: Friday, 17 January 2003 1:13 PM > > To: [EMAIL PROTECTED] > > Subject: [qmailadmin] QmailAdmin & Solaris. > > > > > > Hi all, > > > > Those of you who have seen my e-mails over the last day are > > aware of the > > compile problems I have been having with QmailAdmin 1.0.7.xxxx and > > Solaris. Those of you who have not now are. > > > > I am aware that a number of contributions have been made and > > those make up > > the 1.0.7 version. However many of those additions have, > > unintentionally, > > now excluded the Solaris OS from running QmailAdmin 1.0.7 and > > likely future > > versions, if they include the same problematic functions. > > > > FYI, those functions are: "alphasort" in alias.c and the > > "fts" functions > > (fts_open, fts_read, fts_number etc etc) in util.c > > > > I have spent the last day importing libraries, headers and > > searching for > > and compiling programs for the Solaris 8 machines I maintain. > > I was able > > to add an appropriate header for the alphasort() function, but less > > experienced admins may not have the wherewithal to do this. > > I have also > > discovered that fts is not available for Solaris. My > > attempts to port it > > have failed. > > > > Unless others can succeed where I have failed, I am > > officially suggesting > > that QmailAdmin remove those functions and find alternates which are > > compatible with all the major OS'es. Otherwise, QmailAdmin should > > explicitedly state that Solaris is not supported. > > Unfortunately this will > > preclude a number of current users from upgrading, and there may be a > > cascade effect detrimental to Vpopmail. Let me also say to > > those ardent > > BSD and Linux users who may have negative comments regarding > > Solaris: don't > > bother. > > > > -- Steve.
