Shared libraries linker error?

Hans Buurman mcvax!duttnph!hans at uunet.uu.net
Sat Jan 28 13:14:24 AEST 1989


One user on a Sun 3/60 that has recently been upgraded to SunOS 4.0 was
complaining about a function dumping core that should not have been used
at all. It turned out that he had a function called select() in his
program.

One of the SunView routines he called (to initialize a panel) also used a
function called select(), which is in ndet_select.o in libsunwindow.a.  It
looks like the compiler had linked the sunwindow calls to select() to his
own program.

Now there is also a select() in libc.a (select.o). Why isn't that one
involved? Although to me it is clear which one is referred to in what
place, what rules does the linker use ?

Could somebody out there
a) tell me which rules the linker uses ?
b) guess where Sun screwed up ?

Thanks in advance,

	Hans

Disclaimer: any opinions above are my own.

Hans Buurman                   | hans at duttnph.UUCP
Pattern Recognition Group      | mcvax!hp4nl!dutrun!duttnph!hans
Faculty of Applied Physics     | tel. 31 - (0) 15 - 78 46 94
Delft University of Technology |



More information about the Comp.sys.sun mailing list