pro64-support
[Top] [All Lists]

Re: Undefined symbols

To: pro64-support@xxxxxxxxxxx, Uros Prestor <uros@xxxxxxxxxxxxxx>
Subject: Re: Undefined symbols
From: mpm@xxxxxxxxxxxxxxxxx (Michael Murphy)
Date: Thu, 19 Oct 2000 18:18:29 -0700 (PDT)
Sender: owner-pro64-support@xxxxxxxxxxx
I am able to reproduce this with the following small test:
     extern int dcache_lock;

     static __inline__ void d_drop(int * dentry)
     {
             (void)( &dcache_lock ) ;
             printf("dentry %d %d", dentry, dcache_lock);
     }

main()
{
        printf("hi");
}

The problem occurs because of the -g.  If you don't compile
with -g then it links okay.  But our debug-generation code
is trying to create a dwarf reference to dcache_lock, 
which is never defined.
-- Mike Murphy
-- mpm@xxxxxxx
-- quote of the day:
--  "Don't pick on people, jump on their failures, criticize their faults,
--   unless, of course, you want the same treatment.  Be easy on people;
--   you'll find life a lot easier."  (Eugene Peterson)

<Prev in Thread] Current Thread [Next in Thread>