ports/118186: p5-DBD-SQLite should be build with -lpthread

Ben Schumacher me at benschumacher.com
Wed Nov 21 18:30:01 UTC 2007


>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:



More information about the freebsd-ports-bugs mailing list