Re: compilation issue for 2.0.1

2004-09-12 Thread Ralf S. Engelschall
On Tue, Aug 10, 2004, Robert Anderson wrote:

> I downloaded the 2.0.1 release, and got the following compilation
> error:
>
> % make
> ./libtool --mode=compile --quiet gcc -c -I. -I.. ../pth_event.c
> ../pth_event.c: In function `pth_event':
> ../pth_event.c:199: parse error before `*'
> ../pth_event.c:199: parse error before `)'
> ../pth_event.c: In function `pth_event_extract':
> ../pth_event.c:269: parse error before `*'
> ../pth_event.c:269: parse error before `)'
> make: *** [pth_event.lo] Error 1
>
> So, I went back to 1.4.1.  Which leads me to my next question,
> for which I will start a new thread...

This is caused by some weaker macro parsing behaviour in GCC 2.x and
3.5. With 3.4 it works fine. I've now workaround the parsing problem in
GNU Pth 2.0.2 by using pre-declared function pointer type.

   Ralf S. Engelschall
   [EMAIL PROTECTED]
   www.engelschall.com

__
GNU Portable Threads (Pth)http://www.gnu.org/software/pth/
Development Site  http://www.ossp.org/pkg/lib/pth/
Distribution Files  ftp://ftp.gnu.org/gnu/pth/
Distribution Snapshots ftp://ftp.ossp.org/pkg/lib/pth/
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager (Majordomo)   [EMAIL PROTECTED]


Re: compilation issue for 2.0.1

2004-08-13 Thread Ralf S. Engelschall
On Tue, Aug 10, 2004, Robert Anderson wrote:

> I downloaded the 2.0.1 release, and got the following compilation
> error:
>
> % make
> ./libtool --mode=compile --quiet gcc -c -I. -I.. ../pth_event.c
> ../pth_event.c: In function `pth_event':
> ../pth_event.c:199: parse error before `*'
> ../pth_event.c:199: parse error before `)'
> ../pth_event.c: In function `pth_event_extract':
> ../pth_event.c:269: parse error before `*'
> ../pth_event.c:269: parse error before `)'
> make: *** [pth_event.lo] Error 1

The problematic line is:

   ev->ev_args.FUNC.func  = va_arg(ap, int (*)(void *));

So, seems like your va_arg() is confused by the function
pointer type. Under what OS and C compiler are you trying this?

   Ralf S. Engelschall
   [EMAIL PROTECTED]
   www.engelschall.com

__
GNU Portable Threads (Pth)http://www.gnu.org/software/pth/
Development Site  http://www.ossp.org/pkg/lib/pth/
Distribution Files  ftp://ftp.gnu.org/gnu/pth/
Distribution Snapshots ftp://ftp.ossp.org/pkg/lib/pth/
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager (Majordomo)   [EMAIL PROTECTED]


compilation issue for 2.0.1

2004-08-10 Thread Robert Anderson

I downloaded the 2.0.1 release, and got the following compilation
error:

% make
./libtool --mode=compile --quiet gcc -c -I. -I.. ../pth_event.c
../pth_event.c: In function `pth_event':
../pth_event.c:199: parse error before `*'
../pth_event.c:199: parse error before `)'
../pth_event.c: In function `pth_event_extract':
../pth_event.c:269: parse error before `*'
../pth_event.c:269: parse error before `)'
make: *** [pth_event.lo] Error 1

So, I went back to 1.4.1.  Which leads me to my next question,
for which I will start a new thread...

Bob


__
GNU Portable Threads (Pth)http://www.gnu.org/software/pth/
Development Site  http://www.ossp.org/pkg/lib/pth/
Distribution Files  ftp://ftp.gnu.org/gnu/pth/
Distribution Snapshots ftp://ftp.ossp.org/pkg/lib/pth/
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager (Majordomo)   [EMAIL PROTECTED]