jaehyung@ECN.PURDUE.EDU (Jaehyung Yang) (05/03/91)
Hi, I tried to install Interview 2.6 on a sun3/os 4.0.3 using g++ 1.36.1. I #defined CplusplusCcCmd and Use_g_plusplus in IVlocal.def and upto compiling it seemed to work out. But I got error message "segmentation fault" when I tried to test some application like idraw. The only applications that work are dclock and logo. Did I missed some steps? I am really new to this stuff. and any comment will be helpful.
sri@milton.u.washington.edu (Kandiah Sribalaskandarajah) (05/14/91)
I am trying to create an application specific editor, using Unidraw library. I am getting the following error while linking. Can someone let me know, what additional libraries I should include? (I am using AT&T c++ 2.0 compiler) Thanks. ---------- CC -o soil soil.o soileditor.o soilcreator.o \ /u1129/sri/InterViews/lib/libUnidraw.a \ /u1129/sri/InterViews/lib/libIV-X11.a \ /u1129/sri/InterViews/lib/libDispatch.a \ /u1129/sri/InterViews/lib/libIV-look.a \ /u1129/sri/InterViews/lib/libOS.a \ /u1129/sri/InterViews/lib/libgraphic.a \ /u1129/sri/InterViews/lib/libInterViews.a /usr/lib/libX11.a -lm undefined first referenced symbol in file _XShapeQueryExtensio /u1129/sri/InterViews/lib/libIV-X11.a ___ct__11dpIOHandler /u1129/sri/InterViews/lib/libInterViews.a _instance__12dpDispa /u1129/sri/InterViews/lib/libInterViews.a ___dt__11dpIOHandler /u1129/sri/InterViews/lib/libInterViews.a ld fatal: Symbol referencing errors. No output written to soil *** Error code 13 Stop. ---- sri -- ----- Kandiah Sribalaskandarajah email : sri@u.washington.edu
juando@cnm.us.es (05/15/91)
>I am trying to create an application specific editor, using Unidraw >library. I am getting the following error while linking. Can someone >let me know, what additional libraries I should include? >(I am using AT&T c++ 2.0 compiler) > >Thanks. >---------- > CC -o soil soil.o soileditor.o soilcreator.o \ > /u1129/sri/InterViews/lib/libUnidraw.a \ > /u1129/sri/InterViews/lib/libIV-X11.a \ > /u1129/sri/InterViews/lib/libDispatch.a \ > /u1129/sri/InterViews/lib/libIV-look.a \ > /u1129/sri/InterViews/lib/libOS.a \ > /u1129/sri/InterViews/lib/libgraphic.a \ > /u1129/sri/InterViews/lib/libInterViews.a /usr/lib/libX11.a -lm >undefined first referenced > symbol in file >_XShapeQueryExtensio /u1129/sri/InterViews/lib/libIV-X11.a >___ct__11dpIOHandler /u1129/sri/InterViews/lib/libInterViews.a >_instance__12dpDispa /u1129/sri/InterViews/lib/libInterViews.a >___dt__11dpIOHandler /u1129/sri/InterViews/lib/libInterViews.a >ld fatal: Symbol referencing errors. No output written to soil Using nm(1) I've seen that: _XShapeQueryExtensio ... Is defined in /usr/lib/libXext.a which you did not include. The rest of the symbols seem to be defined in libDispatch. The problem might be related to the order in which they are included. When ld looks into libDispatch it may find nothing interesting, the symbols might be required by a library which is included later, but it will not go back to libDispatch. Libraries should be included from highest to lowest level. The order I would suggest is: libUnidraw.a libIV-look.a libgraphic.a libInterViews.a libIV-X11.a libDispatch.a libOS.a libXext.a libX11.a -lm In fact I think the symbols which seem not to be defined are required by libInterViews which you included after libDispatch, so placing libDispatch after libInterViews will probably be enough. By the way, are you using Imakefiles?. If you are not maybe you can try and see if that makes things easier, but if you are there is something to check somewhere either in the Imakefile or in InterViews distribution. Juan. juando@cnm.us.es
linton@marktwain.rad.sgi.com (Mark Linton) (05/15/91)
In article <1991May14.165145.3274@milton.u.washington.edu>, sri@milton.u.washington.edu (Kandiah Sribalaskandarajah) writes: |> I am trying to create an application specific editor, using Unidraw |> library. I am getting the following error while linking. Can someone |> let me know, what additional libraries I should include? |> (I am using AT&T c++ 2.0 compiler) |> |> Thanks. |> ---------- |> CC -o soil soil.o soileditor.o soilcreator.o \ |> /u1129/sri/InterViews/lib/libUnidraw.a \ |> /u1129/sri/InterViews/lib/libIV-X11.a \ |> /u1129/sri/InterViews/lib/libDispatch.a \ |> /u1129/sri/InterViews/lib/libIV-look.a \ |> /u1129/sri/InterViews/lib/libOS.a \ |> /u1129/sri/InterViews/lib/libgraphic.a \ |> /u1129/sri/InterViews/lib/libInterViews.a /usr/lib/libX11.a -lm |> undefined first referenced |> symbol in file |> _XShapeQueryExtensio /u1129/sri/InterViews/lib/libIV-X11.a |> ___ct__11dpIOHandler /u1129/sri/InterViews/lib/libInterViews.a |> _instance__12dpDispa /u1129/sri/InterViews/lib/libInterViews.a |> ___dt__11dpIOHandler /u1129/sri/InterViews/lib/libInterViews.a |> ld fatal: Symbol referencing errors. No output written to soil |> *** Error code 13 These libraries aren't in the right order and you aren't including Xext. If you use imake, you should get the correct library list. Otherwise, you need to look at the templates that imake would use and enter the same libraries manually.