Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
With Gnome-3.0 Overlay: Poppler-0.16.7 fails to build[solve]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
ChrisJumper
Advocate
Advocate


Joined: 12 Mar 2005
Posts: 2231
Location: Germany

PostPosted: Mon Aug 22, 2011 4:10 pm    Post subject: With Gnome-3.0 Overlay: Poppler-0.16.7 fails to build[solve] Reply with quote

Hello, today i want to update my System with a Gnome 3.0 Installation, but it stumble during updating poppler!

Code:
[ 72%] Building CXX object qt4/src/CMakeFiles/poppler-qt4.dir/poppler-document.cc.o
In file included from /usr/include/pango-1.0/pango/pango-gravity.h:98:0,
                 from /usr/include/pango-1.0/pango/pango-types.h:91,
                 from /usr/include/pango-1.0/pango/pango-font.h:26,
                 from /usr/include/pango-1.0/pango/pango-attributes.h:25,
                 from /usr/include/pango-1.0/pango/pango.h:25,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-page.h:27,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler.h:201,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-action.cc:19:
/usr/include/pango-1.0/pango/pango-script.h:132:12: Fehler: »G_CONST_RETURN« wurde nicht deklariert
/usr/include/pango-1.0/pango/pango-script.h:132:34: Fehler: zwei oder mehr Datentypen in Deklaration von »start«
/usr/include/pango-1.0/pango/pango-script.h:132:39: Fehler: expected »)« before »,« token
/usr/include/pango-1.0/pango/pango-script.h:133:27: Fehler: expected initializer before »char«
In file included from /usr/include/pango-1.0/pango/pango-script.h:138:0,
                 from /usr/include/pango-1.0/pango/pango-gravity.h:98,
                 from /usr/include/pango-1.0/pango/pango-types.h:91,
                 from /usr/include/pango-1.0/pango/pango-font.h:26,
                 from /usr/include/pango-1.0/pango/pango-attributes.h:25,
                 from /usr/include/pango-1.0/pango/pango.h:25,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-page.h:27,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler.h:201,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-action.cc:19:
/usr/include/pango-1.0/pango/pango-language.h:37:1: Fehler: »G_CONST_RETURN« bezeichnet keinen Typ
/usr/include/pango-1.0/pango/pango-language.h:41:1: Fehler: »G_CONST_RETURN« bezeichnet keinen Typ
In file included from /usr/include/pango-1.0/pango/pango-script.h:138:0,
                 from /usr/include/pango-1.0/pango/pango-gravity.h:98,
                 from /usr/include/pango-1.0/pango/pango-types.h:91,
                 from /usr/include/pango-1.0/pango/pango-font.h:26,
                 from /usr/include/pango-1.0/pango/pango-attributes.h:25,
                 from /usr/include/pango-1.0/pango/pango.h:25,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-page.h:27,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler.h:201,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-action.cc:19:
/usr/include/pango-1.0/pango/pango-language.h:51:1: Fehler: »G_CONST_RETURN« bezeichnet keinen Typ
In file included from /usr/include/pango-1.0/pango/pango-attributes.h:25:0,
                 from /usr/include/pango-1.0/pango/pango.h:25,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-page.h:27,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler.h:201,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-action.cc:19:
/usr/include/pango-1.0/pango/pango-font.h:120:1: Fehler: »G_CONST_RETURN« bezeichnet keinen Typ
/usr/include/pango-1.0/pango/pango-font.h:215:1: Fehler: »G_CONST_RETURN« bezeichnet keinen Typ
/usr/include/pango-1.0/pango/pango-font.h:264:1: Fehler: »G_CONST_RETURN« bezeichnet keinen Typ
In file included from /usr/include/pango-1.0/pango/pango.h:25:0,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-page.h:27,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler.h:201,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-action.cc:19:
/usr/include/pango-1.0/pango/pango-attributes.h:183:1: Fehler: »G_CONST_RETURN« bezeichnet keinen Typ
In file included from /usr/include/pango-1.0/pango/pango.h:28:0,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-page.h:27,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler.h:201,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-action.cc:19:
/usr/include/pango-1.0/pango/pango-context.h:89:1: Fehler: »G_CONST_RETURN« bezeichnet keinen Typ
In file included from /usr/include/pango-1.0/pango/pango.h:40:0,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-page.h:27,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler.h:201,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-action.cc:19:
/usr/include/pango-1.0/pango/pango-layout.h:119:1: Fehler: »G_CONST_RETURN« bezeichnet keinen Typ
In file included from /usr/include/pango-1.0/pango/pango.h:42:0,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-page.h:27,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler.h:201,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-action.cc:19:
/usr/include/pango-1.0/pango/pango-renderer.h:252:1: Fehler: »G_CONST_RETURN« bezeichnet keinen Typ
In file included from /usr/include/pango-1.0/pango/pango.h:46:0,
                 from /usr/include/gtk-2.0/gdk/gdktypes.h:37,
                 from /usr/include/gtk-2.0/gdk/gdkscreen.h:32,
                 from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:31,
                 from /usr/include/gtk-2.0/gdk/gdk.h:32,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-page.h:27,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler.h:201,
                 from /var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/glib/poppler-action.cc:19:
