Compiling CVS 2.7.16 with g++ 3.3.4

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

Compiling CVS 2.7.16 with g++ 3.3.4

Andreas Scherer
Dear group,

in order to compile (i.e., "rpmbuild -ba lilypond.spec") the latest CVS
contents on my system (SuSE 9.2 with g++ 3.3.4; all required package updates
are present), I have to applyto file <lily/font-config-scheme.cc>  the small
patch attached to this mail.

I would be very pleased to see the cast applied directly in the original
source file, so that a clean build from the CVS sources would be possible
even with the slightly antique compiler.

Cheers

_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel

lilypond-2.7.16.patch (733 bytes) Download Attachment
attachment1 (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Compiling CVS 2.7.16 with g++ 3.3.4

Han-Wen Nienhuys
Andreas Scherer wrote:
> in order to compile (i.e., "rpmbuild -ba lilypond.spec") the latest CVS
> contents on my system (SuSE 9.2 with g++ 3.3.4; all required package updates
> are present), I have to applyto file <lily/font-config-scheme.cc>  the small
> patch attached to this mail.
>
> I would be very pleased to see the cast applied directly in the original
> source file, so that a clean build from the CVS sources would be possible
> even with the slightly antique compiler.

I don't understand this patch. Why doesn't str need a cast? What's the
difference between reinterpret_cast<const shar*> and (const char*)


>   printf ("family %s\n ", str);
>         if (FcPatternGetString (fs->fonts[j], "designsize", 0, &str) == FcResultMatch)
>   printf ("designsize %s\n ", str);
> !       printf ("%s\n", reinterpret_cast< const char* >( font ));
>         free (font);
>       }
>   }


--
  Han-Wen Nienhuys - [hidden email] - http://www.xs4all.nl/~hanwen


_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling CVS 2.7.16 with g++ 3.3.4

Andreas Scherer
Am Mittwoch, 9. November 2005 10:36 schrieb Han-Wen Nienhuys:
> I don't understand this patch. Why doesn't str need a cast? What's the
> difference between reinterpret_cast<const shar*> and (const char*)
After updating to OpenSUSE 10.0 with g++ 4.0.2 the problem is gone. The CVS
code compiles without the patch. Case closed.

Cheers


_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel
Reply | Threaded
Open this post in threaded view
|

Re: Compiling CVS 2.7.16 with g++ 3.3.4

Mats Bengtsson-6
In reply to this post by Han-Wen Nienhuys
I have exactly the same problem here with g++ (GCC) 3.2.2 and
as we have seen from the mailing list, there are more people who
have been hit by the same problem. The weird thing is that the cast
isn't needed two lines earlier where str is printed.

May I submit a patch?

   /Mats

Han-Wen Nienhuys wrote:

> Andreas Scherer wrote:
>
>> in order to compile (i.e., "rpmbuild -ba lilypond.spec") the latest
>> CVS contents on my system (SuSE 9.2 with g++ 3.3.4; all required
>> package updates are present), I have to applyto file
>> <lily/font-config-scheme.cc>  the small patch attached to this mail.
>>
>> I would be very pleased to see the cast applied directly in the
>> original source file, so that a clean build from the CVS sources
>> would be possible even with the slightly antique compiler.
>
>
> I don't understand this patch. Why doesn't str need a cast? What's the
> difference between reinterpret_cast<const shar*> and (const char*)
>
>
>>       printf ("family %s\n ", str);
>>         if (FcPatternGetString (fs->fonts[j], "designsize", 0, &str)
>> == FcResultMatch)
>>       printf ("designsize %s\n ", str);
>> !       printf ("%s\n", reinterpret_cast< const char* >( font ));
>>         free (font);
>>       }
>>   }
>
>
>

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463
        Fax:   (+46) 8 790 7260
        Email: [hidden email]
        WWW: http://www.s3.kth.se/~mabe
=============================================



_______________________________________________
lilypond-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/lilypond-devel