🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.interbase.linux
Article #91

Re: Interbase 4.0 , php4 & redHat 6.1

#91
From: Lars Westermann
Date: Tue, 27 Jun 2000 00:00
88 lines
3703 bytes
I have had the same problem (thoug with Apache 1.3.11 and PHP3.14 on
RedHat 6.1).

I *solved* the problem in an ugly manner, but it worked :-)
The problem comes from the fact, that IB4 is compiled using glibc2.0,
and RedHat 6.1 comes with glibc2.1, where the symbols _xstat etc. are
missing.

In order of defining the missing symbols, I therefore added these
statements just before the #ENDIF statement in the bottom of
functions/interbase.c (in the PHP?directory):

/*  Ugly hack to emulate _xstat (glibc2.0) in glibc2.1   */
#include <sys/stat.h>
int _fxstat __P ((int __ver, int __fildes, struct stat *__stat_buf))
{
        return (__fxstat(__ver, __fildes, __stat_buf));
}

int _xstat __P ((int __ver, __const char *__filename, struct stat
*__stat_buf))
{
        return (__xstat(__ver, __filename, __stat_buf));
}

int _lxstat __P ((int __ver, __const char *__filename, struct stat
*__stat_buf))
{
        return (__lxstat(__ver, __filename, __stat_buf));
}

#include <setjmp.h>
int __setjmp __P ((jmp_buf __env, int __savemask))
{
        return (__sigsetjmp (__env, __savemask));
}


It's not the way it *should* be done, but I had to try something ...
I haven't tried upgrading to the latest version of glibc (2.1.3),
which might solve the problem.

Regards,
Lars Westermann

On Wed, 14 Jun 2000 17:38:53 +0200, Spain Telecom
<hostmaster@stnet.es> wrote:

>Hi !
>	
>I need to install Apache 1.3.12-php4 with Interbase support on a RedHat
>Linux 6.1, but i have serious problems compiling apache : 
>------
>gcc  -DLINUX=2 -I/download/php-4.0.0 -I/download/php-4.0.0/Zend
>-I/download/php-4.0.0/Zend -I/d
>ownload/php-4.0.0 -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED
>`./apaci`    \
>      -o httpd buildmark.o modules.o modules/standard/libstandard.a
>modules/php4/libphp4.a main
>/libmain.a ./os/unix/libos.a ap/libap.a  lib/expat-lite/libexpat.a 
>-Wl,-rpath,/usr/interbase/l
>ib -Wl,-rpath,/usr/lib/pgsql  -rdynamic -L/usr/interbase/lib
>-L/usr/lib/pgsql -Lmodules/php4 -L
>../modules/php4 -L../../modules/php4 -lmodphp4  -lgdbm -lpam  -ldl -lpq
>-lgds -lgd -lresolv -lm
> -ldl -lcrypt -lnsl  -lresolv  -lm -lcrypt
>/usr/lib/libgds.a(utlp.o): In function `gds__edit':
>utlp.o(.text+0x5a4): undefined reference to `_xstat'
>utlp.o(.text+0x5d2): undefined reference to `_xstat'
>/usr/lib/libgds.a(gds.o): In function `gds__print_blr':
>gds.o(.text+0xe8a): undefined reference to `__setjmp'
>/usr/lib/libgds.a(isc_sync.o): In function `ISC_map_file':
>isc_sync.o(.text+0x401): undefined reference to `_fxstat'
>/usr/lib/libgds.a(head.o): In function `init':
>head.o(.text+0x3bcd): undefined reference to `_xstat'
>/usr/lib/libgds.a(head5.o): In function `init':
>head5.o(.text+0x3259): undefined reference to `_xstat'
>collect2: ld returned 1 exit status
>make[2]: *** [target_static] Error 1
>make[2]: Leaving directory `/download/apache_1.3.12/src'
>make[1]: *** [build-std] Error 2
>make[1]: Leaving directory `/download/apache_1.3.12'
>make: *** [build] Error 2
>------
>
>What is the error?
>
>Thanks.
Technical Details
Message-ID: <pslYOYvjTPEwgzJ2qOxKWgJJfW1c@4ax.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3911865F.54AD2964@teleline.es> <39271607@dnews> <3947A70D.4A5E7583@stnet.es>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109030,1cb227a969929234
X-Google-Attributes: gid109030,public
From: Lars Westermann <lw@ohdear.post4.tele.dk>
Subject: Re: Interbase 4.0 , php4 & redHat 6.1
Date: 2000/06/27
Message-ID: <pslYOYvjTPEwgzJ2qOxKWgJJfW1c@4ax.com>
X-Deja-AN: 639599038
Content-Transfer-Encoding: 7bit
References: <3911865F.54AD2964@teleline.es> <39271607@dnews> <3947A70D.4A5E7583@stnet.es>
Organization: Another Netscape Collabra Server User
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.interbase.linux