A NOTE has been added to this issue. ====================================================================== http://dbmail.org/mantis/view.php?id=331 ====================================================================== Reported By: lkneschke Assigned To: ====================================================================== Project: DBMail Issue ID: 331 Category: General Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 22-Apr-06 17:13 CEST Last Modified: 23-Apr-06 23:12 CEST ====================================================================== Summary: Make DBMail compiling under Solaris Description: DBMail is currently not compileable because of two easy fixeable problems.
First you need to include unistd.h instead of getopt.h. And there is no strcasestr on Solaris available. I have attached 2 patches. The getopt patch can be applied without problems. The strcasestr patch if more a prof of concept. I copied the code from http://www.koders.com/c/fid798A0739421823ED85D3B691E2B8C20CA354D5C9.aspx . I have not checked any license problems or if the code is really perfect. But with this patch i'm able to compile DBMail under Solaris. ====================================================================== ---------------------------------------------------------------------- aaron - 23-Apr-06 23:12 ---------------------------------------------------------------------- We've managed to kill the replacement dm_getopt includes by leaving it out of autoconf. We do, however, include unistd everywhere, so that confuses me. Does the compile die with a complaint about getopt.h not found? Please post the relevant messages. I'll work on replacing strcasestr. I think the stupidest method might be the best here: take the two strings, make them all-upper (or all-lower) and run strstr as usual. Issue History Date Modified Username Field Change ====================================================================== 22-Apr-06 17:13 lkneschke New Issue 22-Apr-06 17:13 lkneschke File Added: getopt_patch.diff 22-Apr-06 17:13 lkneschke File Added: strcasestr_patch.diff 23-Apr-06 23:12 aaron Note Added: 0001093 ======================================================================