SERRER@ODIN.NRC.CA (Martin Serrer) (06/11/91)
Hello again, Thanks to 'davea@sgi.com' and 'jason@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---------------------------------
marks@AIVAX.RADC.AF.MIL (David Marks) (06/22/91)
Whoa! I must have missed your original posting... A coworker of mine was getting EXACTLY the same error messages; not using spheres though. The solution was to remove a variable named stat from the program? Could you forward the comments from the folks that gave you advice? Thanks Dave Marks Rome Laboratory marks@aivax.radc.af.mil