[gambit-list] gambit-c 4.6.0, cairo and valgrind.

Vladimir Konrad v.konrad at lse.ac.uk
Thu Mar 25 05:02:34 EDT 2010


Hello Marco,

> New version of cairo bindings is on dumping grounds.

I am testing the Cairo-r3, and getting:

*** WARNING -- Could not find C function: "____20_cairo_2e_o1"
*** ERROR IN | test-cairo-xor| -- /afs/cats.lse.ac.uk/users/vladimir/programming/test/scheme/gambit-scheme/cairo.o1: undefined symbol: cairo_destroy_rectangle_list

For the above, the cairo library binding was build as usual and loaded with "load".

A similar thing happens if I compile like this a different application (should be on one line):
gsc-gambit -exe -cc-options "`pkg-config --cflags cairo`" -ld-options "`pkg-config --libs cairo`"
	~/tmp/Cairo-r3/src/cairo.scm lib/sort.scm ~/lib/slib/gambit.init xor-images.scm


/home/vladimir/programming/lazane/xor-images_.c:
../../tmp/Cairo-r3/src/cairo.o: In function `_cairo_free_rectangle_list':
cairo.c:(.text+0x1980c): undefined reference to `cairo_destroy_rectangle_list'
collect2: ld returned 1 exit status
*** ERROR IN ##main -- C link failed while linking "/home/vladimir/tmp/Cairo-r3/src/cairo.o" "/home/vladimir/programming/lazane/lib/sort.o" "/home/vladimir/lib/slib/gambit.o"
"/home/vladimir/programming/lazane/xor-images.o" "/home/vladimir/programming/lazane/xor-images_.o"

Both of the above work with the r2 bindings. The system used is debian lenny with gcc 4.3.2 and the gambit-c 4.6.0 .

About the memory leak - I will test again. ;-) But maybe beginners should not post tests ;-)

Kind regards,

Vladimir

------
> because it reverses the logical flow of conversation + it is hard to follow.
>> why not?
>>> do not put a reply at the top of the message, please...

Please access the attached hyperlink for an important electronic communications disclaimer: http://www.lse.ac.uk/collections/planningAndCorporatePolicy/legalandComplianceTeam/legal/disclaimer.htm



More information about the Gambit-list mailing list