Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 407123 - app-editors/gvim: E25: GUI cannot be used: Not enabled at compile time
Summary: app-editors/gvim: E25: GUI cannot be used: Not enabled at compile time
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-06 15:33 UTC by Amadeusz Żołnowski (RETIRED)
Modified: 2012-03-07 08:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info =app-editors/gvim-7.3.462 (emerge-info-gvim,5.45 KB, text/plain)
2012-03-06 15:33 UTC, Amadeusz Żołnowski (RETIRED)
Details
emerge --info =app-editors/vim-7.3.462 (emerge-info-vim,5.43 KB, text/plain)
2012-03-06 15:34 UTC, Amadeusz Żołnowski (RETIRED)
Details
strace gvim (gvim.strace,16.02 KB, text/plain)
2012-03-06 15:57 UTC, Amadeusz Żołnowski (RETIRED)
Details
build.log (build.log,38.89 KB, text/plain)
2012-03-06 16:44 UTC, Amadeusz Żołnowski (RETIRED)
Details
vim73/src/auto/config.log (config.log,188.11 KB, text/plain)
2012-03-07 08:32 UTC, Amadeusz Żołnowski (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-06 15:33:15 UTC
After upgrade when trying to run gvim I get following error:

$ gvim
E25: GUI cannot be used: Not enabled at compile time

Reproducible: Always
Comment 1 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-06 15:33:56 UTC
Created attachment 304413 [details]
emerge --info =app-editors/gvim-7.3.462
Comment 2 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-06 15:34:23 UTC
Created attachment 304415 [details]
emerge --info =app-editors/vim-7.3.462
Comment 3 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-06 15:39:21 UTC
If it matters, I have tried recompile vim with +X and later gvim. Nothing changed to gvim - same error.
Comment 4 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-06 15:43:34 UTC
Hm, after downgrade still the same problem. That's really bad.
Comment 5 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-06 15:57:05 UTC
Created attachment 304421 [details]
strace gvim
Comment 6 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-06 16:44:34 UTC
Created attachment 304425 [details]
build.log
Comment 7 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-06 17:01:32 UTC
Downgraded even to stable, same problem.
Comment 8 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-06 19:09:48 UTC
Tried to unmerge vim and reemerge gvim. Still same problem.
Comment 9 Richard Grenville 2012-03-07 00:32:00 UTC
I saw this line in your build.log:

checking for GTK - version >= 2.2.0... no

So there's something wrong with your GTK+2 installation, not a problem of vim.

Vim's configure script firstly uses pkg-config to check whether you have GTK+2 installed ( pkg-config --exists gtk+-2.0 ), then it tries to compile some C code with AC_TRY_RUN. If either step failed you would get no GTK+ support. I guess you will be able to find out where the problem is by looking into ./src/auto/config.log.
Comment 10 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-07 08:32:19 UTC
Created attachment 304507 [details]
vim73/src/auto/config.log

Essential part:

configure:8061: x86_64-pc-linux-gnu-gcc -o conftest -O2 -march=native -pipe -pthread -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/libdrm -I/usr/include/qt4/QtCore    -L. -Wl,-O1 -Wl,--as-needed -rdynamic -Wl,-export-dynamic -Wl,--no-undefined  -Wl,-E  -Wl,-O1 -Wl,--as-needed -L/usr/local/lib conftest.c   -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0   >&5
conftest.c: In function 'main':
conftest.c:34:8: warning: ignoring return value of 'system', declared with attribute warn_unused_result
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../lib64/libcairo.so: undefined reference to `qt_draw_glyphs(QPainter*, unsigned int const*, QPointF const*, int)'
collect2: ld returned 1 exit status
configure:8061: $? = 1
configure: program exited with status 1
Comment 11 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-07 08:39:34 UTC
After rebuilding x11-libs/cairo works for me.

Thanks Richard!