compilation problem for medit

Anything that pertains to Portage

Moderator: Moderators

compilation problem for medit

Postby jakubi » Sun Jan 13, 2013 9:18

I am looking to install the editor medit (http://mooedit.sourceforge.net/) on a newly installed Sabayon Linux 10 Mate 64-bit. I have found no binary by means of the Entropy package manager. So, I have tried a source installation of medit 1.0.5 from this Portage overlay:

http://gpo.zugaina.org/app-editors/medit

in the hope that it could work. However, some compilations problems occur:
Code: Select all
sudo emerge medit
[...]
In file included from ./mooutils/mooi18n.h:20:0,
                 from mooedit/mooeditprefs.c:26:
/usr/include/glib-2.0/glib/gstrfuncs.h:28:2: error: #error "Only <glib.h> can be included directly."In file included from ./mooutils/mooi18n.h:20:0,
                 from mooedit/mooeditdialogs.c:23:
/usr/include/glib-2.0/glib/gstrfuncs.h:28:2: error: #error "Only <glib.h> can be included directly."

In file included from mooedit/mooeditdialogs.c:30:0:
/usr/include/glib-2.0/glib/gregex.h:23:2: error: #error "Only <glib.h> can be included directly."
[...]


So, it looks that this source will not work, at least without some patching. Could this problem be solved easily? Or even better, could someone suggest a more direct way to download and install a binary for medit? (a recent version if possible).
jakubi
Baby Hen
 
Posts: 2
Joined: Sun Jan 13, 2013 8:29

Re: compilation problem for medit

Postby sabayonino » Sun Jan 13, 2013 10:18

please paste the full log.
User avatar
sabayonino
Sagely Hen
 
Posts: 1602
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: compilation problem for medit

Postby jakubi » Sun Jan 13, 2013 10:35

sabayonino wrote:please paste the full log.

There it goes:
Code: Select all
 $ sudo emerge medit
Password:
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-editors/medit-1.0.5 from user_defined
 * medit-1.0.5.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                              [ ok ]
>>> Unpacking source...
>>> Unpacking medit-1.0.5.tar.bz2 to /var/tmp/portage/app-editors/medit-1.0.5/work
>>> Source unpacked in /var/tmp/portage/app-editors/medit-1.0.5/work
>>> Compiling source in /var/tmp/portage/app-editors/medit-1.0.5/work/medit-1.0.5 ...
 * econf: updating medit-1.0.5/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating medit-1.0.5/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of x86_64-pc-linux-gnu-gcc... gcc3
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... /usr/bin/msgfmt
checking for dcgettext... yes
checking if msgfmt accepts -c... yes
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
checking for intltool-update... /usr/bin/intltool-update
checking for intltool-merge... /usr/bin/intltool-merge
checking for intltool-extract... /usr/bin/intltool-extract
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes
checking dependency style of x86_64-pc-linux-gnu-g++... gcc3
checking whether x86_64-pc-linux-gnu-gcc and cc understand -c and -o together... yes
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking for x86_64-pc-linux-gnu-windres... no
checking for windres... no
checking for python... python
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for x86_64-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTK... yes
checking for GLIB... yes
checking for GTHREAD... yes
checking for XML... yes
checking for x86_64-pc-linux-gnu-gdk-pixbuf-csource... no
checking for gdk-pixbuf-csource... gdk-pixbuf-csource
checking fam.h usability... yes
checking fam.h presence... yes
checking for fam.h... yes
checking for FAMMonitorDirectory... yes
checking for FAMOpen... yes
checking for FAM_CFLAGS... None
checking for FAM_LIBS... -lfam
checking whether FAMNoExists is declared... yes
checking for getc_unlocked... yes
checking for unistd.h... (cached) yes
checking sys/utsname.h usability... yes
checking sys/utsname.h presence... yes
checking for sys/utsname.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for mmap... yes
checking for X... yes
checking for cos in -lm... yes
checking whether python version >= 2.2... yes
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib64/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib64/python2.7/site-packages
checking for the distutils Python package... yes
checking for Python include path... -I/usr/include/python2.7
checking Python linker flags... -L/usr/lib -lpython2.7
checking for PYGTK... yes
configure: compiling python support
configure: creating ./config.status
config.status: creating Makefile
config.status: creating api/Makefile
config.status: creating doc/Makefile
config.status: creating moo/Makefile
config.status: creating po/Makefile
config.status: creating po-gsv/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default-1 commands
make -j16 -s
Making all in po
Making all in po-gsv
Making all in api
Making all in doc
Making all in moo
Generating and caching the translation database
Generating and caching the translation database
Merging translations into moopython/plugins/python.ini.
Merging translations into moopython/plugins/terminal.ini.
In file included from ./mooutils/mooi18n.h:20:0,
                 from mooedit/mooeditprefs.c:26:
/usr/include/glib-2.0/glib/gstrfuncs.h:28:2: error: #error "Only <glib.h> can be included directly."In file included from ./mooutils/mooi18n.h:20:0,
                 from mooedit/mooeditdialogs.c:23:
/usr/include/glib-2.0/glib/gstrfuncs.h:28:2: error: #error "Only <glib.h> can be included directly."

In file included from mooedit/mooeditdialogs.c:30:0:
/usr/include/glib-2.0/glib/gregex.h:23:2: error: #error "Only <glib.h> can be included directly."
make[3]: *** [mooeditprefs.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from ./mooutils/mooi18n.h:20:0,
                 from mooedit/mooeditaction-factory.c:24:
/usr/include/glib-2.0/glib/gstrfuncs.h:28:2: error: #error "Only <glib.h> can be included directly."make[3]: *** [mooeditdialogs.o] Error 1
In file included from ./mooutils/mooi18n.h:20:0,
                 from medit-app/main.c:19:
/usr/include/glib-2.0/glib/gstrfuncs.h:28:2: error: #error "Only <glib.h> can be included directly."

In file included from ./mooutils/mooi18n.h:20:0,
                 from mooedit/mooeditprefspage.c:29:
/usr/include/glib-2.0/glib/gstrfuncs.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from ./mooutils/mooi18n.h:20:0,
                 from mooedit/mooedit.c:52:
/usr/include/glib-2.0/glib/gstrfuncs.h:28:2: error: #error "Only <glib.h> can be included directly."
In file included from mooedit/mooeditaction.c:26:0:
/usr/include/glib-2.0/glib/gregex.h:23:2: error: #error "Only <glib.h> can be included directly."
mooedit/mooedit.c: In function ‘moo_edit_constructor’:medit-app/main.c: In function ‘medit_main’:
medit-app/main.c:554:5: warning: ‘g_thread_init’ is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/gthread.h:259) [-Wdeprecated-declarations]

mooedit/mooedit.c:298:18: warning: variable ‘view’ set but not used [-Wunused-but-set-variable]
make[3]: *** [mooeditaction.o] Error 1
make[3]: *** [main.o] Error 1
make[3]: *** [mooeditaction-factory.o] Error 1
In file included from mooedit/mooeditfiltersettings.c:26:0:
/usr/include/glib-2.0/glib/gregex.h:23:2: error: #error "Only <glib.h> can be included directly."
In file included from ./mooutils/mooi18n.h:20:0,
                 from mooedit/mooedit-fileops.c:30:
/usr/include/glib-2.0/glib/gstrfuncs.h:28:2: error: #error "Only <glib.h> can be included directly."
make[3]: *** [mooeditprefspage.o] Error 1
make[3]: *** [mooedit.o] Error 1
make[3]: *** [mooeditfiltersettings.o] Error 1
make[3]: *** [mooedit-fileops.o] Error 1
In file included from ./mooutils/mooi18n.h:20:0,
                 from ./mooedit/mooeditprogress-gxml.h:2,
                 from mooedit/mooeditprogress.c:2:
/usr/include/glib-2.0/glib/gstrfuncs.h:28:2: error: #error "Only <glib.h> can be included directly."
make[3]: *** [mooeditprogress.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
emake failed
 * ERROR: app-editors/medit-1.0.5 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *          ebuild.sh, line  93:  Called src_compile
 *        environment, line 213:  Called __eapi0_src_compile
 *   phase-helpers.sh, line 572:  Called __eapi2_src_compile
 *   phase-helpers.sh, line 612:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 *
 * If you need support, post the output of `emerge --info '=app-editors/medit-1.0.5'`,
 * the complete build log and the output of `emerge -pqv '=app-editors/medit-1.0.5'`.
 * This ebuild is from an overlay named 'user_defined': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/app-editors/medit-1.0.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-editors/medit-1.0.5/temp/environment'.
 * Working directory: '/var/tmp/portage/app-editors/medit-1.0.5/work/medit-1.0.5'
 * S: '/var/tmp/portage/app-editors/medit-1.0.5/work/medit-1.0.5'

>>> Failed to emerge app-editors/medit-1.0.5, Log file:

>>>  '/var/tmp/portage/app-editors/medit-1.0.5/temp/build.log'

 * Messages for package app-editors/medit-1.0.5:

 * ERROR: app-editors/medit-1.0.5 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *          ebuild.sh, line  93:  Called src_compile
 *        environment, line 213:  Called __eapi0_src_compile
 *   phase-helpers.sh, line 572:  Called __eapi2_src_compile
 *   phase-helpers.sh, line 612:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 *
 * If you need support, post the output of `emerge --info '=app-editors/medit-1.0.5'`,
 * the complete build log and the output of `emerge -pqv '=app-editors/medit-1.0.5'`.
 * This ebuild is from an overlay named 'user_defined': '/usr/local/portage/'
 * The complete build log is located at '/var/tmp/portage/app-editors/medit-1.0.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-editors/medit-1.0.5/temp/environment'.
 * Working directory: '/var/tmp/portage/app-editors/medit-1.0.5/work/medit-1.0.5'
 * S: '/var/tmp/portage/app-editors/medit-1.0.5/work/medit-1.0.5'
jakubi
Baby Hen
 
Posts: 2
Joined: Sun Jan 13, 2013 8:29

Re: compilation problem for medit

Postby sabayonino » Mon Jan 14, 2013 14:09

uhm ...

from medit "INSTALL" file :
https://bitbucket.org/medit/medit/src/d ... at=default
Code: Select all
Building medit from Mercurial requires the following, in addition to the dependencies
listed above: automake, autoconf, libtool, intltool, docbook, xsltproc, txt2tags.
Other tools may be required and configure may not check for them, please report those
to the author.


Compiling from Zugaina Overlay , mercurial is installed.

Check all components required

automake ---> sys-devel/automake (dfeault is installed)
autoconf ---> sys-devel/autoconf (default is installed)
libtool ---> sys-devel/libtool (as above)
intltool --> dev-util/intltool
docbook --> app-text/docbook2X
txt2tags ---> app-text/txt2tags
xsltproc ---> dev-libs/libxslt (I think)
User avatar
sabayonino
Sagely Hen
 
Posts: 1602
Joined: Sun Sep 21, 2008 1:12
Location: Italy


Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 1 guest