List:General Discussion« Previous MessageNext Message »
From:Sasha Pachev Date:July 13 1999 1:55am
Subject:Re: Apache, mySQL, and PHP3 on OpenBSD 2.4
View as plain text  
John Kerbawy wrote:
> 
> Hello. I am trying to get mySQL 3.22.25 to install on this Pentium Pro 180
> system with 64Mb EDO RAM, and and 8.4Gb harddrive. When compiling and
> installing the src, I come up with:
> 
> Making install in sql
> Making install in share
> for lang in czech dutch english french german korean hungarian italian
> japanese norwegian norwegian-ny polish portuguese russian spanish slovak
> swedish;  do  /bin/sh ../../mkinstalldirs /usr/local/share/mysql/$lang;
> ../../extra/comp_err ./$lang/errmsg.txt ./$lang/errmsg.sys;
> /usr/bin/install -c -m 644 ./$lang/errmsg.sys
> /usr/local/share/mysql/$lang/errmsg.sys;  /usr/bin/install -c -m 644
> ./$lang/errmsg.txt  /usr/local/share/mysql/$lang/errmsg.txt;  done
> Memory fault
> *** Error code 139
> 
> If I edit the configure script and change CFLAGS="-O6 $CFLAGS" to CFLAGS="-O1
> $CFLAGS",
> the install completes and doesn't give me the previous error, I just get a message
> at the same point saying:
> 
> Making install in share
> for lang in czech dutch english french german korean hungarian italian
> japanese norwegian norwegian-ny polish portuguese russian spanish slovak
> swedish;  do  /bin/sh ../../mkinstalldirs /usr/local/share/mysql/$lang;
> ../../extra/comp_err ./$lang/errmsg.txt ./$lang/errmsg.sys;
> /usr/bin/install -c -m 644 ./$lang/errmsg.sys
> /usr/local/share/mysql/$lang/errmsg.sys;  /usr/bin/install -c -m 644
> ./$lang/errmsg.txt  /usr/local/share/mysql/$lang/errmsg.txt;  done
> Found 170 error messages
> ...
> (Repeated for a total of 17 times.
> Found 170 error messages
> /bin/sh ../mkinstalldirs /usr/local/libexec
> 
> Is this just some install shell script messing up with a for loop or
> something?
> 
> I went back after changing optimization levels and tried to install PHP3,
> and I come up with the following errors:
> 
> /usr/local/apache/bin/apxs -c -o libphp3.so -I. -I.
> -Wl,-R'/usr/local/lib/mysql' mod_php3.c libmodphp3-so.a -L/usr/local/lib
> pcrelib/libpcre.a  -L/usr/local/lib/mysql -lmysqlclient -lm  -lresolv
> -Lpcrelib -lpcre
> gcc ../apaci -fPIC -DSHARED_MODULE -I/usr/local/apache/include -I. -I.  -c
> mod_php3.c
> sh: ../apaci: not found
> ld -Bforcearchive -Bshareable -o libphp3.so mod_php3.o libmodphp3-so.a
> -L/usr/local/lib pcrelib/libpcre.a -L/usr/local/lib/mysql -lmysqlclient -lm
> -lresolv -Lpcrelib -lpcre -R/usr/local/lib/mysql
> maketables.c:63: Definition of symbol pcre_maketables' (multiply defined)
> (this same sort of message about 20 times)
> pcre.c:1971: Definition of symbol pcre_compile' (multiply defined)
> pcre.c:4134: Definition of symbol pcre_exec' (multiply defined)
> apxs:Break: Command failed with rc=65536
> *** Error code 1
> 
> What's this about? Apache?
> 
> As many of you know, when gcc crashes with error 11, it often indicated
> faulty hardware. 139 - 128 = 11. Still, I don't believe that I have
> defective RAM for I have tried using swap space, not using swap space, and ontop of
> that, I've never had any other problems
> with compiling and installing Apache, SSH, qmail. It also messes up in the
> install, and not the compile.
> 
> If anyone has any suggestions, please let me know. I have succesfully done
> this on a FreeBSD box with basically the same setup.
> 

I have a feeling that you have some library corruption. What I would
recommend is updating your libc along with GCC and the ++ part of it,
make sure there is nothing stale g++ -v to be convinced that the upgrade
went well, then write a Hello, world program in C++ :

#include <iostream.h>

int main() { cout << "Hello, world" << endl; return 0;}

make sure it compiles and runs, and then try compiling MySQL again. Or
you can just get the binary.

-- 
Sasha Pachev
http://www.sashanet.com
Thread
Apache, mySQL, and PHP3 on OpenBSD 2.4John Kerbawy13 Jul
  • Re: Apache, mySQL, and PHP3 on OpenBSD 2.4Sasha Pachev13 Jul
    • Apache, mySQL, and PHP3Mihaela IFTIMI-ILIE13 Jul
      • Re: Apache, mySQL, and PHP3Darrell Shifflett13 Jul
      • Re: Apache, mySQL, and PHP3Al Feisal13 Jul
      • Re: Apache, mySQL, and PHP3clhubert14 Jul
      • Re: Apache, mySQL, and PHP3Sasha Pachev21 Jul
      • open sized window with PHPWilliam Samplonius22 Jul
      • Re: open sized window with PHPDaniel Koch22 Jul
      • Re: open sized window with PHPSasha Pachev22 Jul