ld warning

Martin Serrer SERRER at ODIN.NRC.CA
Wed Jun 12 00:34:00 AEST 1991


Hello again,

  Thanks to 'davea at sgi.com' and 'jason at dsd.es.com' for your replies to my query
about the ld warning. Getting rid of the variable stat solved the problem.

  What I don't understand is:
a. why ld didn't complain about this earlier (I wrote the module containing the
'stat' referrences a long time ago, and have used it without hitch.)
b. why when I comment out the line with the call to fl_show_file_selector the
warning goes away, and all the code works.

  Thanks again... Martin


-------------------------start of original posting----------------------------

  I want to replace the 'fl_show_input' gadget with the 'fl_show_file_selector'
gadget as you can see in the code below but ld gives a Warning that I don't
understand. I've been using the 'fl_show_file_selector' gadget successfully in
other code. I'd RTFM if I could find the appropriate section.

--------------------------begin code fragment---------------------------------
void cb_changeModel(obj,dummy)
FL_OBJECT *obj;
long dummy;
{
  char *txx;
        startStop_state = FALSE;
        initModel(Model);

/*      strcpy( Model->modelfile, fl_show_input("Model file :","")); */
        txx = fl_show_file_selector("Select MODEL file:", "./", "*.model", "");
        strcpy( Model->modelfile, txx);
-----------------------------end code fragment--------------------------------
-----------------------------begin ld messages--------------------------------
thor:/usr/people/serrer/mas/odl % make
        cc -s mas.o -o mas ODL.a /usr/local/lib/libforms.a -lfm_s -lsphere
-lgl_s -lc_s -lm -lmalloc
/usr/bin/ld:
Warning: jump relocation out-of-range, bad object file produced, can't jump
from 0x4098c0 to 0x1000326c (stat)
Warning: jump relocation out-of-range, bad object file produced, can't jump
from 0x409c60 to 0x1000326c (stat)
Warning: jump relocation out-of-range, bad object file produced, can't jump
from 0x41c7d0 to 0x1000326c (stat)
Warning: jump relocation out-of-range, bad object file produced, can't jump
from 0x41c820 to 0x1000326c (stat)
-------------------------------end ld messages---------------------------------






More information about the Comp.sys.sgi mailing list