Skip Menu |

This queue is for tickets about the tk-zinc CPAN distribution.

Report information
The Basics
Id: 21409
Status: open
Priority: 0/
Queue: tk-zinc

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.303
Fixed in: (no value)



Subject: FreeBSD compilation problem
Including error.h in FreeBSD 6.x is an error. In former FreeBSD versions it was just a warning. The attached patch changes the malloc.h include to stdlib.h. I suspect that other BSDs should also be covered (APPLE already is). And now I have a modern computer with OpenGL enabled I can see the tk-zinc port of my tetris implementation in full beauty :-) Regards, Slaven
Subject: tk-zinc-malloch.patch
# # # To apply this patch: # STEP 1: Chdir to the source directory. # STEP 2: Run the 'applypatch' program with this patch file as input. # # If you do not have 'applypatch', it is part of the 'makepatch' package # that you can fetch from the Comprehensive Perl Archive Network: # http://www.perl.com/CPAN/authors/Johan_Vromans/makepatch-x.y.tar.gz # In the above URL, 'x' should be 2 or higher. # # To apply this patch without the use of 'applypatch': # STEP 1: Chdir to the source directory. # STEP 2: Run the 'patch' program with this file as input. # #### End of Preamble #### #### Patch data follows #### diff -up 'build/tk-zinc-3.303/OverlapMan.c' 'new.build/tk-zinc-3.303/OverlapMan.c' Index: ./OverlapMan.c Prereq: 1.26 --- ./OverlapMan.c Sat Apr 1 18:09:43 2006 +++ ./OverlapMan.c Sat Sep 9 21:44:38 2006 @@ -29,7 +29,7 @@ static const char compile_id[]="$Compile #include "OverlapMan.h" -#if defined(__APPLE__) +#if defined(__APPLE__) || __FreeBSD__ > 3 #include <stdlib.h> #else #include "malloc.h" #### End of Patch data #### #### ApplyPatch data follows #### # Data version : 1.0 # Date generated : Sat Sep 9 22:30:58 2006 # Generated by : makepatch 2.00_12* # Recurse directories : Yes # Excluded files : (\A|/).*\~\Z # (\A|/).*\.a\Z # (\A|/).*\.bak\Z # (\A|/).*\.BAK\Z # (\A|/).*\.elc\Z # (\A|/).*\.exe\Z # (\A|/).*\.gz\Z # (\A|/).*\.ln\Z # (\A|/).*\.o\Z # (\A|/).*\.obj\Z # (\A|/).*\.olb\Z # (\A|/).*\.old\Z # (\A|/).*\.orig\Z # (\A|/).*\.rej\Z # (\A|/).*\.so\Z # (\A|/).*\.Z\Z # (\A|/)\.del\-.*\Z # (\A|/)\.make\.state\Z # (\A|/)\.nse_depinfo\Z # (\A|/)core\Z # (\A|/)tags\Z # (\A|/)TAGS\Z # p 'OverlapMan.c' 29986 1157831078 0100640 #### End of ApplyPatch data #### #### End of Patch kit [created: Sat Sep 9 22:30:58 2006] #### #### Patch checksum: 48 1667 35158 #### #### Checksum: 66 2291 21160 ####
CC: Patrick Lecoanet <lecoanet [...] cena.fr>, Marcellin Buisson <buisson [...] cena.fr>
Subject: Re: [rt.cpan.org #21409] FreeBSD compilation problem
Date: Mon, 11 Sep 2006 09:20:19 +0200
To: bug-tk-zinc [...] rt.cpan.org
From: Christophe MERTZ <mertz [...] intuilab.com>
Hello Slaven, nice to hear you succeeded in using Tk::Zinc with openGL on BSD. I forward your bug report and patch to Patrick Lecoanet, as I think he does not recevie this mail directly (not sure?!) BTW, I also forward it to Marcellin Buisson who ported you tetris (but I think he is no more active on tkzincas he moved to another job to airbus) Thx, christophe Le samedi 09 septembre 2006 à 16:34 -0400, Slaven_Rezic via RT a écrit : Show quoted text
> Sat Sep 09 16:34:22 2006: Request 21409 was acted upon. > Transaction: Ticket created by SREZIC > Queue: tk-zinc > Subject: FreeBSD compilation problem > Broken in: 3.303 > Severity: Normal > Owner: Nobody > Requestors: SREZIC@cpan.org > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=21409 > > > > Including error.h in FreeBSD 6.x is an error. In former FreeBSD versions > it was just a warning. The attached patch changes the malloc.h include > to stdlib.h. I suspect that other BSDs should also be covered (APPLE > already is). > > And now I have a modern computer with OpenGL enabled I can see the > tk-zinc port of my tetris implementation in full beauty :-) > > Regards, > Slaven >
Subject: Re: [rt.cpan.org #21409] FreeBSD compilation problem
Date: Mon, 11 Sep 2006 16:59:57 +0200
To: bug-tk-zinc [...] rt.cpan.org
From: lecoanet <patrick.lecoanet [...] cena.fr>
Show quoted text
>>Sat Sep 09 16:34:22 2006: Request 21409 was acted upon. >>Transaction: Ticket created by SREZIC >> Queue: tk-zinc >> Subject: FreeBSD compilation problem >> Broken in: 3.303 >> Severity: Normal >> Owner: Nobody >> Requestors: SREZIC@cpan.org >> Status: new >> Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=21409 > >> >> >>Including error.h in FreeBSD 6.x is an error. In former FreeBSD versions >>it was just a warning. The attached patch changes the malloc.h include >>to stdlib.h. I suspect that other BSDs should also be covered (APPLE >>already is). >> >>And now I have a modern computer with OpenGL enabled I can see the >>tk-zinc port of my tetris implementation in full beauty :-) >> >>
Thanks for the bug report, it has been integrated for the next release. Have fun Patrick