MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:Michael Widenius Date:March 28 1999 7:58pm
Subject:Linking to apache on Solaris 2.6
View as plain text  
>>>>> "Luke" == Luke Kelty <luke@stripped> writes:

Luke> Here is my OS:
Luke> # uname -a
Luke> SunOS server2 5.6 Generic_105182-11 i86pc i386 i86pc

Luke> Here is my compiler
Luke> # gcc -v
Luke> Reading specs from /usr/local/lib/gcc-lib/i386-pc-solaris2.6/2.8.1/specs
Luke> gcc version 2.8.1

Luke> Here is how I build mysql
Luke> ./configure  --with-gnu-ld -enable-shared=yes --prefix=/usr/local/mysql

Luke> Now I am trying to add the mod_auth_mysql to apache.
Luke> Here is my problem:

Luke> ....
Luke> ===> main
Luke> gmake[1]: Entering directory `/public/install/apache_1.3.4/src/main'
Luke> gcc -c  -I../os/unix -I../include -I/usr/local/mysql/include/mysql  -I/usr/local
Luke> /mysql/include/mysql  -DSOLARIS2=260  gen_test_char.c
Luke> gcc  -I/usr/local/mysql/include/mysql  -DSOLARIS2=260   -L/usr/local/mysql/lib -
Luke> o gen_test_char gen_test_char.o -lmysqlclient -lm -L/usr/local/mysql/lib/mysql -
Luke> lmysqlclient   -lsocket -lnsl
Luke> ./gen_test_char >test_char.h
Luke> ./gen_test_char: fatal: open failed: No such file
Luke> or directory
Luke> Killed
Luke> gmake[1]: *** [test_char.h] Error 137
Luke> gmake[1]: Leaving directory `/public/install/apache_1.3.4/src/main'
Luke> gmake: *** [subdirs] Error 1

Luke> I have searched through the mail archives for the past few days.
Luke> I don't know how to get apache to recognise this file.

Luke> Can anyone help ?


Fixes (one of):

- Link with -Wl,r/full-path/

- Move* to /usr/lib
- Reconfigure MySQL with: ./configure --disable-shared
  (This will compile MySQL without shared libraries).

Linking to apache on Solaris 2.6Luke Kelty28 Mar
  • Linking to apache on Solaris 2.6Michael Widenius29 Mar