WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: parcellite for x86_64  (Read 1481 times)

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
parcellite for x86_64
« on: January 06, 2020, 02:24:50 PM »
I'm trying to compile it myself from the source code here:
https://sourceforge.net/projects/parcellite/files/parcellite/parcellite-1.1.6/parcellite-1.1.6.tar.gz/download

make errors out here:
Code: [Select]
bruno@box:~/Downloads/parcellite-1.1.6$ ./configure --prefix=/usr/local
...
bruno@box:~/Downloads/parcellite-1.1.6$ make
...
gcc -I.. -DPARCELLITELOCALEDIR=\""/usr/local/share/locale"\" -mtune=generic -Os -pipe  -Wl,-O1 -o parcellite main.o utils.o daemon.o history.o keybinder.o preferences.o eggaccelerators.o attr_list.o -lgtk-x11-2.0  -lX11 -lgdk-x11-2.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lgtk-x11-2.0
/usr/local/bin/ld: utils.o: undefined reference to symbol 'g_file_new_for_path'
/usr/local/bin/ld: /usr/local/lib/libgio-2.0.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:298: parcellite] Error 1
make[2]: Leaving directory '/home/bruno/Downloads/parcellite-1.1.6/src'
make[1]: *** [Makefile:323: all-recursive] Error 1
make[1]: Leaving directory '/home/bruno/Downloads/parcellite-1.1.6'
make: *** [Makefile:261: all] Error 2

I can't figure out how to fix this:
Code: [Select]
/usr/local/bin/ld: utils.o: undefined reference to symbol 'g_file_new_for_path'
/usr/local/bin/ld: /usr/local/lib/libgio-2.0.so.0: error adding symbols: DSO missing from command line

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
Re: parcellite for x86_64
« Reply #1 on: January 06, 2020, 03:16:39 PM »
Never mind. I don't have time to troubleshoot the compilation right now, so I cobbled together a portable version of parcellite for myself.

Nevertheless, the extension request stands. A minimalistic clipboard manager would be nice to have in the repository.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14841
Re: parcellite for x86_64
« Reply #2 on: January 07, 2020, 03:20:31 AM »
The error I see is this:
Code: [Select]
gcc -I.. -DPARCELLITELOCALEDIR=\""/usr/local/share/locale"\" -g -O2   -o parcellite main.o utils.o daemon.o history.o keybinder.o preferences.o eggaccelerators.o attr_list.o -lgtk-x11-2.0  -lX11 -lgdk-x11-2.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lgtk-x11-2.0
/usr/local/bin/ld: utils.o: undefined reference to symbol 'g_file_new_for_path'
/usr/local/bin/ld: /usr/local/lib/libgio-2.0.so.0: error adding symbols: DSO missing from command line

If you change that line to read:
Code: [Select]
gcc -I.. -DPARCELLITELOCALEDIR=\""/usr/local/share/locale"\" -g -O2   -o parcellite main.o utils.o daemon.o history.o keybinder.o preferences.o eggaccelerators.o attr_list.o -L/usr/local/lib -lgtk-x11-2.0  -lX11 -lgdk-x11-2.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lgtk-x11-2.0 -lgio-2.0..make succeeds.

You can also fix this with:
Code: [Select]
LIBS="-lgio-2.0" ./configure --blah --blah
« Last Edit: January 07, 2020, 03:30:24 AM by Juanito »

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
Re: parcellite for x86_64
« Reply #3 on: January 07, 2020, 10:29:51 AM »
Thank you, juanito. That got me over the hump. I'm putting together an extension now.

P.S. Why do compilation-time errors have to be so extraordinarily cryptic and unhelpful?

Offline GNUser

  • Wiki Author
  • Hero Member
  • *****
  • Posts: 1530
Re: parcellite for x86_64
« Reply #4 on: January 07, 2020, 11:01:08 AM »
I found a newer version (1.2.1) on github and created an extension from it.
Extension submitted.