info-mtools
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mtools] mtools 3.9.11 failed to compile on Solaris 9, workarounds


From: Zube
Subject: [Mtools] mtools 3.9.11 failed to compile on Solaris 9, workarounds
Date: Thu, 31 May 2007 08:17:17 -0600
User-agent: Mutt/1.5.15cvs (2007-05-20)

mtools 3.9.11 does not compile on Solaris 9.  I used: 

./configure --disable-floppyd

for my attempt.  Two workarounds are needed:

1) The configure script does this in config.h:

/* #undef HAVE_GETOPT_H */

That works ok until it tries to compile mclasserase.c, which has the line:

#include "getopt.h"

so the compile fails.  Commenting out that line allows the compile to
continue.

2) The configure script also does this in config.h:

/* #undef HAVE_HTONS */

even though Solaris has htons().  During the link, it tries to find myhtons() 
which doesn't seem to be defined anywhere.

Changing the line to:

#define HAVE_HTONS 1

in config.h allows the whole thing to compile.  Haven't tested it yet, 
however.

Cheers,
Zube


reply via email to

[Prev in Thread] Current Thread [Next in Thread]