Skip Menu |

This queue is for tickets about the Cairo CPAN distribution.

Report information
The Basics
Id: 72576
Status: resolved
Worked: 20 min
Priority: 0/
Queue: Cairo

People
Owner: XAOC [...] cpan.org
Requestors: sasch-a-mueller [...] versanet.de
Cc:
AdminCc:

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



Subject: CAIRO_FONT_TYPE_QUARTZ undeclared (first use in this function)
Date: Mon, 21 Nov 2011 14:01:37 +0100 (CET)
To: bug-Cairo [...] rt.cpan.org
From: "sasch-a-mueller [...] versanet.de" <sasch-a-mueller [...] versanet.de>
Hello all,   seems there is a problem compiling Cairo under CentOS 5.5(final) through cpanm as well with compiling it by hand. Attached is the build-log from the system and installed perl modules. module-Version: Cairo-1.081 perl-version: This is perl, v5.8.8 built for i386-linux-thread-multi host: Linux ***** 2.6.18-238.12.1.el5PAE #1 SMP Tue May 31 14:02:45 EDT 2011 i686 i686 i386 GNU/Linux OS: CentOS release 5.6 (Final)   Am I missing dependent modules? Also I installed the three listed in the README.  

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Hi, Can you verify that you have all of the Cairo C library packages installed? You need both the regular package as well as the -devel package. You should be able to do both 'rpm -qa | grep cairo-devel' as well as be able to run the following command; PKG_CONFIG_PATH=/usr/lib/pkgconfig pkg-config --modversion cairo Note that 'pkg-config' may come from a different package as well. I don't have cpanm installed on my machine, so I can't follow the same steps you did in the log you pasted. If you are still having problems, could you paste an install by hand (perl Makefile.PL/make/make install) instead?
Subject: [rt.cpan.org #72576]
Date: Wed, 23 Nov 2011 14:00:36 +0100 (CET)
To: "bug-Cairo [...] rt.cpan.org" <bug-Cairo [...] rt.cpan.org>
From: "sasch-a-mueller [...] versanet.de" <sasch-a-mueller [...] versanet.de>
  Hi attached is a screen session with the checks for the devel rpm, reinstalling it with cpnam and also downloading and make'ing per hand.    
Download screenlog.0
application/octet-stream 8.4k

Message body not shown because it is not plain text.

On Wed Nov 23 08:00:57 2011, sasch-a-mueller@versanet.de wrote: Show quoted text
>   > Hi attached is a screen session with the checks for the devel rpm, > reinstalling > it with cpnam and also downloading and make'ing per hand.
I see the problem. Give me a few days to come up with a patch.
Subject: Re: [rt.cpan.org #72576] CAIRO_FONT_TYPE_QUARTZ undeclared (first use in this function)
Date: Sun, 27 Nov 2011 12:27:29 +0100
To: bug-Cairo [...] rt.cpan.org
From: Torsten Schoenfeld <kaffeetisch [...] gmx.de>
On 21.11.2011 14:02, sasch-a-mueller@versanet.de via RT wrote: Show quoted text
> CAIRO_FONT_TYPE_QUARTZ undeclared (first use in this function)
Looks like we are missing a version guard there. The attached patch should fix this.

Message body is not shown because sender requested not to inline it.

RT-Send-CC: kaffeetisch [...] gmx.de
On Sun Nov 27 06:27:41 2011, TSCH wrote: Show quoted text
> On 21.11.2011 14:02, sasch-a-mueller@versanet.de via RT wrote:
> > CAIRO_FONT_TYPE_QUARTZ undeclared (first use in this function)
> > Looks like we are missing a version guard there. The attached patch > should fix this.
There's similar errors now in CairoSurface.xs with patch 0001 applied. See the attached 'script' run, created on a Centos 5.5 i386 VM. I didn't see any problems with versions this time.
Subject: cairo_build_error.txt
Script started on Sat 26 Nov 2011 06:51:05 PM PST [root@localhost Cairo-1.081]# perl Makefile.PL Compiling Cairo with FreeType support WARNING: META_MERGE is not a known parameter. Checking if your kit is complete... Looks good 'META_MERGE' is not a known MakeMaker parameter name. Writing Makefile for Cairo [root@localhost Cairo-1.081]# time make cp lib/Cairo.pm blib/lib/Cairo.pm cp build/IFiles.pm blib/arch/Cairo/Install/Files.pm cp cairo-perl.typemap blib/arch/Cairo/Install/cairo-perl.typemap cp doctypes blib/arch/Cairo/Install/doctypes cp cairo-perl.h blib/arch/Cairo/Install/cairo-perl.h cp build/cairo-perl-auto.typemap blib/arch/Cairo/Install/cairo-perl-auto.typemap cp build/cairo-perl-auto.h blib/arch/Cairo/Install/cairo-perl-auto.h /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap build/cairo-perl-auto.typemap -typemap cairo-perl.typemap Cairo.xs > Cairo.xsc && mv Cairo.xsc Cairo.c gcc -c -I. -Ibuild -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"1.081\" -DXS_VERSION=\"1.081\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" Cairo.c /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap build/cairo-perl-auto.typemap -typemap cairo-perl.typemap CairoFont.xs > CairoFont.xsc && mv CairoFont.xsc CairoFont.c gcc -c -I. -Ibuild -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"1.081\" -DXS_VERSION=\"1.081\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" CairoFont.c /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap build/cairo-perl-auto.typemap -typemap cairo-perl.typemap CairoMatrix.xs > CairoMatrix.xsc && mv CairoMatrix.xsc CairoMatrix.c gcc -c -I. -Ibuild -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"1.081\" -DXS_VERSION=\"1.081\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" CairoMatrix.c /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap build/cairo-perl-auto.typemap -typemap cairo-perl.typemap CairoPath.xs > CairoPath.xsc && mv CairoPath.xsc CairoPath.c gcc -c -I. -Ibuild -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"1.081\" -DXS_VERSION=\"1.081\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" CairoPath.c /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap build/cairo-perl-auto.typemap -typemap cairo-perl.typemap CairoPattern.xs > CairoPattern.xsc && mv CairoPattern.xsc CairoPattern.c gcc -c -I. -Ibuild -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"1.081\" -DXS_VERSION=\"1.081\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" CairoPattern.c /usr/bin/perl /usr/lib/perl5/5.8.8/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.8.8/ExtUtils/typemap -typemap build/cairo-perl-auto.typemap -typemap cairo-perl.typemap CairoSurface.xs > CairoSurface.xsc && mv CairoSurface.xsc CairoSurface.c gcc -c -I. -Ibuild -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DVERSION=\"1.081\" -DXS_VERSION=\"1.081\" -fPIC "-I/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE" CairoSurface.c CairoSurface.xs: In function ‘get_package’: CairoSurface.xs:101: error: ‘CAIRO_SURFACE_TYPE_OS2’ undeclared (first use in this function) CairoSurface.xs:101: error: (Each undeclared identifier is reported only once CairoSurface.xs:101: error: for each function it appears in.) CairoSurface.xs:102: error: ‘CAIRO_SURFACE_TYPE_WIN32_PRINTING’ undeclared (first use in this function) CairoSurface.xs:103: error: ‘CAIRO_SURFACE_TYPE_QUARTZ_IMAGE’ undeclared (first use in this function) make: *** [CairoSurface.o] Error 1 real 0m4.502s user 0m3.827s sys 0m0.587s
Subject: [rt.cpan.org #72576]
Date: Mon, 28 Nov 2011 13:58:02 +0100 (CET)
To: Bugs in Cairo via RT <bug-Cairo [...] rt.cpan.org>
From: "sasch-a-mueller [...] versanet.de" <sasch-a-mueller [...] versanet.de>
  One can come over this error with just commenting the lines out. But after those the file cairo-perl-enums.c throws another error. I just went through the code and found those lines in total (Also including the one fixed the first patch).     CairoFont.xs:31: error: ‘CAIRO_FONT_TYPE_QUARTZ’ undeclared (first use in this function) CairoFont.xs:32: error: ‘CAIRO_FONT_TYPE_USER’ undeclared (first use in this function)   CairoSurface.xs:101: error: ‘CAIRO_SURFACE_TYPE_OS2’ undeclared (first use in this function) CairoSurface.xs:102: error: ‘CAIRO_SURFACE_TYPE_WIN32_PRINTING’ undeclared (first use in this function) CairoSurface.xs:103: error: ‘CAIRO_SURFACE_TYPE_QUARTZ_IMAGE’ undeclared (first use in this function)   cairo-perl-enums.c:757: error: ‘CAIRO_SURFACE_TYPE_OS2’ undeclared (first use in this function) cairo-perl-enums.c:759: error: ‘CAIRO_SURFACE_TYPE_WIN32_PRINTING’ undeclared (first use in this function) cairo-perl-enums.c:761: error: ‘CAIRO_SURFACE_TYPE_QUARTZ_IMAGE’ undeclared (first use in this function) cairo-perl-enums.c:793: error: ‘CAIRO_SURFACE_TYPE_OS2’ undeclared (first use in this function) cairo-perl-enums.c:795: error: ‘CAIRO_SURFACE_TYPE_WIN32_PRINTING’ undeclared (first use in this function) cairo-perl-enums.c:797: error: ‘CAIRO_SURFACE_TYPE_QUARTZ_IMAGE’ undeclared (first use in this function)
Subject: Re: [rt.cpan.org #72576]
Date: Sun, 11 Dec 2011 21:24:31 +0100
To: bug-Cairo [...] rt.cpan.org
From: Torsten Schoenfeld <kaffeetisch [...] gmx.de>
On 28.11.2011 13:58, sasch-a-mueller@versanet.de via RT wrote: Show quoted text
> One can come over this error with just commenting the lines out. But after those > the file cairo-perl-enums.c throws another error. I just went through the code > and found those lines in total (Also including the one fixed the first patch).
Alright, how about this then?

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #72576]
Date: Fri, 23 Dec 2011 10:34:45 +0100 (CET)
To: bug-Cairo [...] rt.cpan.org
From: "sasch-a-mueller [...] versanet.de" <sasch-a-mueller [...] versanet.de>
Finnaly had some time. The patch applies fine as does the compilation of Cairo afterwards.   Thanks for your help. You can close the bug (I dunno how).