/usr/include/pango-1.0/pango/pango-utils.h:134:1: Fehler: »G_CONST_RETURN« bezeichnet keinen Typ
/usr/include/pango-1.0/pango/pango-utils.h:137:1: Fehler: »G_CONST_RETURN« bezeichnet keinen Typ
[ 72%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir/poppler-global.cpp.o
make[2]: *** [glib/CMakeFiles/poppler-glib.dir/poppler-action.cc.o] Fehler 1
make[1]: *** [glib/CMakeFiles/poppler-glib.dir/all] Fehler 2
make[1]: *** Warte auf noch nicht beendete Prozesse...
[ 73%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir/poppler-image.cpp.o
[ 73%] Building CXX object cpp/CMakeFiles/poppler-cpp.dir/poppler-page.cpp.o
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/qt4/src/poppler-annotation.cc: In Elementfunktion »virtual void Poppler::LinkAnnotation::store(QDomNode&, QDomDocument&) const«:
/var/tmp/portage/app-text/poppler-0.16.7/work/poppler-0.16.7/qt4/src/poppler-annotation.cc:1541:15: Warnung: enumeration value »JavaScript« not handled in switch



Useflags:

Code:
# emerge -pv app-text/poppler

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] app-text/poppler-0.16.7  USE="cairo cxx introspection jpeg lcms png qt4 utils xpdf-headers -cjk -curl -debug -doc -exceptions -jpeg2k" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB


Code:
x11-libs/pango
     Available versions:  1.28.3-r1 1.28.4 {X debug doc +introspection test}
     Installed versions:  1.28.4(16:29:01 22.08.2011)(X introspection -debug -doc -test)
     Homepage:            http://www.pango.org/
     Description:         Internationalized text layout and rendering library


A simple rebuild of x11-libs/pango did not solve the issue. And i also updated my gtk packages. I am thankful for any suggestions.

Update: I don't know when or how i run into the trouble, since i could compile pango 1.28.4 fine. And i could open pdf-files with this pango Version.
It seems that poppler will not compile cause of an Issue in the pango library.

There(OpenSuSE Factory for x86_64: libpango) I got a hint in there changelogs.

Quote:
* Fri Jun 17 2011 vuntz@opensuse.org
- Update to version 1.29.3:
+ Minor fix in 1.29.1 tarball
- Changes from version 1.29.1:
+ Lots of introspection markup added
+ Misc fixes
- Drop pango-no-G_CONST_RETURN.patch: fixed upstream.


Alexandre Rostovtsev wrote:
The issue is that Gentoo is shipping fundamental libraries (gtk+, pango, etc.)
with G_CONST_RETURN in public headers, and that causes problems for people who
are using glib-2.29.x and building a package that for whatever reason added
-DG_DISABLE_DEPRECATED to its CFLAGS. And although it may be tempting to ignore
problems caused by bleeding-edge glib versions, these issues will crop up again
and again in September when glib-2.30 is officially released and people start
to upgrade. IMHO, we should just fix fundamental libraries in the tree to be
glib-2.29 compatible.
Source: bugs.gentoo.org: Bug 379897

Alexandre Rostovtsev wrote:
backport upstream gdk G_CONST_RETURN removal patch to gtk+-3.0.12

The G_CONST_RETURN issue was fixed in gtk+-2.24.5 and in the gtk+-3.1.x
releases, but remains in the 3.0.x series. Here is a backport of first
G_CONST_RETURN removal patch to gtk+-3.0.12. The second patch will follow
below.

With the two patches applied, gtk+-3.0.12 builds fine under glib-2.29.16 and
does not have G_CONST_RETURN macro in public headers.
Source: bugs.gentoo.org: Bug 379897

Seems that pango 1.28.4 need a modification (?) of this patch.

But since i just apply patches manual to wine sources, i don't know which way is the best to apply this patch through portage.


Last edited by ChrisJumper on Wed Aug 24, 2011 9:48 am; edited 1 time in total
Back to top
View user's profile Send private message
ChrisJumper
Advocate
Advocate


Joined: 12 Mar 2005
Posts: 2231
Location: Germany

PostPosted: Wed Aug 24, 2011 9:46 am    Post subject: Reply with quote

So there is my Modification of this Patch. I hope i have not miss some important parts. But hey it compiles and it worked. :)

Thank you Tomas Bzatek!
Back to top
View user's profile Send private message
The_ObliVion
n00b
n00b


Joined: 27 Jun 2003
Posts: 19

PostPosted: Wed Oct 05, 2011 9:00 pm    Post subject: Reply with quote

Trying it on right now. Thank you for posting.

Martin
_________________
There ain't no dark side of the moon really; In fact it's all dark.
Back to top
View user's profile Send private message
ChrisJumper
Advocate
Advocate


Joined: 12 Mar 2005
Posts: 2231
Location: Germany

PostPosted: Wed Oct 05, 2011 11:39 pm    Post subject: Reply with quote

Or you could use the Version: 1.29.4 (x11-libs/pango-1.29.4)

I wrote my own handcrafted patch cause in the past when i posted this, there was no other Version in portage available.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum