Tiny Core Linux
Tiny Core Extensions => TCE Talk => Extension requests => Topic started by: GNUser 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:
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:
/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
-
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.
-
The error I see is this:
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: 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: LIBS="-lgio-2.0" ./configure --blah --blah
-
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?
-
I found a newer version (1.2.1) on github and created an extension from it.
Extension submitted.