gnome-split-1.0 compilation fails on fedora14 64bit

Bug #714103 reported by Martin Gansser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNOME Split
Fix Released
Low
Guillaume Mazoyer

Bug Description

Hi,

tried to compile gnome-split-1.0 on fedora14 64bit, but this fails with the following error messages:

./configure --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info

equivalence, v0.2
...configuring Java projects to build and run on Linux & Unix

Identify operating system: Fedora
Check for required jar files:
 - java-gnome library found
 - dbus-java library found
 - matthew-debug disable library found
 - matthew-debug enable library found
 - matthew-debug hexdump library found
 - Unix socket library found

Check Java compilers:
 - Eclipse ecj works
 - System Default javac works
 - System Default jar works
 - System Default javadoc found

Check Java virtual machines:
 - System Default java VM works

Select compiler: ecj
Select runtime: java

Write .config file: ok
Write launcher files: ok

+ make -j3
MKDIR tmp/classes
MKDIR tmp/i18n
MKDIR tmp/stamp
ECJ tmp/classes/*.class
EXTRACT tmp/i18n/gnome-split.pot
MSGFMT share/locale/de/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/cs/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/ka/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/pt/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/gl/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/ru/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/fr/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/es/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/pt_BR/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/pl/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/it/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/ca/LC_MESSAGES/gnome-split.mo
CP gnome-split
----------
1. ERROR in src/org/gnome/split/core/DefaultEngine.java (at line 90)
 public abstract void run();
                      ^^^^^
The method run() of type DefaultEngine must override a superclass method
----------
2. ERROR in src/org/gnome/split/core/DefaultEngine.java (at line 93)
 public abstract String getFilename();
                        ^^^^^^^^^^^^^
The method getFilename() of type DefaultEngine must override a superclass method
----------
3. ERROR in src/org/gnome/split/core/DefaultEngine.java (at line 96)
 public abstract long getFileLength();
                      ^^^^^^^^^^^^^^^
The method getFileLength() of type DefaultEngine must override a superclass method
----------
4. ERROR in src/org/gnome/split/core/DefaultEngine.java (at line 99)
 public void pause() {
             ^^^^^^^
The method pause() of type DefaultEngine must override a superclass method
----------
5. ERROR in src/org/gnome/split/core/DefaultEngine.java (at line 105)
 public void resume() {
             ^^^^^^^^
The method resume() of type DefaultEngine must override a superclass method
----------
6. ERROR in src/org/gnome/split/core/DefaultEngine.java (at line 114)
 public void stop(boolean clean) {
             ^^^^^^^^^^^^^^^^^^^
The method stop(boolean) of type DefaultEngine must override a superclass method
----------
7. ERROR in src/org/gnome/split/core/DefaultEngine.java (at line 130)
 public boolean paused() {
                ^^^^^^^^
The method paused() of type DefaultEngine must override a superclass method
----------
8. ERROR in src/org/gnome/split/core/DefaultEngine.java (at line 135)
 public String getDirectory() {
               ^^^^^^^^^^^^^^
The method getDirectory() of type DefaultEngine must override a superclass method
----------
----------
9. ERROR in src/org/gnome/split/gtk/widget/assistant/ActionAssistant.java (at line 65)
 Assistant.Cancel, Assistant.Apply, Assistant.ForwardPage
                                    ^^^^^^^^^^^^^^^^^^^^^
Assistant.ForwardPage cannot be resolved to a type

any hints ?

Revision history for this message
Martin Gansser (martin-gansser) wrote :
Revision history for this message
Guillaume Mazoyer (respawneral) wrote :

HI Martin,

Thanks for your bug report and your patch.
I'm not running Fedora so I might be wrong but if the patch is applied 32 bits Fedra users will not be able to build GNOME Split anymore right?

If it is the case, the configure should check the system architecture. It's not an autotools configure file as you can see, it is a hand written one. So some of the options that you passed to the configure file are not supported by the script.

Changed in gnome-split:
assignee: nobody → Guillaume Mazoyer (respawneral)
importance: Undecided → Low
status: New → In Progress
Revision history for this message
Martin Gansser (martin-gansser) wrote :

Thanks for your answer,
the patch is only necessary to run the configure script on fedora64bit.
The error messages are the same, when running make.

Revision history for this message
Guillaume Mazoyer (respawneral) wrote :

It looks like your trying to compile using ecj. It might be a good idea to use openjdk instead.
./configure ....some options... compiler=javac
(once openjdk is installed of course).

Revision history for this message
Martin Gansser (martin-gansser) wrote :

this is what javac gives:

[root@fc14 gnome-split-1.0]# ./configure --prefix=/usr compiler=javac

equivalence, v0.2
...configuring Java projects to build and run on Linux & Unix

Identify operating system: Fedora
Check for required jar files:
 - java-gnome library found
 - dbus-java library found
 - matthew-debug disable library found
 - matthew-debug enable library found
 - matthew-debug hexdump library found
 - Unix socket library found

Check Java compilers:
 - Eclipse ecj works
 - System Default javac works
 - System Default jar works
 - System Default javadoc found

Check Java virtual machines:
 - System Default java VM works

Select compiler: javac
Select runtime: java

Write .config file: ok
Write launcher files: ok

[root@fc14 gnome-split-1.0]# make
MKDIR tmp/classes
MKDIR tmp/stamp
MKDIR tmp/i18n
JAVAC tmp/classes/*.class
src/org/gnome/split/gtk/MainWindow.java:23: package org.freedesktop.icons does not exist
import org.freedesktop.icons.ActionIcon;
                            ^
src/org/gnome/split/gtk/widget/assistant/ActionAssistant.java:65: cannot find symbol
symbol : class ForwardPage
location: class org.gnome.gtk.Assistant
        Assistant.Cancel, Assistant.Apply, Assistant.ForwardPage
                                                    ^
src/org/gnome/split/gtk/MainWindow.java:252: cannot find symbol
symbol : variable ActionIcon
location: class org.gnome.split.gtk.MainWindow
        ((ImageMenuItem) items[2]).setImage(new Image(ActionIcon.MAIL_SEND, IconSize.MENU));
                                                      ^
src/org/gnome/split/gtk/widget/assistant/ActionAssistant.java:143: cannot find symbol
symbol : class ForwardPage
location: class org.gnome.split.gtk.widget.assistant.ActionAssistant
        this.setForwardPageCallback((ForwardPage) this);
                                     ^
src/org/gnome/split/gtk/widget/assistant/ActionAssistant.java:605: method does not override or implement a method from a supertype
    @Override
    ^
5 errors
make: *** [tmp/stamp/compile] Error 1

Revision history for this message
Guillaume Mazoyer (respawneral) wrote :

It seems that the version of java-gnome is not update to date to compile the 1.0 version of GNOME Split. What version of java-gnome do you use? GNOME Split 1.0 needs java-gnome 4.0.17 while GNOME Split 0.9 just needs java-gnome 4.0.16.

You can try to compile the 0.9 version to see if it works. After that, you can report a bug on Fedora's bug tracker to request an update of the java bindings for GNOME.

In attachment, a patch that you'll probably want to try.

Revision history for this message
Martin Gansser (martin-gansser) wrote :

that correct, gnome-split-0.9 compiles fine with java-gnome 4.0.16, but gnome-split-1.0
needs java-gnome-4.0.17.

Revision history for this message
Martin Gansser (martin-gansser) wrote :

gnome-split-0.9 compiles and install fine

[root@fc14 gnome-split-0.9]# make; make install
MKDIR tmp/classes
MKDIR tmp/stamp
MKDIR tmp/i18n
JAVAC tmp/classes/*.class
EXTRACT tmp/i18n/gnome-split.pot
MSGFMT share/locale/de/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/ka/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/pt/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/gl/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/ru/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/fr/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/es/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/pt_BR/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/pl/LC_MESSAGES/gnome-split.mo
MSGFMT share/locale/it/LC_MESSAGES/gnome-split.mo
CP gnome-split
JAR tmp/gnome-split.jar
INSTALL /usr/share/java/gnome-split-0.9.jar
SYMLINK /usr/share/java/gnome-split.jar -> gnome-split-0.9.jar
INSTALL /usr/share/pixmaps/*.png
INSTALL /usr/share/locale/*/LC_MESSAGES/gnome-split.mo
INSTALL /usr/share/applications/gnome-split.desktop
INSTALL /usr/bin/gnome-split

