libtool
[Top][All Lists]
Advanced

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

foreach_dirinpath on Solaris 10


From: Maciej Bliziński
Subject: foreach_dirinpath on Solaris 10
Date: Wed, 14 Nov 2007 16:49:02 -0800

Hi libtool!

I'm trying to compile you (version 1.5.24) on Solaris 10, using Sun C compiler.

cc -V
cc: Sun C 5.9 SunOS_sparc 2007/05/03
usage: cc [ options] files.  Use 'cc -flags' for details

make
Making all in .
Making all in libltdl
make  all-am
/bin/bash ./libtool --tag=CC    --mode=compile cc -DHAVE_CONFIG_H -I.
    -m64 -c -o ltdl.lo ltdl.c
 cc -DHAVE_CONFIG_H -I. -m64 -c ltdl.c  -KPIC -DPIC -o .libs/ltdl.o
"ltdl.c", line 3783: warning: argument #4 is incompatible with prototype:
        prototype: pointer to void : "ltdl.c", line 2684
        argument : pointer to function(pointer to const char, pointer
to void) returning int

Prototype looks like this:

static int
foreach_dirinpath (search_path, base_name, func, data1, data2)
     const char *search_path;
     const char *base_name;
     foreach_callback_func *func;
     lt_ptr data1;
     lt_ptr data2;

Call looks like this:
      is_done = foreach_dirinpath (search_path, 0,
                                   foreachfile_callback, func, data);

When I replaced references to `func' with 0, the code compiled.

If I'm not mistaken, last two parameters should be of type `lt_ptr'.
However, variable `func' in the call is a pointer to a function, it's
not a `lt_ptr'. Is it intended?




reply via email to

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