new error with latest cvs stdlib.h

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

new error with latest cvs stdlib.h

Ilya Shestopalov
Im trying to compile freetype 2.3.7 with latest mingwrt and w32api and with recently updated headers stdio.h, stdlib.h http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/?cvsroot=src and receive the folloving error:

In file included from d:/mplayerproj/compiler/proj/freetype-src/freetype2/include/freetype/config/ftstdlib.h:123,
                 from ./builds/unix/ftconfig.h:43,
                 from d:/mplayerproj/compiler/proj/freetype-src/freetype2/src/base/ftsystem.c:29:
d:/mplayerproj/mingw/bin/../lib/gcc/mingw32/4.2.4/../../../../include/stdlib.h:317: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'double'
make: *** [/d/mplayerproj/compiler/proj/freetype-src/freetype2/objs/ftsystem.lo] Error 1

How to fix it?


      ________________________________________________________
Вы уже с Yahoo!?
Испытайте обновленную и улучшенную. Yahoo! Почту! http://ru.mail.yahoo.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Reply | Threaded
Open this post in threaded view
|

Re: new error with latest cvs stdlib.h

Danny Smith


> -----Original Message-----
> From: Ilya Shestopalov [mailto:[hidden email]]
> Sent: Sunday, 5 October 2008 7:08 p.m.
> To: [hidden email]
> Subject: [Mingw-users] new error with latest cvs stdlib.h
>
>
> Im trying to compile freetype 2.3.7 with latest mingwrt and
> w32api and with recently updated headers stdio.h, stdlib.h
> http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/?cvsroot
=src and receive the folloving error:
>
> In file included from
> d:/mplayerproj/compiler/proj/freetype-src/freetype2/include/fr
eetype/config/ftstdlib.h:123,
>                  from ./builds/unix/ftconfig.h:43,
>                  from
> d:/mplayerproj/compiler/proj/freetype-src/freetype2/src/base/f
tsystem.c:29:
> d:/mplayerproj/mingw/bin/../lib/gcc/mingw32/4.2.4/../../../../
> include/stdlib.h:317: error: expected '=', ',', ';', 'asm' or
> '__attribute__' before 'double'
> make: ***
> [/d/mplayerproj/compiler/proj/freetype-src/freetype2/objs/ftsy
stem.lo] Error 1
>
> How to fix it?

Change "inline* to "__inline__" at stdlib.h:317

"inline" is not a keyword in c89 (c89 is enforced by --ansi switch ).  
 Incidentally, you get the same error message if you run  "make test_headers" on CVS
source.
And even more surprisingly -- this has been broken since 5 May 2098 :(


Danny

>
>
>       ________________________________________________________
> Вы уже с Yahoo!?
> Испытайте обновленную и улучшенную. Yahoo! Почту!
> http://ru.mail.yahoo.com
>
> --------------------------------------------------------------
> -----------
> This SF.Net email is sponsored by the Moblin Your Move
> Developer's challenge
> Build the coolest Linux based applications with Moblin SDK &
> win great prizes
> Grand prize is a trip for two to an Open Source event
> anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> MinGW-users mailing list
> [hidden email]
>
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
> No virus found in this incoming message.
> Checked by AVG - http://www.avg.com 
> Version: 8.0.173 / Virus Database: 270.7.5/1708 - Release
> Date: 4/10/2008 11:35 a.m.
>
>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Reply | Threaded
Open this post in threaded view
|

Re: new error with latest cvs stdlib.h

Keith Marshall
On Sunday 05 October 2008 08:10:35 Danny Smith wrote:
> Change "inline* to "__inline__" at stdlib.h:317
>
> "inline" is not a keyword in c89 (c89 is enforced by --ansi switch
> ).   Incidentally, you get the same error message if you run  "make
> test_headers" on CVS source.
> And even more surprisingly -- this has been broken since 5 May 2098
> :(

Remarkable indeed!  Perhaps some future maintainer will address it,
when it breaks in ninety years time :-)

Seriously though, thanks for the tip-off Danny.  Running the test
suite should be mandatory, after any change; however, the test suite
should be invoked as `make check', not by an arbitrary, undocumented
and unusual name, which can only be ascertained by scratching around
in the bowels of Makefile.in -- I did `make check', to be told there
was no rule to do so; therefore, I assumed, incorrectly, that there
was no test suite provided.

Not so remarkable, perhaps, that it has actually been broken since
5-May-2008, but the breakage hasn't been detected until now, because
in the absence of an obvious test suite, CVS may not be exposed to
the same extensive population of testers, as will be a release, and
the recent mingwrt-3.15 is the first release to have included the
change which precipitates this failure, (although, on this occasion,
it does appear to have been reported against CVS, rather than the
actual release).

Regards,
Keith.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users
Reply | Threaded
Open this post in threaded view
|

Re: new error with latest cvs stdlib.h

Keith Marshall
In reply to this post by Danny Smith
On Sunday 05 October 2008 08:10:35 Danny Smith wrote:
> > How to fix it?
>
> Change "inline* to "__inline__" at stdlib.h:317

Since no one else appears to be taking an interest in fixing this, and
no formal bug report has been filed, I've taken the liberty of making
the appropriate correction in CVS.

I've also modified the Makefile, so that the test suite may now be
invoked conventionally, by `make check' instead of the unconventional
`make test_headers', as I noted in my earlier reply.

Regards,
Keith.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users