I'm running into compile errors when I'm adding a function to 

    undefined reference to 'gimp_image_detach_parasite'
    undefined reference to 'gimp_image_get_parasite_list'
    undefined reference to 'gimp_image_get_parasite'

Delving deeper into this, I'm finding two function:
  - gimp_image_parasite_list()
  - gimp_image_get_parasite_list()

According to a comment in libgimp/gimpimage.c, the version without the 
"get" in the name is deprecated and the one with the "get" should be 
used instead. The version without "get" is implemented here by calling 
the one with "get". However, in tools/pdbgen/pdb/image.pdb, the version 
with "get" is implemented by calling the one without "get". This seems a 
bit circular to me.

Something seems to be strange with the parasite functions... everything 
compiles fine when I get the source straight from git, but starts to 
break when I add functions to image.pdb.

So my question is: am I doing something wrong by adding functions to 
image.pdb, or is there actually something wrong with the parasite functions?

The changes I'm making to image.pdb are:
  - mark image_get_filename deprecated
  - mark image_set_filename deprecated
  - change description of image_get_uri
  - add image_set_uri
  - add image_get_imported_uri
  - add image_get_exported_uri

The error output when compiling:

make[4]: Entering directory 
   CC     script-fu.o
   CC     script-fu-console.o
   CC     script-fu-eval.o
   CC     script-fu-interface.o
   CC     script-fu-text-console.o
   CC     script-fu-script.o
   CC     script-fu-scripts.o
   CC     script-fu-server.o
   CC     scheme-wrapper.o
   CCLD   script-fu
/mnt/lincoln/d3/gimp/source/gimp/libgimp/.libs/libgimp-2.0.so: undefined 
reference to `gimp_image_detach_parasite'
/mnt/lincoln/d3/gimp/source/gimp/libgimp/.libs/libgimp-2.0.so: undefined 
reference to `gimp_image_get_parasite_list'
/mnt/lincoln/d3/gimp/source/gimp/libgimp/.libs/libgimp-2.0.so: undefined 
reference to `gimp_image_get_parasite'
collect2: ld returned 1 exit status
make[4]: *** [script-fu] Error 1
make[4]: Leaving directory 

Gimp-developer mailing list

Reply via email to