Re: Wierd CVS Build problem with libmysql

From: Date: Mon, 06 Nov 2000 19:48:09 +0000
Subject: Re: Wierd CVS Build problem with libmysql
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-37288@lists.php.net to get a copy of this message
Here is a copy of the make error when compiled with SUN cc version 5.0 for Solaris 2.7 sparc. "./my_sys.h", line 459: undefined or not a type: RETQSORTTYPE "./my_sys.h", line 459: syntax error before or at: qsort2 "./my_sys.h", line 460: warning: old-style declaration or incorrect type for: qsort2 cc: acomp failed for libmysql.c make: Fatal error: Command failed for target `libmysql.lo' Current working directory /nfs/archive/source/custom-builds/webhosting/webhosting_v2/webbuild/php4/ext/mysql/libmysql make: Fatal error: Command failed for target `all-recursive' Are the qsort2 functions necessary? -Jason ----- Original Message ----- From: "Michael Widenius" <monty@mysql.com> To: <zeev@zend.com>; <tim@mysql.com> Cc: "Jason Greene" <jason@inetgurus.net>; <php-dev@lists.php.net> Sent: Sunday, November 05, 2000 11:28 PM Subject: Re: [PHP-DEV] Wierd CVS Build problem with libmysql > > Hi! > > >>>>> "Zeev" == Zeev Suraski <zeev@zend.com> writes: > > Zeev> Yes, I have this problem on a very old Linux box. Not on newer ones > Zeev> though. Monty? > > Zeev> Zeev > > Zeev> At 05:31 03/11/2000, Jason Greene wrote: > >> There is a wierd build problem in libmysql. The process dies at my_sys.h, > >> complaining about the qsort2 definitions. I greped through > >> the sources and found that this is the only file they are referenced in. > >> Commenting them out fixes the build > >> anyone else have this problem? > > It would be nice to know the exact error message. > > We shall take a look at this shortly. > > Another issue: > > We would like to extend the mysql_connect() and mysql_pconnect() with > 2 extra (not required) arguments: > > path-to-config-file and group > > This would allow the php program to access all clients connect options > (like password, user and connect timeout) that the libmysqlclient library > can provide. > > If the first option is given (and is not the empty string), one should call > > mysql_options(&mysql, MYSQL_READ_DEFAULT_FILE, path-to-config-file) > > If the second one is given one should call: > > mysql_options(&mysql, MYSQL_READ_DEFAULT_GROUP, group) > > For example: > > > mysql_pconnect("host","db","","/tmp/my.cnf","php"); > > Would read the [php] and [client] group sections from the > /tmp/my.cnf file. > > What do you think about the above? > > Regards, > Monty >

« previous php.dev (#37288) next »