Mailing List Archive



Back to the month index Back to the list index

Frank D. Cringle (fdc@cliwe.ping.de)
02 Apr 1997 17:49:56 +0200


Subject: Re: [mSQL] !! Error in Solaris's libc !!
From: fdc@cliwe.ping.de (Frank D. Cringle)
Date: 02 Apr 1997 17:49:56 +0200
Message-Id: <vtpvwdv2zf.fsf@cliwe.ping.de>

Keresztfalvi Laszlo <kereszt@tas.vein.hu> writes:
>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.

Sun's cc does what you tell it to do. You are going about this the
wrong way.

The standard way to avoid this problem is to avoid the ucb stuff.
Remove all directories that have ucb in their name from your PATH,
LD_LIBRARY_PATH (which should not be defined at all) and from the
Makefile.

If you are trying to compile a piece of software that is irrevocably
BSD-centric, tell the compiler what you want. I am not familiar with
Sun's compiler, but with gcc you give it the option -compat-bsd. It
will then consistently use the bsd include files when compiling and
the bsd libc when linking.

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

Tell your friends to read Casper's fine Solaris-FAQ. It is all in
there.

-- 
Frank Cringle,      fdc@cliwe.ping.de
voice: (+49 2304) 467101; fax: 943357
--------------------------------------------------------------------------
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!