Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-13-2013, 03:29 PM   #1
LQ Newbie
Registered: Jan 2011
Location: Edina, MN
Distribution: Slackware, CentOS
Posts: 24

Rep: Reputation: 1
Trying to create x64 PHP package that supports a coupe x86 libraries

We use some industry specific software where I work that uses Pervasive SQL server (running on 2008r2 server). I have many php application that access this DB using unixODBC. My issue is that Pervasive SQL does have a 64bit client for Linux, but only the 32bit version supports ODBC. My current application server is long in the tooth (Slackware 12.1), and I would like to move everything to a 64bit box (Slackware).

Is it possible to build a x64 PHP package that uses a couple x86 libraries?

I haven't been able to get this working, and am starting to wonder if I just need to stick with an x86 build for everything that need to access the odbc.

The only libraries that must be 32bit are unixODBC, and PervaiseSQL_client. I setup a test Slackware64-14.0 box, and installed Alien Bob's multilib setup. I was able to build 32bit packages for unixODBC & Pervasie sql client on the x64 box, installed, and tested them. All is working.

I've tried to build php.SlackBuild on the x64 box with odbc support, but it fails.

configure: error: ZLIB extension requires gzgets in zlib

I've been building 32bit php packages for over 5 years now with odbc support, and never had a problem. Is there a way I can tell the build script that a couple libraries need to be 32bit?
Or is this just not going to work, and I should keep the odbc application on a 32 bit box?

Any thoughts or guidance would be greatly appreciated.


Mr. B-o-B
Old 05-14-2013, 03:16 PM   #2
Slackware Contributor
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 507

Rep: Reputation: 306Reputation: 306Reputation: 306Reputation: 306
My take on this is that you are out of luck. You can't load 32bit libs into a 64bit binary, so whatever process would connect to odbc would need to be 32bit. You could run a 32bit php on the 64bit host. I doubt without investing a lot of time an effort it would get better than this.
1 members found this post helpful.
Old 05-15-2013, 07:00 AM   #3
LQ Newbie
Registered: Jan 2011
Location: Edina, MN
Distribution: Slackware, CentOS
Posts: 24

Original Poster
Rep: Reputation: 1
Thank for your reply ppr:kut. I was afraid that this was the case. Perhaps someday Pervasive SQL will release a 64bit client that supports odbc, but until then I'm OK with keeping a 32bit box around.



multilib, php, slackbuild

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
Filesharing between Windows 7 x64 and Debian 6 x86 - very low speeds Tralce Linux - Networking 2 04-28-2013 11:09 PM
How to detect OS type (x86 or x64) with NMAP? Annielover Linux - Newbie 1 03-07-2013 05:24 AM
Slackware-Current x64 & x86 + Nvidia SqdnGuns Slackware 7 05-24-2009 10:34 AM
compiling x64 application from ubuntu x86 using gcc compiler samitpmc Programming 9 07-21-2008 04:53 AM
Solaris 10 x64/x86 driver wanted cstsang Solaris / OpenSolaris 3 10-31-2005 11:27 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:59 AM.

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