Forum OpenACS Q&A: Red Hat 9 and OpenACS 4.6.2

Collapse
Posted by Joel Aufrecht on
OpenACS 4.6.2 mostly works with Red Hat 9. I ran into the following problems:

Red Hat 9 uses glibc 2.3.1, which ends some bug-compatibility with "errno." This breaks qmail, daemontools, and postgresql 7.2.3. See here and here for details. The fix is to put the line

#include <errno.h>
as the first (non-comment) line in each of /usr/local/src/qmail-1.03/error.h,
/package/admin/daemontools/src/error.h, and
/usr/local/src/postgresql-7.2.3/src/include/postgres.h.

The other problem I had was with compiling nsopenssl. It complains about kerberos, and when I dealt with that it said "OpenSSL was not compiled with thread support!"

Collapse
Posted by Lamar Owen on

I have released PostgreSQL 7.2.4 RPMs for Red Hat Linux 9.

They are available at ftp://ftp.postgresql.org/pub/binary/v7.2.4/RPMS/redhat-9

Your friendly neighborhood PostgreSQL RPM Maintainer.....

(posted using Composite, a really neat inline HTML textarea WYSIWYG editor for Mozilla)

Collapse
Posted by Roberto Mello on
I've had these for a couple weeks but forgot to announce, and will take a ride on Lamar's announcement.

PostgreSQL 7.2.4 Debian packages are available in my debian repository: deb http://www.brasileiro.net/debian ./

I don't know if the Debian PG team posted these somewhere, but I couldn't find any when I made them.

These are just PG 7.2.3 packages uupdated (no, that's not a typo, uupdate is a debian utility) to 7.2.4.

-Roberto

Collapse
Posted by Lachlan Myers on
I had the same problem, and approached Scott Goodwin.
His response follows (it worked for me):

Hi,

the problem is a changed #define in openssl. Edit the nsopenssl.h file
and change THREADS to OPENSSL_THREADS near the top. That should do it.

/s.

On Tuesday, March 18, 2003, at 05:17  PM, mailto:lachmyers@netscape.net wrote:

<blockquote> A comment on

http://scottg.net/webtools/aolserver/modules/nsopenssl/installation/
index.htm

was added to the scottg comment realm:

I'm compiling the OpenSSL 0.9.7a from the source
tarball, and having trouble compiling with thread
support. At least, nsopenssl is still complaining
that "OpenSSL was compiled without thread support!".

I used

/config --prefix=/usr
--openssldir=/usr/local/openssl threads -D_REENTRANT

make CC="gcc -fPIC"

Thanks

from mailto:lachmyers@netscape.net (Lach Myers)
</blockquote>

Collapse
Posted by Joel Aufrecht on
As per this bug, the openssl in Red Hat 9 requires a bunch of kerberos stuff, which apparently requires each application that uses the openssl libraries to know about kerberos. *sigh* The fix is to change this line in /usr/local/src/aolserver/nsopenssl-2.1/Makefile:
CFLAGS   +=  -I$(OPENSSL)/include -
to
CFLAGS   +=  -I$(OPENSSL)/include -I/usr/kerberos/include
Collapse
Posted by Daniel D on
Hello,

I do have the same problem. I am trying to install OpenACS on RH 9 and I do have problem with daemontools (exactly as you do). Have you find any solution? If so, are you willing to share?

Thank you for your time.

DanielD

Collapse
Posted by Daniel D on
Oops, there is already fix in the body of the message. I am sorry. I will try that fix. Thank you.

Daniel

Collapse
Posted by Lachlan Myers on
Joel,
      I've just upgraded my Openssl to 0.97b and nsopenssl 2.1a. The change (which was in threads.c NOT nsopenssl.h - my apology) is no longer necessary as Openssl have reverted to THREADS.
Unfortunately, Scott's latest driver assumes OPENSSL_THREADS, and this now has to change back!!
Collapse
Posted by Joel Aufrecht on
How can I get PostGreSQL 7.2.4 to compile with Red Hat 9?  I figured out how to tweak 7.2.3 with the errno thing, but it didn't work for 7.2.4 and I'm not a C programmer, so I'm kind of lost.
Collapse
Posted by Joel Aufrecht on
I put the same command,
#include <errno.h>

in /usr/local/src/postgresql-7.2.4/src/include/pg_config.h.in

before running ./configure

and that did the trick.

Collapse
Posted by Sean Harrison on
Under Slackware 9, in addition to this change I had to change line 42 in thread.c from

    #ifndef THREADS

to

    #ifndef OPENSSL_THREADS

then the compile worked.

Shawn

Collapse
Posted by Andrew Piskorski on
At least on Linux (Red Hat 7.3), the configure script for OpenSSL 0.9.7b (when called like this: "./config threads shared") seems to still define OPENSSL_THREADS, not THREADS, so this should work just fine with nsopenssl 2.1a.
Collapse
Posted by Joel Aufrecht on
It looks like, for Debian and RH9, the necessary change is in threads.c, and it is from
#ifndef THREADS
to
#ifndef OPENSSL_THREADS
Collapse
Posted by Glenn Cadman on
Yep that got it. Just to recap the steps for RH9 and openssl and aolserver.
  1. cd /usr/local/src/aolserver
  2. tar xzf /tmp/nsopenssl-2.1.tar.gz
  3. cd nsopenssl-2.1
  4. Change the folling line in /usr/local/src/aolserver/nsopenssl-2.1/Makefile
    CFLAGS += -I$(OPENSSL)/include -
    to
    CFLAGS += -I$(OPENSSL)/include -I/usr/kerberos/include
  5. change the folling line in /usr/local/src/aolserver/nsopenssl-2.1/thread.c
    #ifndef THREADS
    to
    #ifndef OPENSSL_THREADS
  6. make OPENSSL=/usr/local/ssl
  7. cp nsopenssl.so /usr/local/aolserver/bin
  8. cp https.tcl /usr/local/aolserver/modules/tcl/