LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   PHP-ODBC on OpenBSD 4.1 causes Segmentation fault (https://www.linuxquestions.org/questions/%2Absd-17/php-odbc-on-openbsd-4-1-causes-segmentation-fault-559086/)

IMNOboist 06-04-2007 12:33 PM

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:

Code:

[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/libiodbc.so.3.15: 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:
Code:

[ODBC]
;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



All times are GMT -5. The time now is 07:12 AM.