[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libltdl crashes under Solaris LP64 64-bit model
From: |
libtool |
Subject: |
Re: libltdl crashes under Solaris LP64 64-bit model |
Date: |
Sun, 30 Sep 2001 22:28:29 -0500 |
User-agent: |
Mutt/1.2.5i |
On Sat, Sep 29, 2001 at 10:56:13PM -0500, Bob Friesenhahn wrote:
> The problem with libltdl in the Solaris LP64 64-bit model is due to a
> mismatch with sizes. argzize_path requires size_t. Under 64-bits
> size_t is 8 bytes and int is 4 bytes. Here is a patch which should
> resolve the problem.
Then why not make argz_len size_t? Nothing else in foreach_dirinpath
uses argz_len so it would seem more correct.
> Index: ltdl.c
> ===================================================================
> RCS file: /home/cvs/libtool/libltdl/ltdl.c,v
> retrieving revision 1.159
> diff -u -r1.159 ltdl.c
> --- ltdl.c 2001/09/21 17:38:39 1.159
> +++ ltdl.c 2001/09/30 03:53:19
> @@ -2165,7 +2165,7 @@
> int result = 0;
> int filenamesize = 0;
> int lenbase = LT_STRLEN (base_name);
> - int argz_len = 0;
> + long argz_len = 0;
> char *argz = 0;
> char *filename = 0;
> char *canonical = 0;
>
>
>
> _______________________________________________
> Libtool mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/libtool
--
albert chin (address@hidden)