--- Begin Message ---
-----FW: X problems in Slink-----
Date: Wed, 02 Jun 1999 13:10:46 -0700 (MST)
From: harsh@lanl.gov
To: debian-user@lists.debian.org
Subject: X problems in Slink
Hi,
I've been having problems with my system, It's a long story
bugut to make it short I have a new mother board and have installed
Slink on a freshly partioned drive. Every thing I've tested so far works
except my routines that use Lesstif. I stripped the code to a minimun to
demostrate the problem, compiled and run it on a Dec Alpha to verify it
runs correctly, or at least OK. But on my Machine ( a K6=3 400, 256M of memory)
it segfaults.
Here are the details ( sorry for the length, I wanted to include enough
so you can see what is happening)
bash-2.01$ make test1
egcc -o test1 -I/usr/include -I/usr/X11R6/include -I/usr/X11R6/include/X11
-L/usr/X11R6/lib -lMesaGL -lXaw -lXt -lXm -lXext -l
X11 -lm test1.c
bash-2.01$ test1
before toplevel2 0
after toplevel2 134567448
Segmentation fault
bash-2.01$ ldd test1
libMesaGL.so.3 => /usr/lib/libMesaGL.so.3 (0x4000f000)
libXaw.so.6 => /usr/X11R6/lib/Xaw3d/libXaw.so.6 (0x400f4000)
libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40149000)
libXm.so.1 => /usr/X11R6/lib/libXm.so.1 (0x40191000)
libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4029f000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x402ab000)
libm.so.6 => /lib/libm.so.6 (0x4034e000)
libc.so.6 => /lib/libc.so.6 (0x40367000)
libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x4040c000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x4041e000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40427000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
bash-2.01$ egcc -v
Reading specs from /usr/lib/gcc-lib/i486-linux/egcs-2.91.60/specs
gcc version egcs-2.91.60 Debian 2.1 (egcs-1.1.1 release)
bash-2.01$ cat test1.c
/*****************************************
*
*
*
******************************************************/
#include <stdio.h>
#include <X11/Intrinsic.h>
#include <Xm/Xm.h>
#include <Xm/ArrowB.h>
#include <Xm/Label.h>
#include <Xm/BulletinB.h>
#include <Xm/Form.h>
#include <X11/Shell.h>
int main(int argc, char *argv[])
{
XtAppContext app;
Widget toplevel,
toplevel2,
form,
label,
vtk;
Arg args[4];
int c,n;
toplevel = XtVaAppInitialize(&app, "vis Window", NULL,0,&argc, argv,
NULL,NULL, 0);
toplevel2 = 0;
printf("before toplevel2 %d \n",toplevel2);
toplevel2 = XtCreateManagedWidget("Display",topLevelShellWidgetClass,
toplevel, NULL, 0);
printf("after toplevel2 %d \n",toplevel2);
form = XtVaCreateManagedWidget("form",xmFormWidgetClass, toplevel2,
NULL);
printf("after form\n");
vtk = XtVaCreateManagedWidget( "vtk", xmBulletinBoardWidgetClass,
form,
XmNwidth, 500,
XmNheight, 500,
NULL);
label = XtVaCreateManagedWidget("label_text", xmLabelWidgetClass,
vtk,
XmNleftAttachment, XmATTACH_FORM,
XmNtopAttachment, XmATTACH_FORM,
NULL);
XtRealizeWidget(toplevel);
XtAppMainLoop(app);
exit(0);
}
---------------------------------------------
Jim Harsh E-Mail: harsh@lanl.gov
Los Alamos National Laboratory, MS P940
Los Alamos, NM 87545
505-665-0485, FAX - 505-665-3359
Date: 02-Jun-99,Time: 13:10:46
---------------------------------------------
--------------End of forwarded message-------------------------
---------------------------------------------
Jim Harsh E-Mail: harsh@lanl.gov
Los Alamos National Laboratory, MS P940
Los Alamos, NM 87545
505-665-0485, FAX - 505-665-3359
Date: 03-Jun-99,Time: 07:33:27
---------------------------------------------
--- End Message ---