Mailing List Archive



Back to the month index Back to the list index

Billy G. Allie (ballie01@bgalli.mug.org)
Thu, 10 Apr 1997 23:23:27 -0400


Message-Id: <m0wFWvw-0009bCC@bgalli.mug.org>
Subject: Re: [mSQL] msql 2 - Installing woes - Solaris 2.3 or Linux 1.2.13 
Date: Thu, 10 Apr 1997 23:23:27 -0400
From: "Billy G. Allie" <ballie01@bgalli.mug.org>

> Hi All
>
> I am trying to get the mSQL 2 running on either of two machines ...
>
> Solaris 2.3 ... using native Solaris cc or gcc 2.5.8
>
> I get the following error after during the make all after setup ...
>
>
> gcc -O -I../ -DHAVE_CONFIG_H -DHAVE_SSIZE_T -DHAVE_U_INT
> -DINST_DIR='"/usr/local/Hughes"' -c mod_std.c
> mod_std.c: In function `doRandom':
> mod_std.c:1786: too few arguments to function `srand'
> mod_std.c:1786: void value not ignored as it ought to be
> *** Error code 1
> make: Fatal error: Command failed for target `mod_std.o'
> Current working directory
> /u/steve/ftp/msql-2.0-B5/targets/Solaris-2.3-Sparc/lang-common
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> Current working directory
> /u/steve/ftp/msql-2.0-B5/targets/Solaris-2.3-Sparc/lang-common
> *** Error code 1
> make: Fatal error: Command failed for target `all'
> Current working directory /u/steve/ftp/msql-2.0-B5/targets/Solaris-2.3-Sparc
> *** Error code 1
> make: Fatal error: Command failed for target `all'

The following patch will fix the problem with solaris (or any other SVR4
system).

In the file 'src/common/portability.h', make the following change:

44c44
< # define random srand

---
> #  define     random          rand

-------------------------------------------------------------------------- To remove yourself from the Mini SQL mailing list send a message containing "unsubscribe" to "unsubscribe" to msql-list-request@bunyip.com. Send a message containing "info msql-list" to majordomo@bunyip.com for info on monthly archives of the list. For more help, mail owner-msql-list@bunyip.com NOT the msql-list!