Mailing List Archive



Back to the month index Back to the list index

Keresztfalvi Laszlo (kereszt@tas.vein.hu)
Wed, 2 Apr 1997 10:40:15 +0200 (MET DST)


Date: Wed, 2 Apr 1997 10:40:15 +0200 (MET DST)
From: Keresztfalvi Laszlo <kereszt@tas.vein.hu>
Subject: Re: [mSQL] !! Error in Solaris's libc !!
Message-Id: <Pine.LNX.3.94.970402102150.7829A-100000@tas.vein.hu>

        Hi All!

On Tue, 25 Mar 1997, Hiram Rincon Picos wrote:
> At 11:14 AM 26/03/97 +0100, you wrote:
> >At 16.25 24/03/97 -0700, you wrote:
> >>hi all :
> >>
> >>when i try to droop a database, the mSQL say :
> >>
> >>mSQL command failed!
> >>Server Error = Error Drooping database
> >>
> >>I need a help.
> >>
> >>I have : Sparc 10, Sun Solaris 2.3, mSQL 2.0 B4

> the command is : msqladmin drop procite
> the database name is : procite
> when i type the relshow command, first two character of database name are
> loosing, exam. the name procite are appear ocite.

We have a SunOS 5.2 (Solaris) too. I've found this problem when I've
compiled a BBS software... If the code uses readdir() then it will get the
filenames only from the 2nd character !!! The BUG is that the Sun's cc
compiler uses the default libs from /usr/ucblib.

Set this options when you link the code, this will eliminate the problem:
cc <everything like it is> -L/usr/lib -lc <other lib parameters (-l...)>

This is because the readdir() exists in the default lib: libc. But the
original libc is buggy :)

You will get a warning that you link some lib twice.... but this is not an
error ;) and the binary will be fine!

        This will help!
          (I hope :)
            Kereszt

PS: You can spend a lot of time to solve this bug from NULL ;) ... so tell
this to your friends using Solaris!

--------------------------------------------------------------------------
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!