pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cairo build error (any2ppm.c:(.text+0x158): undefined reference to `cairo_image_surface_create')

On Fri, Oct 10, 2014 at 01:43:42PM +0200, Thomas Orgis wrote:
> I'm trying to build 2014Q3 (also Q2, not difference) on an SLES 11.3
> system and I am only partially surprised that my prepared script to
> build a certain set of packages doesn't go through. It stops at trying
> to build cairo (which belongs to a group of packages, regardless of
> platform, that are notorious for build issues). Does that ring a bell
> somewhere?
> --- any2ppm ---
>   CCLD     any2ppm
> any2ppm-any2ppm.o: In function `_create_image':
> any2ppm.c:(.text+0x158): undefined reference to `cairo_image_surface_create'
> any2ppm-any2ppm.o: In function `write_ppm':
> any2ppm.c:(.text+0x289): undefined reference to `cairo_image_surface_get_data'
> any2ppm.c:(.text+0x294): undefined reference to `cairo_image_surface_get_height'
> any2ppm.c:(.text+0x2a0): undefined reference to `cairo_image_surface_get_width'
> any2ppm.c:(.text+0x2ab): undefined reference to `cairo_image_surface_get_stride'
> any2ppm.c:(.text+0x2b5): undefined reference to `cairo_image_surface_get_format'
> any2ppm-any2ppm.o: In function `cs_convert':
> any2ppm.c:(.text+0x59d): undefined reference to `cairo_surface_destroy'
> any2ppm.c:(.text+0x5a4): undefined reference to `cairo_status_to_string'
> any2ppm.c:(.text+0x5c6): undefined reference to `cairo_surface_destroy'
> any2ppm.c:(.text+0x5dc): undefined reference to `cairo_surface_status'
> any2ppm.c:(.text+0x607): undefined reference to `cairo_surface_destroy'
> any2ppm-any2ppm.o: In function `_create_image':
> any2ppm.c:(.text+0x164): undefined reference to `cairo_surface_reference'
> collect2: ld returned 1 exit status
> *** [any2ppm] Error code 1
> bmake: stopped in /dev/shm/sw-work/work-with-system-gcc-4.3.4/pkgsrc-2014Q3/graphics/cairo/work/cairo-1.12.16/test
> This is cairo in itself trying to link to cairo for the test suite.
> Needless to say, a plain configure && make outside pkgsrc works on this
> system.
> Any hints? Meanwhile, I'll try to get more skill in debugging builds
> inside pkgsrc ... 

Putting 'V=1' or 'VERBOSE=1' on the make command line usually gives
more information than just "CCLD any2ppm"; then we can see if it at
least tries to link against the library containing the symbols.

Or perhaps something went wrong earlier and they didn't end up in the
library at all.

Or there is a problem with visibility and the symbols are hidden.

Lots of possibilities; in other words, we need more details :)

Home | Main Index | Thread Index | Old Index