Re: 64-bit SGI xforms (fwd)

Christopher Harrop (harrop@radon.cs.uoregon.edu)
Tue, 29 Apr 1997 12:07:03 -0700 (PDT)

To subscribers of the xforms list from Christopher Harrop <harrop@radon.cs.uoregon.edu> :

> >I tried the 32-bit library again many times more (not sure which version)
> >and it works. I can't get it to crash at all.
>
> Thanks for the info. I will test a bit more and hopefully
> will be able to reproduce it. A couple of questions:
> does the 64-bit fdesign run ok ? Also can you do an
> elfdump -Dl on your executable and see where it is
> getting the library.

Ok, I just realized that I've been using the 32-bit fdesign to make the
forms and then linking with 64-bit libforms. I have now tried the 64-bit
version and I have not experienced any problems with it, other than once
when my screen saver (standard one that SGIs come with) clobbered it and I
had to "kill -9" it. Also, I have resaved my form with the 64-bit fdesign
and recompiled everything. It still crashes.

Here is the stuff you wanted (plus a little more)

geos [framework/src/nexus] 66 % elfdump -Dl xformtest

xformtest:

**** MIPS LIBLIST INFORMATION ****
.liblist :
[INDEX] Timestamp Checksum Flags Name
Version
[1] Apr 22 10:43:48 1997 0xed8be3 ----- libX11.so.1
sgi1.0
[2] Apr 22 10:43:48 1997 0xdfaae999 ----- libm.so sgi1.0
[3] Apr 22 10:43:48 1997 0x66dcc5ee ----- libc.so.1
sgi1.0
geos [framework/src/nexus] 67 %

************************************************************************
Why doesn't libforms show up here? Especially since I compiled it with:
************************************************************************

geos [framework/src/nexus] 63 % make clean
rm -f *.o *~ core c_test fortran_test xformtest libtierra.a
geos [framework/src/nexus] 64 % make xformtest
cc -64 -c -O3 tierraForm.c -I/research/power/harrop/xforms/FORMS
cc -64 -c -O3 xformtest.c -I/research/power/harrop/xforms/FORMS
-o xformtest.o
cc -64 -c -O3 tierraForm_cb.c
-I/research/power/harrop/xforms/FORMS
cc -64 -O3 xformtest.o tierraForm.o tierraForm_cb.o
-L/research/power/harrop/xforms/FORMS -lforms -lX11 -lm -o xformtest

Note that xforms is installed in my own directory at
/research/power/harrop/xforms. This doesn't matter does it?

I'm somewhat new to xforms, so I thought I'd include the main routine here
in case there's something really stupid I'm doing. The
create_form_TierraCtrl() is created by fdesign and I have not modified it.

int main(int argc,char** argv)

{
FD_TierraCtrl *ctrlForm;
FL_OBJECT* obj;

fl_initialize(&argc,
argv,
NULL,
0,
0);

ctrlForm = create_form_TierraCtrl();

fl_set_object_label(ctrlForm->serverURL, "hello");
fl_show_form(ctrlForm->TierraCtrl,
FL_PLACE_MOUSE,
FL_FULLBORDER,
"TIERRA Control Panel");

while (1) {
obj = fl_do_forms();
}

}

Chris
-----------------------------------------------------------
Chris Harrop University of Oregon
PhD Student Computer Science Dept
harrop@cs.uoregon.edu Eugene, OR 97403
http://www.cs.uoregon.edu/~harrop/ 541-346-0892

"If you don't have time to do it right, you sure as hell
don't have time to do it over!" -- Richard Winkler

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/xforms-archive/