home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / alt / lucidem / help / 692 < prev    next >
Encoding:
Internet Message Format  |  1992-11-16  |  4.1 KB

  1. Path: sparky!uunet!airgun!airgun.wg.waii.com!bab
  2. From: bab@se39.wg2.waii.com (Brian Button)
  3. Newsgroups: alt.lucid-emacs.help
  4. Subject: What's the trick to building 19.3 for Sparc2?
  5. Message-ID: <BAB.92Nov16095052@se39.wg2.waii.com>
  6. Date: 16 Nov 92 14:50:52 GMT
  7. Sender: news@airgun.wg.waii.com
  8. Organization: Western Geophysical Exploration Products
  9. Lines: 82
  10. Nntp-Posting-Host: se39.wg2.waii.com
  11.  
  12. There has got to be a trick to building lemacs-19.3 to use Motif on a
  13. Sparc2 :) I'm trying to build it under SunOS4.1.1, using gcc-2.2.2, and
  14. Motif widgets.
  15.  
  16. I start by building lwlib. In the Imakefile, I comment out USE_LUCID, and
  17. define USE_MOTIF. I've tried it with INCLUDE_EXTENSIONS defined and not
  18. defined, setting WHICH_X to /usr/public/X/X11R5. After running xmkmf, I go
  19. into the Makefile and change this to reference gcc rather than cc. 
  20. This includes changing :
  21.  
  22.     CC         = gcc
  23.     CPP         = /usr/lang/SC1.0/cpp
  24.     PREPROCESSCMD     = gcc -E $(STD_CPP_DEFINES)
  25.     ALLINCLUDES    = -I/usr/Navigator/include         \
  26.               -I/home/bab/tmp/gcc-include         \
  27.               $(INCLUDES) $(EXTRA_INCLUDES)     \
  28.               $(TOP_INCLUDES) $(STD_INCLUDES
  29.  
  30. and in the makefile command sections,
  31.  
  32.     CC        = gcc
  33.     WHICH_X        = /usr/public/X/X11R5
  34.  
  35. When I run "gmake clean all", I get a bunch of warnings :
  36.  
  37. lwlib-Xm.c: In function `destroy_all_children':
  38. lwlib-Xm.c:158: warning: passing arg 1 of `XtFree' from incompatible pointer type
  39. lwlib-Xm.c: In function `make_menu_in_widget':
  40. lwlib-Xm.c:371: warning: passing arg 1 of `XtFree' from incompatible pointer type
  41. lwlib-Xm.c: In function `xm_update_menu':
  42. lwlib-Xm.c:459: warning: passing arg 1 of `XtFree' from incompatible pointer type
  43.  
  44. I've looked at these warnings, and they are from passing XtFree a Widget*
  45. instead of a widget. This shouldn't matter, since the object at that address
  46. is a widget anyhow. The warnings are a little disconcerting, though :(
  47.  
  48. After lwlib.a is built, I go up one level to src, and start defining 
  49. config.h. I make these modifications to that file:
  50.  
  51. Comment out the stuff about using GNU_MALLOC.
  52. Use s/s-sunos4.h, m/m-sparc.h
  53. Uncomment #define LWLIB_USES_MOTIF
  54. Uncomment LD_SWITCH_SITE and set it to
  55.   LD_SWITCH_SITE -L/usr/Navigator/lib -L/usr/wgep/mbin/gcc-lib/sparc/2.2.2
  56. Uncomment C_SWITCH_SITE and set it to
  57.   C_SWITCH_SITE -I/usr/Navigator/include -I/home/bab/tmp/gcc-include
  58. (gcc-include is a directory build with fix-includes)
  59.  
  60. Then I run gmake clean all, and I get the following warnings:
  61.  
  62. event-Xt.c: In function `emacs_Xt_select_process':
  63. event-Xt.c:1290: warning: passing arg 3 of `XtAppAddInput' makes pointer from integer without a cast
  64.  
  65. gcc -g   -I/usr/Navigator/include -I/home/bab/tmp/gcc-include  -Demacs  -I./lwlib  -c  menubar.c
  66. In file included from /usr/include/signal.h:15, from events.h:185, from menubar.c:29:
  67. /home/bab/tmp/gcc-include/sys/signal.h:271: warning: `sigmask' redefined
  68. xterm.h:113: warning: this is the location of the previous definition
  69.  
  70. gcc -g   -I/usr/Navigator/include -I/home/bab/tmp/gcc-include  -Demacs  -I./lwlib  -c  ScreenWidget.c
  71. ScreenWidget.c:139: warning: initialization of `emacsScreenClassRec.core_class.initialize' from incompatible pointer type
  72. ScreenWidget.c:139: warning: initialization of `emacsScreenClassRec.core_class.set_values' from incompatible pointer type
  73.  
  74. And the worst failure happens when I try to link, and I get a bunch of 
  75. unresolved references for functions which are defined in lwlib/energize
  76. and referenced in lwlib. Since I'm not using energize, why are these 
  77. being called?
  78.  
  79. Does anyone have any suggestions about what I may be doing wrong? I've 
  80. tried stubbing out these energize functions, but then I'd core dump
  81. as soon as I started to run lemacs.
  82.  
  83. HELP!!
  84.  
  85. bab
  86. --
  87. |-----------------------|----------------------------------------------------|
  88. | Brian Button          | email : button@wg2.waii.com                        |
  89. | Design Engineer       |         71023.276@compuserve.com                   |
  90. | Western Geophysical   | voice : (713)964-6221                              |
  91. | 3600 Briarpark        |----------------------------------------------------|
  92. | Houston, Texas  77042 |                  Opinions Be Mine!!                |
  93. |-----------------------|----------------------------------------------------|
  94.