Missing chkr_check_addr, et al.

Matt Bonner mattb@bpo.hp.com
Fri Apr 14 06:58:00 GMT 2000


Hi,

I have read through every bit of documentation I could find on
www.gnu.org, search hotbot, checked faqs.org, and I can't find
anything on this problem, but it seems so trivial, I hestitate
to call it a bug.  In short: whenever I try to compile with
the -fcheck-memory-usage option, I get messages from the linker
saying that chkr_check_addr, chkr_set_right and sometimes some
other "chkr" functions are missing.  I can't find them in any
library in the GCC directories, either.

System Configuration
--------------------------------------------------------------
Harware:     HP 9000/C110 workstation

uname -smr:  HP-UX hpbpl282 B.10.20 A 9000/777

g++ --v:     gcc version 2.95.1 19990816 (release)

configure:   ??  (Sorry, not sure, it was installed by
		someone else.  I will try to find out.)

We have made no source modifications to the compiler.


Test File:
----------------------------------------------------------------
int main(int argc, char *argv[])
{
        unsigned char *uc;

        uc = new unsigned char[100];

        // Do something, anything...
        for(unsigned char i = 0; i < 100; i++)
                uc[i] = i * 7;

        delete [] uc;

        return 0;
}
-----------------------------------------------------------------


Compile/Link Commands:
-----------------------------------------------------------------
g++ -Wall -c -fcheck-memory-usage  chkrtest.cc -o 700/chkrtest.o
g++ -Wall -fcheck-memory-usage 700/chkrtest.o -o 700/chkrtest
-----------------------------------------------------------------


Compiler output
-----------------------------------------------------------------
/usr/ccs/bin/ld: Unsatisfied symbols:
   chkr_set_right (code)
   chkr_check_addr (code)
collect2: ld returned 1 exit status
*** Error exit code 1
-----------------------------------------------------------------


User response:  eh?  :-)


-- 
Matt Bonner                 |  mailto:mattb@bpo.hp.com
Hewlett-Packard Company     |  Ink-jet Supplies Business Unit, Barcelona


More information about the Gcc-bugs mailing list