Review your favorite Linux distribution.
Go Back > Forums > Other *NIX Forums > *BSD
User Name
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.


  Search this Thread
Old 06-04-2007, 12:33 PM   #1
Registered: Nov 2003
Location: Seattle
Distribution: OpenBSD, Ubuntu
Posts: 60

Rep: Reputation: 16
PHP-ODBC on OpenBSD 4.1 causes Segmentation fault

I've never setup PHP-ODBC on anything but a Windows box, so I'm not sure if there's a step I missed, but here's what's happening: I'm running OpenBSD 4.1 and trying to use odbc_do() in PHP and it causes a weird error that I can't decipher. Here it is:

[Mon Jun  4 11:22:55 2007] [notice] Apache/1.3.29 (Unix) PHP/5.1.6 with Suhosin-Patch mod_perl/1.30 mod_ssl/2.8.16 OpenSSL/0.9.7j configured -- resuming normal operations
[Mon Jun  4 11:22:55 2007] [notice] Accept mutex: sysvsem (Default: sysvsem)
/usr/sbin/httpd:/usr/local/lib/ undefined symbol 'pthread_mutex_lock'
lazy binding failed!
[Mon Jun  4 11:23:10 2007] [notice] child pid 6965 exit signal Segmentation fault (11)
Any ideas? Did I miss a step? I did the thing to enable the module in php.ini. Here's the [ODBC] chunk in the php.ini file:
;odbc.default_db    =  Not yet implemented
;odbc.default_user  =  Not yet implemented
;odbc.default_pw    =  Not yet implemented

; Allow or prevent persistent links.
odbc.allow_persistent = On

; Check that a connection is still valid before reuse.
odbc.check_persistent = On

; Maximum number of persistent links.  -1 means no limit.
odbc.max_persistent = -1

; Maximum number of links (persistent + non-persistent).  -1 means no limit.
odbc.max_links = -1

; Handling of LONG fields.  Returns number of bytes to variables.  0 means
; passthru.
odbc.defaultlrl = 4096

; Handling of binary data.  0 means passthru, 1 return as is, 2 convert to char.
; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
; of uodbc.defaultlrl and uodbc.defaultbinmode
odbc.defaultbinmode = 1


odbc, openbsd, php

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
php excel odbc issue C-RAF. Programming 2 06-03-2006 04:54 PM
Fedora 4 - ODBC with PHP b_whelan Linux - Software 0 12-09-2005 05:54 AM
yast segmentation fault, system freezing - nvidia driver at fault? BaltikaTroika SUSE / openSUSE 2 12-02-2005 09:34 AM
Segfault Apache PHP ODBC nbjayme Fedora 1 01-19-2004 11:27 PM
access Windows ODBC from Linux PHP Psykoral Linux - Software 2 12-15-2003 07:32 AM > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 06:59 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration