info-mtools
[Top][All Lists]
Advanced

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

Re: [Info-mtools] GNU mtools 4.0.18 released


From: Gert Hulselmans
Subject: Re: [Info-mtools] GNU mtools 4.0.18 released
Date: Sat, 12 Jan 2013 21:50:37 +0100

> Hi Alain,
>
> Am 09.01.2013 um 21:45 schrieb Alain Knaff <address@hidden>:
>> On 2013-01-09 21:26, Dagobert Michelsen wrote:
>>> Hi Alain,
>>>
>>> Am 09.01.2013 um 20:58 schrieb Alain Knaff <address@hidden>:
>>>> I am pleased to announce the release of GNU mtools version 4.0.18
>>>>
>>>> GNU mtools is available for download from
>>>> ftp://ftp.gnu.org/gnu/mtools and the mirror sites worldwide (see
>>>> http://www.gnu.org/order/ftp.html for the list of those).
>>>>
>>>> The signed sources can be obtained from ftp.gnu.org and its world-wide
>>>> mirrors:
>>>>
>>>> ftp://ftp.gnu.org/gnu/mtools/mtools-4.0.18.tar.gz    (519K)
>>>> ftp://ftp.gnu.org/gnu/mtools/mtools-4.0.18.tar.bz2   (411K)
>>>> ftp://ftp.gnu.org/gnu/mtools/mtools-4.0.18.tar.lz    (348K)
>>>
>>> Unfortunately these are missing, there are just RPM and DEB packages.
>>
>> Could you try again, looks like the upload was just a little bit slow...
>
>
> Much better :-) I noticed that 4.0.18 is using strndup which is something
> I don't have on Solaris as e.g. also reported in
>   http://bugs.mysql.com/bug.php?id=7974
> As mtools is already a GNU projects is pulling in gnulib an option?
>   http://www.gnu.org/software/gnulib/manual/html_node/strndup.html
>
>
> Best regards
>
>  -- Dago

When I try to compile mtools-4.0.18 with i586-mingw32msv, I also hit
the strndup problme
When I put the fix they propose at that URL, I can compile it.

Content of strndup.h (include this file in config.c):

//#if defined(SOLARIS)||defined(__APPLE__) || defined(WIN32) ||
defined(_FORTEC_)
char *strndup( const char *s, size_t n )
{
    size_t nAvail;
    char *p;

    if ( !s )
        return 0;

    nAvail = min( strlen(s) + 1, n + 1 );
    p      = malloc( nAvail );
    memcpy( p, s, nAvail );
    p[nAvail - 1] = '\0';

/*
printf( "[PAH][%s][%d] nAvail=%d p=(%s)\n", __FILE__, __LINE__, nAvail, p );
*/
    return p;
}
//#endif


Best regards,
Gert Hulselmans



reply via email to

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