! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Exo-1 export gi18n-lib.h header, and fail to compile applications that depend...
Status:
RESOLVED: INVALID

Comments

Description Matias De lellis 2012-01-19 15:52:45 CET
Exo-1 export gi18n-lib.h header, and fail to compile applications that depend on this for double definition.

Well. Now use exo-1 to add support to session restore on Pragha. Please.. Take this opportunity to ask for opinions.

Complete patch to see here: http://code.google.com/p/dissonance/source/detail?r=327

Wen compile with exo:
  CC     pragha-cdda.o
  CC     pragha-cmdline.o
  CC     pragha-current-playlist.o
  CC     pragha-db.o
In file included from pragha.h:60:0,
                 from cdda.c:19:
/usr/include/glib-2.0/glib/gi18n.h:28:0: error: se redefinió "_" [-Werror]
In file included from pragha.h:60:0,
                 from cmdline.c:19:
/usr/include/glib-2.0/glib/gi18n.h:28:0: error: se redefinió "_" [-Werror]/usr/include/glib-2.0/glib/gi18n-lib.h:32:0: nota: esta es la ubicación de la definición previa

/usr/include/glib-2.0/glib/gi18n.h:29:0: error: se redefinió "Q_" [-Werror]
/usr/include/glib-2.0/glib/gi18n-lib.h:32:0: nota: esta es la ubicación de la definición previa/usr/include/glib-2.0/glib/gi18n-lib.h:33:0: nota: esta es la ubicación de la definición previa

/usr/include/glib-2.0/glib/gi18n.h:31:0: error: se redefinió "C_" [-Werror]/usr/include/glib-2.0/glib/gi18n.h:29:0: error: se redefinió "Q_" [-Werror]

/usr/include/glib-2.0/glib/gi18n-lib.h:33:0: nota: esta es la ubicación de la definición previa/usr/include/glib-2.0/glib/gi18n-lib.h:35:0: nota: esta es la ubicación de la definición previa

/usr/include/glib-2.0/glib/gi18n.h:31:0: error: se redefinió "C_" [-Werror]
/usr/include/glib-2.0/glib/gi18n-lib.h:35:0: nota: esta es la ubicación de la definición previa

Etc.. etc.. etc..

Compile without exo-1 (./autogen.sh --disable-exo-1) work fine..

Exo 0.6.2-3 with Fedora 16

Regards.
Comment 1 Nick Schermer editbugs 2012-01-20 13:30:49 CET
For session management it is better to use XfceSMClient in libxfce4util (also a smaller dependency).

But the bug is on your side: you should use gi18n-lib.h if GETTEXT_PACKAGE is defined, else gi18n.h. See http://git.xfce.org/xfce/libxfce4util/tree/libxfce4util/xfce-i18n.h
Comment 2 Matias De lellis 2012-01-21 17:43:02 CET
Ohh.. Thanks.
I do not understand exactly why the change but works fine..

About XfceSMClient seem found in libxfce4ui that is a more larger dependence (At least considering that is not an application xfce!-)

Well. Thanks you very much.
Regards.
Comment 3 Nick Schermer editbugs 2012-01-21 18:47:12 CET
exo-1 depends on 4ui (the package), so it is in fact lighter ;-)

Bug #8362

Reported by:
Matias De lellis
Reported on: 2012-01-19
Last modified on: 2012-01-21

People

Assignee:
Nick Schermer
CC List:
1 user

Version

Attachments

Additional information