Go Back   DaemonForums > OpenBSD > OpenBSD Packages and Ports

OpenBSD Packages and Ports Installation and upgrading of packages and ports on OpenBSD.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 7th February 2014
shep shep is offline
Real Name: Scott
Arp Constable
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,253
Default Cairo-dock gthread-2.0

I am looking at building cairo-dock on OpenBSD-current and feel ever so close to success.
[100%] Building C object Help/src/CMakeFiles/cd-Help.dir/applet-composite.c.o
Linking C shared library libcd-Help.so
/usr/bin/ld: cannot find -lgthread-2.0
collect2: ld returned 1 exit status
*** Error 1 in . (Help/src/CMakeFiles/cd-Help.dir/build.make:189 'Help/src/libcd-Help.so')
*** Error 1 in . (CMakeFiles/Makefile2:1467 'Help/src/CMakeFiles/cd-Help.dir/all')
*** Error 1 in /usr/local/cairo-dock-3.3.2 (Makefile:137 'all')
It uses cmake which I initialized with
[cmd]cmake CMakeLists.txt -DCMAKE_INSTALL_PREFIX=/usr/local[/cmd]
[cmd]cmake CMakeLists.txt -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_INSTALL_LIBDIR=/usr/local/lib[/cmd]

I have libgthreads-2.0
jsh$ ls -al /usr/local/lib | grep gth
-rw-r--r-- 1 root bin 2646 Jan 25 11:17 libgthread-2.0.a
-rw-r--r-- 1 root bin 914 Jan 25 11:17 libgthread-2.0.la
-rw-r--r-- 1 root bin 8309 Jan 25 11:17 libgthread-2.0.so.3800.0
-rw-r--r-- 1 root bin 10014 Feb 4 05:34 libgthread.a
-rw-r--r-- 1 root bin 739 Feb 4 05:34 libgthread.la
-rw-r--r-- 1 root bin 14603 Feb 4 05:34 libgthread.so.1.2
My sense is that it is poor form to make a lgthread-2.0 soft link to libgthread-2.0.so.3800.0. Any advise on where to go from here?
Reply With Quote
  #2   (View Single Post)  
Old 7th February 2014
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
Join Date: May 2008
Location: USA
Posts: 6,712

Chapter 3 of the Porter's Handbook has a section on shared libraries and their management. It warns:
Trying to rename the library after the fact to adjust the version number does not work: ELF libraries use some extra magic to set the library internal name, so you must link it with the correct version the first time.
Reply With Quote
  #3   (View Single Post)  
Old 7th February 2014
ibara's Avatar
ibara ibara is offline
Real-life IT professor
Join Date: Jan 2014
Posts: 715

-lgthread-2.0 is fine. You can use some CMake magic to expand out to the full library name, but it's probably easier to add -L/usr/local/lib to your linker flags.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python/GTK/Cairo Problems (ImportError: No module named cairo) whetphish FreeBSD General 2 24th June 2009 11:06 PM

All times are GMT. The time now is 01:42 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick