Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2007 18:26:34 GMT
From:      Ben Schumacher <me@benschumacher.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/118186: p5-DBD-SQLite should be build with -lpthread
Message-ID:  <200711211826.lALIQYE4082882@www.freebsd.org>
Resent-Message-ID: <200711211830.lALIU1DP002710@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         118186
>Category:       ports
>Synopsis:       p5-DBD-SQLite should be build with -lpthread
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 21 18:30:00 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     Ben Schumacher
>Release:        FreeBSD 6.2-RELEASE-p8 amd64
>Organization:
>Environment:
>Description:
p5-DBD-SQLite doesn't work as built from ports because it is not linked to libpthread.so. You can workaround this with an LD_PRELOAD environment, but that seems a bit excessive.
>How-To-Repeat:
Use this script (also "make test" fails):
#!/usr/bin/env perl
use strict;
use warnings;
use DBI;
use DBD::SQLite;

my $dbh = DBI->connect("dbi:SQLite:dbname=test.db", "", "", { RaiseError => 1, PrintError => 0});


>Fix:
Include -lpthread in linked libraries. This could be done by adding LIBS="-lsqlite3 -lpthread" to CONFIGURE_ARGS in the Makefile.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711211826.lALIQYE4082882>