ld: fatal error

dear all ,

iam trying to compile a progam using gcc compiler on a sun 280 R machine running solaris 9 .

iam getting an error in the last step when the compiler tries to link the objects , although the compiler executes some applicarions that contains no objects smoothly,

the error that iam getting is :

Undefined first referenced
symbol in file
dlerror /usr/lib/libnsl.a(netdir.o) (symbol belongs to implicit dependency /usr/lib/libdl.so.1)
dlclose /usr/lib/libnsl.a(netdir.o) (symbol belongs to implicit dependency /usr/lib/libdl.so.1)
dlsym /usr/lib/libnsl.a(nis_misc_proc.o) (symbol belongs to implicit dependency /usr/lib/libdl
.so.1)
dlopen /usr/lib/libnsl.a(nis_misc_proc.o) (symbol belongs to implicit dependency /usr/lib/libdl
.so.1)
ld: fatal: Symbol referencing errors. No output written to ../bld/seq/mmlmain
collect2: ld returned 1 exit status

thanks in advance for your help .

That error and the resolution are discussed here.