XForms: fl_set_defaults() and SunOS (continued)

Jean-Marc Lasgouttes (Jean-Marc.Lasgouttes@inria.fr)
Fri, 19 Jun 1998 18:29:19 +0200 (MET DST)

# To subscribers of the xforms list from Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> :

Hello,

I have continued to try to understand why pup.c dumps core under
SunOS. I used gcc 2.7.2, X11R5 and xforms 0.88.1. I am fairly sure
that the right libraries and headers are used when compiling.

I have gotten (with TC premission) the sources of 0.88.1, and began
investigating.

Here is what I found:

- if I link against libforms.so, it works.

- if I link against libforms.a, it does not work.

- if I compile with acc and I link against libforms.a, it works.

- if I recompile libforms with gcc without -fPIC then linking against
libforms.a works.

- when I try with gdb 4.16 to understand where things go wrong, I get
to nothing that makes sense. I even got gdb to dump core on me...

All in all, I suspect that this is a bug in gcc 2.7.2. If it rings a
bell for somebody, I'd be glad to hear about a workaround. In the
meantime, I'll install a version of libforms.a compiled without
-fPIC (in fact, I use a static version to be able to upgrade libforms
without fearing about binary incompatibility and breaking other
programs at the site).

Thanks for any help.

JMarc

PS: I'll also try to have a look at a problem I have with menu
shortcuts being wrongly placed when there is a line break under the
menuitem. I suspect that this is due to XTextWidth giving a non-null
width for the ending '\n' of the string.
_________________________________________________
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/