Forum OpenACS Development: Postgres driver in Naviserver

Collapse
Posted by Joshua Barton on
Does anyone have experience compiling the nsdbpg, postgres driver for naviserver? I am running solaris/OmniOS and have not had much luck. I am getting an ELF32 wrong class error
Collapse
Posted by Gustaf Neumann on
Dear Joshua,

this error message from Solaris has nothing to do with the postgres driver. If one is compiling a program from multiple sources, all components have to be compiled with the same pointer size (32bit or 64 bit). As written in [1] the install-ns.sh script compiles NaviServer and its the components with 64 bit. If you compile NaviServer modules yourself (i.e. outside the script), and you want to load these into a 64bit NaviServer, use 'export CC="gcc -m64"' and recompile the additional components again to get 64bit components.

best regards
-gustaf neumann

[1] https://openacs.org/forums/message-view?message_id=4143826

Collapse
Posted by Joshua Barton on
Thank you for your response, I will try and verify that all of the components are using 64 bit components. Thanks gustaf

-josh barton