Re: [netatalk-admins] Solaris compilation problem w/ asun2.0a17.2 + AFS


Subject: Re: [netatalk-admins] Solaris compilation problem w/ asun2.0a17.2 + AFS
From: Randall S. Winchester (rsw@Glue.umd.edu)
Date: Thu Dec 11 1997 - 14:04:40 EST


I agree with what you are saying, however please note that I said;
"-lc -lucb"
It is important for others to understand the importance of this for those
times when there is no other option. You *always* want to include libc
before libucb,libBSD,libbsd,etc (Whatever your OS calles this library).
Linking with -lc *before* -lucb keeps one from getting wrong functions (The
signal() call is common problem) linked in to ones code.

Heck with Solaris 2.4 you had to link with "-lc -lucb" just to get bcopy()
bcmp() and bzero(). (I just used a #define to call the mem* equivelents,
however...)

Thus to summarize;
ucblibs are evil, evil, evil...

But if you must use them, make sure you look at libc first;
link with "-lc -lucb"

If that does not work;
You probably do not want the software.

Randall

On Thu, 11 Dec 1997, Thomas Tornblom wrote:

: >
: > Try adding " -lc -L/usr/ucblib -lucb" just after -lsocket -lnsl -lwrap.
: > At our site the first thing we do when we get a new Solaris release is;
: > "cd /usr/lib;ln -s ../ucblib/libucb* ." and the we use "-lc -lucb" at the
: > end of every piece of code that uses AFS on Solaris. Too much of AFS is
: > still based on "BSD 4.2 C". There have been requests to Transarc to update
: > their code to a more POSIX implementation.....
: >
:
: >Shudder<
:
: Read after me:
:
: ucblibs are evil, evil, evil...
:
: Applications that doesn't compile without resorting to the ucblibs should either
: be rewritten or ditched!
:
: There are so many gotchas and mismatches between the standard libraries/include
: files and the ucb stuff that is almost impossible to successfully get things to
: work with them.
:
: The type "DIR" in <dirent.h> and <sys/dir.h> is the first thing that comes to
: mind, although it seems they are mostly fixed in 2.6.
:
: > Randall
: >
:
: Thomas
:
: Real life: Thomas Törnblom Email: Thomas.Tornblom@Hax.SE
: Snail mail: HB Hax Phone: +46 18 290 290
: Banvallsvägen 14 Fax: +46 18 290 291
: S - 754 40 Uppsala, Sweden Cellular: +46 708 323118
:
:



This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:28:27 EST