compiling xfig 2.1.7 on solaris 2.1 & OW

compiling xfig 2.1.7 on solaris 2.1 & OW

Post by Jussi Eloran » Tue, 25 May 1993 23:09:20



Hi,

Has anyone gotten xfig 2.1.7 to work on 2.1? I tried and ran into weird
problem:
- the program compiles ok without warnings
- when I try to execute it it freezes the machine. After a bit of "truss"ing
  I found out that it is repeatedly doing brk() !!! Using de* I can
  see that it is in malloc.

Any ideas what's wrong...?

jussi

ps. I tried also -lbsdmalloc ... didn't help.

--
============================================================================
Jussi Eloranta               Internet(/Bitnet):    ! The ultimate trip is

Finland                      [130.234.0.1]         !  -- Jim Morrison

 
 
 

compiling xfig 2.1.7 on solaris 2.1 & OW

Post by Brian V. Smi » Thu, 10 Jun 1993 08:02:53


|> Has anyone gotten xfig 2.1.7 to work on 2.1? I tried and ran into weird
|> problem:
|> - the program compiles ok without warnings
|> - when I try to execute it it freezes the machine. After a bit of "truss"ing
|>   I found out that it is repeatedly doing brk() !!! Using de* I can
|>   see that it is in malloc.

This has been fixed.  The following patch will fix that.

Patch for xfig 2.1.7
Patch-To: xfig: Volume 19, Issue 113-139

This patch should be applied to xfig 2.1.7.

It fixes the problem of the radius indicator for the arc-box radius button in
the bottom panel being drawn strangely.
This also caused OpenWindows servers to hang for many minutes.

The patch to the app-defaults file Fig.ad prevents xfig from consuming many
megabytes of memory.  Be sure to install the patched Fig.ad file to your
/usr/.../app-defaults/Fig file.

Applying this patch will make your xfig version 2.1.7a.
Brian V. Smith

--------------------- patch follows ---------------------
*** patchlevel.h.orig   Wed Apr 28 15:33:35 1993
--- patchlevel.h        Tue May  4 14:17:51 1993
***************
*** 10,13 ****
   * any purpose.  It is provided "as is" without express or implied warranty."
   */

! #define PATCHLEVEL "7"
--- 10,13 ----
   * any purpose.  It is provided "as is" without express or implied warranty."
   */

! #define PATCHLEVEL "7a"
*** w_indpanel.c.orig   Fri Feb 12 09:04:25 1993
--- w_indpanel.c        Tue May  4 09:35:59 1993
***************
*** 1489,1495 ****
              DEF_IND_SW_WD, DEF_IND_SW_HT / 2, ERASE,
              DEF_IND_SW_HT, PANEL_LINE, 0.0, DEFAULT_COLOR);
      /* draw current radius into pixmap */
!     curve(sw->normalPM, 0, cur_boxradius, -cur_boxradius, 0, 1,
          cur_boxradius, cur_boxradius, DEF_IND_SW_WD - 2, DEF_IND_SW_HT - 2,
          PAINT, 1, PANEL_LINE, 0.0, 0, DEFAULT_COLOR);

--- 1489,1495 ----
              DEF_IND_SW_WD, DEF_IND_SW_HT / 2, ERASE,
              DEF_IND_SW_HT, PANEL_LINE, 0.0, DEFAULT_COLOR);
      /* draw current radius into pixmap */
!     curve(sw->normalPM, 0, cur_boxradius, -cur_boxradius, 0, 1, 50,
          cur_boxradius, cur_boxradius, DEF_IND_SW_WD - 2, DEF_IND_SW_HT - 2,
          PAINT, 1, PANEL_LINE, 0.0, 0, DEFAULT_COLOR);

*** Fig.ad.orig Tue Feb 23 09:22:33 1993
--- Fig.ad      Thu May  6 13:06:02 1993
***************
*** 38,46 ****

  ! keyboard accelerators

- Fig*accelerators: \
-       Meta<Key>s: SaveFile()\n\
-       Meta<Key>l: LoadFile()\n

  Fig*quit*accelerators: \
        Meta<Key>q: quit()\n
--- 38,43 ----
***************
*** 53,58 ****
--- 50,57 ----
  Fig*paste*accelerators: \
        Meta<Key>t: paste()\n
  Fig*file*accelerators: \
+       Meta<Key>s: SaveFile()\n\
+       Meta<Key>l: LoadFile()\n\
        Meta<Key>f: file()\n

  Fig*xfig_file_menu*accelerators: \

--

Lawrence Berkeley Laboratory
I don't speak for LBL; they don't pay me enough for that.

 
 
 

1. xfig 2.1.7 on Solaris 2.1 x86

Has anyone been succesful in running xfig 2.1.7 on Solaris 2.1 x86?
I have compiled xfig with gcc 2.4.5 and with the X11r5 libraries
(also compiled with gcc 2.4.5).

When I start xfig, the main window pops up, including the icons on the
left, and the menu on the top, and then xnews freezes.
I can still log on remotely and kill xfig and that doesn't make xnews
go. My only way out has been to kill the xnews server.

Has anyone else seen this problem?

Paul.

PS: the exact same source code compiles and runs fine with gcc 2.4.5
and X11r5 on Esix, with the XFree 1.3 X-server, so I assume that

2. can't load module

3. xfig 2.1.7 on solaris 2.1 (solution)

4. Information on Servers.

5. Solaris 2.1 printing sucks (was Re: problem with lpstat with Solaris 2.1)

6. HACMP/TSM - 2 TSM clients but different inclexcl files

7. ye**ow pages not working with Slackware 2.1

8. adding true type fonts to linux crashes X when running Java

9. xfig file converter (3.1 -> 2.1)

10. xfig 2.1

11. Problems running xfig 2.1

12. XFig 2.1.7a and dbx under AIX3.2.3