drizzle fails to build from source in natty

Bug #688819 reported by Matthias Klose
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle
Fix Released
High
Monty Taylor
7.0
Fix Released
High
Monty Taylor
drizzle (Ubuntu)
Fix Released
High
Monty Taylor
Natty
Fix Released
High
Monty Taylor
protobuf (Ubuntu)
Fix Released
Undecided
Unassigned
Natty
Fix Released
Undecided
Unassigned

Bug Description

should be built with -pthread ?

please consider turning on verbose build logs

  CXXLD drizzled/drizzled
/usr/lib/libprotobuf.so: undefined reference to `pthread_once'
collect2: ld returned 1 exit status
make[4]: *** [drizzled/message/schema_reader] Error 1
make[4]: *** Waiting for unfinished jobs....

Matthias Klose (doko)
Changed in drizzle (Ubuntu):
importance: Undecided → High
milestone: none → natty-alpha-2
status: New → Confirmed
Revision history for this message
Monty Taylor (mordred) wrote : Re: [Bug 688819] [NEW] drizzle fails to build from source in natty

On 12/10/2010 10:37 PM, Launchpad Bug Tracker wrote:
> You have been subscribed to a public bug by Matthias Klose (doko):
>
> should be built with -pthread ?
>
> please consider turning on verbose build logs
>
> CXXLD drizzled/drizzled
> /usr/lib/libprotobuf.so: undefined reference to `pthread_once'
> collect2: ld returned 1 exit status
> make[4]: *** [drizzled/message/schema_reader] Error 1
> make[4]: *** Waiting for unfinished jobs....
>

It's actually an issue with libprotobuf... I've been trying to track
down and solve this appropriately upstream. There is an protobuf bug...

http://code.google.com/p/protobuf/issues/detail?id=188

Which I believe is related.

Revision history for this message
Monty Taylor (mordred) wrote : Re: [Bug 688819] Re: drizzle fails to build from source in natty

For the purposes of ubuntu, I'm just going to add a patch to explicitly
add in -lpthread ... and I'll figure out a real solution upstream.

I'll also turn on verbose builds...

On 12/11/2010 01:11 AM, Matthias Klose wrote:
> ** Also affects: protobuf (Ubuntu)
> Importance: Undecided
> Status: New
>

Changed in drizzle (Ubuntu Natty):
assignee: nobody → Monty Taylor (mordred)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package protobuf - 2.3.0-4ubuntu2

---------------
protobuf (2.3.0-4ubuntu2) natty; urgency=low

  * Fix linking with -lpthread. LP: #688819.
 -- Matthias Klose <email address hidden> Sat, 11 Dec 2010 06:46:55 +0100

Changed in protobuf (Ubuntu Natty):
status: New → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

fixed protobuf. now drizzle fails with:

  CXXLD drizzled/drizzled
drizzled/.libs/libtemporal.a(temporal_format.o): In function `TemporalFormat':
/build/buildd/drizzle-2010.12.05/drizzled/temporal_format.cc:66: undefined reference to `pcre_compile'
drizzled/.libs/libtemporal.a(temporal_format.o): In function `drizzled::TemporalFormat::matches(char const*, unsigned long, drizzled::Temporal*)':
/build/buildd/drizzle-2010.12.05/drizzled/temporal_format.cc:88: undefined reference to `pcre_exec'
collect2: ld returned 1 exit status
make[4]: *** [drizzled/drizzled] Error 1
make[4]: Leaving directory `/build/buildd/drizzle-2010.12.05'
make[3]: *** [all-recursive] Error 1

Revision history for this message
Monty Taylor (mordred) wrote :

On 12/11/2010 06:12 AM, Matthias Klose wrote:
> fixed protobuf. now drizzle fails with:
>
> CXXLD drizzled/drizzled
> drizzled/.libs/libtemporal.a(temporal_format.o): In function `TemporalFormat':
> /build/buildd/drizzle-2010.12.05/drizzled/temporal_format.cc:66: undefined reference to `pcre_compile'
> drizzled/.libs/libtemporal.a(temporal_format.o): In function `drizzled::TemporalFormat::matches(char const*, unsigned long, drizzled::Temporal*)':
> /build/buildd/drizzle-2010.12.05/drizzled/temporal_format.cc:88: undefined reference to `pcre_exec'
> collect2: ld returned 1 exit status
> make[4]: *** [drizzled/drizzled] Error 1
> make[4]: Leaving directory `/build/buildd/drizzle-2010.12.05'
> make[3]: *** [all-recursive] Error 1
>

Piddle. I shall investigate.

Revision history for this message
Monty Taylor (mordred) wrote :

With the new protobuf packages, drizzle builds from source for me on my natty box... I'll try next in the context of a debuild...

Is there anything the ubuntu builders are injecting into how things are built? I'll also push up a new rev with V=1 turned on.

Revision history for this message
Matthias Klose (doko) wrote :

no, the builders do not inject anything, but we did turn on ld --as-needed in natty.

my assumption is that drizzled/libtemporal.la doesn't mention the need of the pcre library. I'll see if that is the case. as an alternative, the drizzled link could explicitely mention -lpcre.

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

This bug was fixed in the package drizzle - 2010.12.05-0ubuntu3

---------------
drizzle (2010.12.05-0ubuntu3) natty; urgency=low

  * Fixed how we were linking libpcre (LP: #688819)
 -- Monty Taylor <email address hidden> Sun, 12 Dec 2010 00:08:08 -0200

Changed in drizzle (Ubuntu Natty):
status: Confirmed → Fix Released
Revision history for this message
Monty Taylor (mordred) wrote :

On 12/11/2010 11:26 PM, Matthias Klose wrote:
> no, the builders do not inject anything, but we did turn on ld --as-
> needed in natty.
>
> my assumption is that drizzled/libtemporal.la doesn't mention the need
> of the pcre library. I'll see if that is the case. as an alternative,
> the drizzled link could explicitely mention -lpcre.
>

I tried changing how we specify the libpcre link on my natty test box
and it worked - I've just pushed a new package to see if it makes it all
the way through.

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.