but /usr/bin/gnome-split fails on execution with:

[root@fc14 gnome-split-0.9]# /usr/bin/gnome-split
UncaughtException in thread: main
  Thread ID = 1
  Thread prority = 5
Exception stacktrace:
org.gnome.glib.FatalError: libnotify-WARNING
Missing symbol 'gdk_screen_make_display_name'
 at org.gnome.notify.NotifyMain.notify_init(Native Method)
 at org.gnome.notify.NotifyMain.notifyInit(NotifyMain.java:57)
 at org.gnome.notify.Notify.init(Notify.java:86)
 at org.gnome.split.GnomeSplit.<init>(GnomeSplit.java:133)
 at org.gnome.split.GnomeSplit.main(GnomeSplit.java:280)

Revision history for this message
Guillaume Mazoyer (respawneral) wrote :

Here is an interesting bug.
If you don't use the libnotify you should be able to start GNOME Split.
To disable the libnotify, you can edit the configuration file of GNOME Split in "~/.config/gnome-split/config".
Seach for UseNotification (should be in line 15) and set it to "false".

Revision history for this message
Martin Gansser (martin-gansser) wrote :

indeed, if UseNotification = false gnome-split starts.
thanks Martin

Revision history for this message
Guillaume Mazoyer (respawneral) wrote :

The fix for the dependencies check on Fedora has been commited. See revision 251.

Changed in gnome-split:
status: In Progress → Fix Committed
Changed in gnome-split:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.