Skip to content

Instantly share code, notes, and snippets.

@stefansbv
stefansbv / sqitch-firebird-fail.txt
Created November 5, 2017 13:10
Debug Sqitch firebird test failure
### A random error on the theory/master branch:
t/firebird.t (Wstat: 11 Tests: 78 Failed: 0)
Non-zero wait status: 11
### Sometimes:
Error in perl corrupted double-linked list
#!/usr/bin/env perl
use strict;
use warnings;
use HiPi::Device::OneWire;
my @devices = HiPi::Device::OneWire->list_slaves();
for my $w1 ( @devices ) {
for ( qw( id family name description ) ) {
print qq($_ = $w1->{$_}\n);
sub cif_ok {
my $cif = shift;
return unless ($cif);
# Trim spaces to be safe
$cif =~ s/^\s+//;
$cif =~ s/\s+$//;
if ( length($cif) >= 10 ) {
@stefansbv
stefansbv / gist:7511547
Created November 17, 2013 10:07
DBD::Firebird (on darwin)
> perl Makefile.PL
Configuring DBD::Firebird (on darwin)
FIREBIRD_HOME : /Library/Frameworks/Firebird.framework/Resources
FIREBIRD_INCLUDE: /Library/Frameworks/Firebird.framework/Resources/../Headers
FIREBIRD_LIB : /Library/Frameworks/Firebird.framework/Resources/../Libraries
Client library : fbclient
Using DBI 1.628 (for perl 5.018001 on darwin-thread-multi-2level) installed in /usr/local/lib/perl5/site_perl/5.18.1/darwin-thread-multi-2level/auto/DBI/
libfbembed not found, building of DBD::FirebirdEmbed skipped.