After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 316719 - librsvg 2.12.x breaks things
librsvg 2.12.x breaks things
Status: RESOLVED DUPLICATE of bug 314400
Product: GIMP
Classification: Other
Component: Plugins
git master
Other Linux
: Normal major
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-09-19 18:16 UTC by Fryderyk Dziarmagowski
Modified: 2005-09-21 17:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Fryderyk Dziarmagowski 2005-09-19 18:16:40 UTC
Distribution/Version: PLD Linux Distro

breakage introduced with librsvg 2.12.x:

if i686-pld-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../.. -DXTHREADS
-D_REENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -I/usr/include  -DGIMP_DISABLE_DEPRECATED
-DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED
-DGTK_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGDK_MULTIHEAD_SAFE
-DGTK_MULTIHEAD_SAFE -I/usr/include/librsvg-2 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0   -O2 -march=i686
-fomit-frame-pointer -pipe  -Wall -MT svg-svg.o -MD -MP -MF ".deps/svg-svg.Tpo"
-c -o svg-svg.o `test -f 'svg.c' || echo './'`svg.c; \
then mv -f ".deps/svg-svg.Tpo" ".deps/svg-svg.Po"; else rm -f
".deps/svg-svg.Tpo"; exit 1; fi
svg.c: In function `load_rsvg_pixbuf':
svg.c:442: error: too many arguments to function `rsvg_handle_set_dpi'
svg.c: In function `load_rsvg_size':
svg.c:544: error: too many arguments to function `rsvg_handle_set_dpi'
make[3]: *** [svg-svg.o] Błąd 1
make[3]: Opuszczenie katalogu
`/home/users/fritz/rpm/BUILD/gimp-2.3.4/plug-ins/common'
Comment 1 Sven Neumann 2005-09-19 19:36:36 UTC

*** This bug has been marked as a duplicate of 314400 ***
Comment 2 Fryderyk Dziarmagowski 2005-09-19 20:08:43 UTC
according to #314400 this bug is already fixed, but problem described above
happens with CVS HEAD version (fresh checkout).
Comment 3 Sven Neumann 2005-09-19 23:42:37 UTC
Why do you report this problem against gimp in the first place?

Anyway, please check your installation and have a look at the headers installed
by librsvg. What's the signature of the offending function? What's the version
number in libgrsvg-features.h?
Comment 4 Fryderyk Dziarmagowski 2005-09-20 13:45:05 UTC
> Why do you report this problem against gimp in the first place?

sorry about that. next time i will report gimp build problems to kernel bugzilla :-P

> Anyway, please check your installation and have a look at the headers installed
> by librsvg. What's the signature of the offending function? What's the version
> number in libgrsvg-features.h?

librsvg-features.h:
#define LIBRSVG_MAJOR_VERSION (2)                                              
          
#define LIBRSVG_MINOR_VERSION (12)                                             
          
#define LIBRSVG_MICRO_VERSION (0)                                              
          
#define LIBRSVG_VERSION ""

rsvg.h:
#ifndef RSVG_DISABLE_DEPRECATED                                                
          
void        rsvg_set_default_dpi          (double dpi);                        
          
void        rsvg_handle_set_dpi           (RsvgHandle * handle, double dpi);   
          
#endif                                                                         
      

headers are installed in /usr/include/librsvg-2/librsvg
Comment 5 Sven Neumann 2005-09-20 16:32:12 UTC
librsvg changing it's API is still an librsvg bug and should first be reported
there. I am somewhat pissed at this point because not only do the librsvg people
change their APIs back and forth, they are also obviously not capable of giving
us the information we need in order to work around these changes. I have
explicitely asked Dom to double-check the change before committing it to CVS and
he has assured us that checking for (LIBRSVG_MAJOR_VERSION == 2 &&
LIBRSVG_MINOR_VERSION >= 11) would be the right thing to do.
Comment 6 Fryderyk Dziarmagowski 2005-09-21 07:14:07 UTC
i can imagine librsvg dudes reaction on such bug report... propably WON'T FIX.
same thing with samba. should i report to samba bugzilla: "hey dudes your funny
lib breaks gnome-vfs!, revert your changes!"?

at least soname is same ;)

i will report this breakage to librsvg bugzilla
Comment 7 Sven Neumann 2005-09-21 17:17:26 UTC
Please don't. The problem you had with librsvg 2.12 is due to a broken fix in
GIMP CVS for bug #314400. This has been fixed in the meantime.