configure test for boost_thread fails link on OSX (Darwin 11.4)

Bug #1132648 reported by David Arnold
This bug affects 2 people
Affects Status Importance Assigned to Milestone
drizzle (Ubuntu)
Fix Released
Dimitri John Ledkov

Bug Description

In drizzle-7.2.3, compiling from source on
MacOSX 10.7.5 (Lion), using
Xcode 4.5.2 (i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)), and
boost-1.52 from MacPorts,

The configure test for boost_thread-mt fails because linkage of conftest fails, because use of boost_thread-mt requires linkage of boost_system-mt.

Changing the AC_LIB_HAVE_LINKFLAGS call for boost_thread-mt (in m4/pandora_have_libboost_thread.m4) to include boost_system-mt as a dependency (as per the attached patch) solves the problem.

Problem (CFLAGS/LDFLAGS used to find dependencies via MacPorts):

./configure --prefix=/platform/stow/drizzle-7.2.3 CFLAGS=-I/opt/local/include LDFLAGS=-L/opt/local/lib
checking how to link with libboost_program_options-mt... -lboost_program_options-mt
checking for libc... (cached) no
checking for libboost_thread-mt... no
checking for libboost_thread... no
configure: error: boost::thread is required for drizzle

From config.log:

configure:34836: g++ -o conftest -D_THREAD_SAFE -D_THREAD_SAFE -isystem /opt/local/include -I/opt/local/include -L/opt/local/lib conftest.cpp -lintl -lboost_thread-mt >&5
Undefined symbols for architecture x86_64:
  "boost::system::generic_category()", referenced from:
      __static_initialization_and_destruction_0(int, int)in ccW6zDIM.o
  "boost::system::system_category()", referenced from:
      __static_initialization_and_destruction_0(int, int)in ccW6zDIM.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
configure:34836: $? = 1

See attached patch, which just adds this library to the dependencies. You might want to check for its existence, etc, first, if you wish to maintain the ability to specify locations for each of the boost libraries separately.

Tags: patch
Revision history for this message
David Arnold (davida) wrote :
Changed in drizzle (Ubuntu):
status: New → Triaged
importance: Undecided → High
assignee: nobody → Dmitrijs Ledkovs (xnox)
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Patch to add required library dependency to configure test" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
coldtobi (tobi-coldtobi) wrote :

Hallo David,

attached is an enhanced version of your patch. Thanks for the pointer :)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package drizzle - 1:7.1.36-stable-4ubuntu2

drizzle (1:7.1.36-stable-4ubuntu2) saucy; urgency=low

  * Disable -floop-parallelize-all due to gcc-4.8/4.9 compiler ICE
 -- Dmitrijs Ledkovs <email address hidden> Wed, 21 Aug 2013 21:11:29 +0100

Changed in drizzle (Ubuntu):
status: Triaged → 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.