Jaroslav Joska | 18 Jul 23:54

SQLClient don't create MySQL bundle

Hi,
I am really new in Objective C. I have php form and MySQL database on my 
laptop. (FreeBSD 6.3, MySQL5). I am trying to build an application
in GNUstep which will be do the same like php form.  I downloaded 
SQLClient and in first I didn't noticed this report:

# ./configure --enable-mysql-bundle --disable-postgres-bundle 
--disable-jni-bundle --disable-sqllite-bundle
checking if Jdbc support was manually disabled... no: build if possible
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
(Continue reading)

Charles philip Chan | 19 Jul 00:15
X-Face

Re: SQLClient don't create MySQL bundle

Jaroslav Joska <jaroslav.joska <at> email.cz> writes:

> I can't create MySQL bundle which I need to access a MySQL
> database. This is my application error log after installation
> SQLClient without making MySQL bundle:

Check your config.log

Charles
_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep <at> gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep
Nicola Pero | 19 Jul 11:38

RE: SQLClient don't create MySQL bundle

Hi Jaroslav,

thanks for your report.  Sorry it didn't work.  I looked at your configure output 
and I'm a bit confused (eg, if you disabled jni, why is it looking for the jni 
headers ?).  I wonder if maybe you have edited the configure script to get it working ?

I suggest the following:

 * download SQLClient again.  Do not edit anything.

 * Use the following configure:

./configure --enable-mysql-bundle --with-additional-include=/usr/local/include --with-additional-lib=/usr/local/lib

then check the results (you're obviously looking for the MySQL bundle being built;
ignore anything else).  If it couldn't find the MySQL headers/libs, please try
again changing the '--with-additional-include / --with-additional-lib' to match
the location of your MySQL libs ... until they're found and used :-)

 * I hope that works. :-)  If it still doesn't work, please send us as much
information as you can --

 - the version of SQLClient you're using
 - where your mysql headers/libs are located
 - what ./configure command you're using
 - the output of ./configure
 - your config.log file

and we'll look at it

(Continue reading)

jaroslav.joska | 19 Jul 13:24

RE: SQLClient don't create MySQL bundle

Hi Nicola, 
thanks for your help, but I have bad news. I checked config.log and it seems that 
mysql files SQLClient can't recognized. 

My software version:
- mysql-client-5.1.23 Multithreaded SQL database (client) (install from ports)
- mysql-server-5.1.23 Multithreaded SQL database (server)
- SQLClient 1.3.0 (I tried 1.2.0 version - the same error)

Command output:
#./configure --enable-mysql-bundle --with-additional-include=/usr/local/include/mysql/ --with-additional-lib=/usr/local/lib/mysql/
;(with ./configure --enable-mysql-bundle --with-additional-include=/usr/local/include/
--with-additional-lib=/usr/local/lib/ the same 
error output)
checking if Jdbc support was manually disabled... no: build if possible
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

#ls -l /usr/local/include/mysql/
total 384
-r--r--r--  1 root  wheel   4058 Jun 10 20:51 decimal.h
-r--r--r--  1 root  wheel   3801 Jun 10 20:51 errmsg.h
-r--r--r--  1 root  wheel   6954 Jun 10 20:51 keycache.h
-r--r--r--  1 root  wheel  22542 Jun 10 20:51 m_ctype.h
-r--r--r--  1 root  wheel   8162 Jun 10 20:51 m_string.h
-r--r--r--  1 root  wheel   1804 Jun 10 20:51 my_alloc.h
-r--r--r--  1 root  wheel   1941 Jun 10 20:51 my_attribute.h
-r--r--r--  1 root  wheel  33388 Jun 10 20:51 my_config.h
-r--r--r--  1 root  wheel   4547 Jun 10 20:51 my_dbug.h
(Continue reading)

Nicola Pero | 19 Jul 13:41

RE: SQLClient don't create MySQL bundle


> Command output:
> #./configure --enable-mysql-bundle --with-additional-include=/usr/local/include/mysql/ > --with-additional-lib=/usr/local/lib/mysql/

Thanks - try with

./configure --enable-mysql-bundle \
            --with-additional-include=-I/usr/local/include/ \
            --with-additional-lib=-L/usr/local/lib/mysql/

(notice adding -I and -L)

Let me know how it goes

Thanks
jaroslav.joska | 19 Jul 15:12

RE: SQLClient don't create MySQL bundle

Hi Nicola!

I would like to say you THANK YOU. I used your advice, changed GNUmakefile on line with 
BUNDLE_INSTALL_DIR=$(GNUSTEP_INSTALLATION_DIR)/Library/Bundles/SQLClient
to
BUNDLE_INSTALL_DIR=/usr/GNUstep/Local/Library/Bundles/SQLClient 
and it work's.

Best regards, Jozin

> > Command output:
> > #./configure --enable-mysql-bundle
> --with-additional-include=/usr/local/include/mysql/ >
> --with-additional-lib=/usr/local/lib/mysql/
> 
> Thanks - try with
> 
> ./configure --enable-mysql-bundle \
>             --with-additional-include=-I/usr/local/include/ \
>             --with-additional-lib=-L/usr/local/lib/mysql/
> 
> (notice adding -I and -L)
> 
> Let me know how it goes
> 
> Thanks
> 
> 
> 
> 
(Continue reading)

Nicola Pero | 19 Jul 15:41

RE: SQLClient don't create MySQL bundle

Great :-)

I'm happy it works.  I improved the documentation for SQLClient's configure
script in trunk, so that hopefully it will be easier for people to find how to use
the --with-additional-include and --with-additional-lib options. :-)

Thanks

-----Original Message-----
From: jaroslav.joska <at> email.cz
Sent: Saturday, 19 July, 2008 15:12
To: nicola.pero <at> meta-innovation.com
Cc: discuss-gnustep <at> gnu.org
Subject: RE: SQLClient don't create MySQL bundle

Hi Nicola!

I would like to say you THANK YOU. I used your advice, changed GNUmakefile on line with 
BUNDLE_INSTALL_DIR=$(GNUSTEP_INSTALLATION_DIR)/Library/Bundles/SQLClient
to
BUNDLE_INSTALL_DIR=/usr/GNUstep/Local/Library/Bundles/SQLClient 
and it work's.

Best regards, Jozin

> > Command output:
> > #./configure --enable-mysql-bundle
> --with-additional-include=/usr/local/include/mysql/ >
> --with-additional-lib=/usr/local/lib/mysql/
> 
(Continue reading)


Gmane