The problem is spamd/spamc.c uses a rather funky test to determine if in_addr_t is defined in a standard system include file, or if the program should define in_addr_t itself. The test combines a test for the OS type and a check for EX__MAX being defined.
The test is broken for some versions of OSF/1 and, obviously, for some versions of Solaris. I had previously submitted a patch to the mailing list for OSF/1. For Solaris, someone will need to come up with a good test to use. The existing code does check for SunOS 4.x with the test #if (defined(__sun__) && defined(__sparc__) && !defined(__svr4__)) but that needs to be adjusted to include at least some versions of Solaris. Solaris 2.5.1 (the only version I have access to) does not include a definition of in_addr_t. -Bill On Mon, 2002-07-01 at 06:13, Marguerite LEBRETON wrote: > Hello, > > I'm trying to install Spamassassin on a Sun workstation (Solaris > 5.5). As described in the installation doc, I unzip and untar the > archive (Mail-Spamassassin-2.30). But I have problems when compiling > spam.c : > > gcc -fno-strict-aliasing -O spamd/spamc.c \ > -o spamd/spamc -lsocket -lnsl -lgdbm -ldb -ldl -lm -lc > spamd/spamc.c: In function `try_to_connect': > spamd/spamc.c:406: warning: passing arg 2 of `connect' discards > qualifiers from pointer target type > spamd/spamc.c: In function `process_message': > spamd/spamc.c:453: `in_addr_t' undeclared (first use in this function) > spamd/spamc.c:453: (Each undeclared identifier is reported only once > spamd/spamc.c:453: for each function it appears in.) > spamd/spamc.c:453: parse error before `0xffffffff' > gmake: *** [spamd/spamc] Error 1 > > With an older version of Spamassasin, the problem is the same. > Any ideas? > Thank you. > > - > |Maguy LEBRETON - (TMSI/IDM/RIC) <mailto:[EMAIL PROTECTED]> > |IFREMER Institut Francais de Recherche pour l'Exploitation de la Mer > |Centre de Brest BP70 29280 PLOUZANE FRANCE > |Tel: 02 98 22 46 04 Fax: 02 98 22 45 46 > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Spamassassin-talk mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/spamassassin-talk ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk