Opened 18 years ago
Closed 18 years ago
#1062 closed enhancement (needinfo)
IPP-2.4-cr0 doesn't find mysql lib and include directories even though mysql_config works
| Reported by: | Owned by: | eugene | |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | psconfig | Version: | 2.4 |
| Severity: | minor | Keywords: | |
| Cc: |
Description
We have mysql installed in a directory with a funky name, which is correctly returned my mysql_config. mysql_config is called by configure:
checking for mysql_config... /usr/local/mysql-5.1.19-beta-osx10.4-i686/binmysql_config
checking for MySQL libraries... yes
checking if MySQL version is >= 4.1.2... yes
However, psDB.c gets compiled with pointers to a different include directory
/usr/local/mysql/include/mysql/
which don't exist, resulting in compile failure:
creating libpslibastro.la
(cd .libs && rm -f libpslibastro.la && ln -s ../libpslibastro.la libpslibastro.la)
Making all in db
/bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -I../../src -I../../src/sys -I../../src/astro -I../../src/db -I../../src/fft -I../../src/fits -I../../src/imageops -I../../src/jpeg -I../../src/math -I../../src/mathtypes -I../../src/types -D_THREAD_SAFE -I/usr/local/mysql/include/mysql -Os -arch i386 -fno-common -DHAVE_PSDB -I/usr/local/include -I/usr/local/mysql/include/mysql -Os -arch i386 -fno-common -pipe -O0 -g -Wall -Werror -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L -MT libpslibdb_la-psDB.lo -MD -MP -MF .deps/libpslibdb_la-psDB.Tpo -c -o libpslibdb_la-psDB.lo test -f 'psDB.c' || echo './'psDB.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../src -I../../src -I../../src/sys -I../../src/astro -I../../src/db -I../../src/fft -I../../src/fits -I../../src/imageops -I../../src/jpeg -I../../src/math -I../../src/mathtypes -I../../src/types -D_THREAD_SAFE -I/usr/local/mysql/include/mysql -Os -arch i386 -fno-common -DHAVE_PSDB -I/usr/local/include -I/usr/local/mysql/include/mysql -Os -arch i386 -fno-common -pipe -O0 -g -Wall -Werror -D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=200112L -MT libpslibdb_la-psDB.lo -MD -MP -MF .deps/libpslibdb_la-psDB.Tpo -c psDB.c -fno-common -DPIC -o .libs/libpslibdb_la-psDB.o
psDB.c:45:19: error: mysql.h: No such file or directory
psDB.c:46:43: error: mysql_com.h: No such file or directory
etc.
I had created /usr/local/mysql as a softlink to the actual install location of mysql earlier, but I only got this to compile by adding a mysql subdirectory and linking the libraries/headers in both /usr/local/mysql/{lib,include} .
I started the compilation with psbuild -rebuild ipp-2.4 - maybe there was a different way that would have re-generated the -I arguments?
Change History (2)
comment:1 by , 18 years ago
| Version: | unspecified → 2.4 |
|---|
comment:2 by , 18 years ago
| Cc: | added |
|---|---|
| Resolution: | → needinfo |
| Status: | new → closed |

is this still an issue?