This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

3.0.4 (64bit) on SunOS 5.8 sparc - sys_errlist undefined


        Several programs (tcp wrappers, qpopper and others) I have
tried compiling are giving me this:

Undefined                       first referenced
 symbol                             in file
sys_errlist                         /var/tmp/ccMv2vDb.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status

        This simple program also generates the error, compiled simply
with "gcc x.c"

----------------------------------------------------------------------
x.c:
----------------------------------------------------------------------
extern char *sys_errlist[];

main()
{
        int a;

        if (sys_errlist[0][0] == 'c') a=1;
}
----------------------------------------------------------------------

        I give up. This did not happen with older version of gcc...

        What am I not getting' here?

Brian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]