Keruspe / GPaste

Clipboard management system
BSD 2-Clause "Simplified" License
795 stars 55 forks source link

Compile Error on Debian Testing, Gnome 3.8 #68

Closed roedel1 closed 10 years ago

roedel1 commented 10 years ago

I'd love to install Gpaste 3.2.2 on my Debian box. autogen.sh and configure work just fine, however, when trying to compile I get the following error:

libgpaste/core/.libs/libgpaste-core.so: undefined reference to `g_paste_clipboards_manager_get_instance_private' collect2: error: ld returned 1 exit status

In issue #59 I found the same error on a Gentoo system. Any idea how to go on?

Keruspe commented 10 years ago

Hi,

if you already have a version of GPaste installed, try removing it first, and then retry, it should work. It's a known issue GPaste (and a lot of other projects) has with libtool that I didn't manage to fix properly yet.

roedel1 commented 10 years ago

Keruspe,

Thanks for your reply. It's a plain and freshly installed box, no older instances of GPaste are installed, however, I had tried to install the GPaste/Gnome3 Extension before compiling. I think I'll just wait a bit.

best, Stephan

Keruspe commented 10 years ago

I am out without a computer for two weeks, will try to reproduce afterwards. Note that a friend of mine is willing to do the Debian packaging soon

On Monday, January 13, 2014, roedel1 wrote:

Keruspe,

Thanks for your reply. It's a plain and freshly installed box, no older instances of GPaste are installed, however, I had tried to install the GPaste/Gnome3 Extension before compiling. I think I'll just wait a bit.

best, Stephan

— Reply to this email directly or view it on GitHubhttps://github.com/Keruspe/GPaste/issues/68#issuecomment-32128689 .

roedel1 commented 10 years ago

That's good news, thanks a lot. Have a good time whatever you do these two weeks meanwhile.

Keruspe commented 10 years ago

Are you sure you're trying with GPaste 3.2.2 ? I see some reference to it in > 3.5, in 3.2 but neither in 3.2.1 nor in 3.2.2

roedel1 commented 10 years ago

Unfortunately I am sure. I just tried again to compile v3.2.2, v3.3 and v3.5. As systemd hasn't become the standard in the repos by now i didn't pass the --enable-systemd parameter. Everything else is straight and clean as described in the README file.

Keruspe commented 10 years ago

With v3.3, which error do you get? still the libgpaste/core/.libs/libgpaste-core.so: undefined reference to `g_paste_clipboards_manager_get_instance_private' collect2: error: ld returned 1 exit status ?

If so, I'd really like to see the output of

grep -rI  g_paste_clipboards_manager_get_instance_private .

in your build tree

roedel1 commented 10 years ago

Just took a closer look, seems to be another error now but it is still not compiling. I'm not sure if I'm still right in this issue here. Here's the full make-output for 3.3:

make --no-print-directory all-recursive Making all in po make[2]: Für das Ziel »all« ist nichts zu tun. CCLD bin/gpaste-settings /usr/bin/ld: src/gpaste-settings/bin_gpaste_settings-gpaste-settings.o: undefined reference to symbol 'gtk_widget_new' //usr/lib/i386-linux-gnu/libgtk-3.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[2]: * [bin/gpaste-settings] Fehler 1 make[1]: * [all-recursive] Fehler 1 make: *\ [all] Fehler 2

Keruspe commented 10 years ago

Does this patch fix the issue for you? https://github.com/Keruspe/GPaste/commit/57e5118720523e4bc8daed2db825397041cad85a.patch

roedel1 commented 10 years ago

Yep, your patch does the trick. Compiled, installed and working like a charm now. Just comment if you want me to do some further actions.

As it may be stated by others: Thank you so much, you're doing great work!

Keruspe commented 10 years ago

I just released 3.3.1 which should be all fine in debian wheezy, and have fixed the last issues I hit with debian sid in the gpaste-3.10 branch, for your information :)