* Complaint about Xlib.h Ultrix4.2a
@ 1993-08-24 1:53 david miron
1993-08-25 5:41 ` Brian Hunt
1993-09-03 10:25 ` Burkhard Neidecker-Lutz
0 siblings, 2 replies; 4+ messages in thread
From: david miron @ 1993-08-24 1:53 UTC (permalink / raw)
Recently I have installed gcc 2.4.5 with a view to utilise the g++ for
developing X applications using DECs motif. The motif version is 1.1.
Having just installed gcc I decided to test the compilation of a program
that uses motif. I received the following error messages.
gcc xlogic.c -lXm -lXt -lX11
In file included from
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11
/Intrinsic.h:43, from xlogic.c:6:
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:3958:
parse error before `XSizeHints'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:3971:
parse error before `XSizeHints'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:3981:
parse error before `XSizeHints'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:3990:
parse error before `XStandardColormap'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4000:
parse error before `XTextProperty'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4009:
parse error before `XTextProperty'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4017:
parse error before `XTextProperty'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4025:
parse error before `XTextProperty'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4033:
parse error before `XTextProperty'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4047:
parse error before `XSizeHints'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4056:
parse error before `XSizeHints'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4064:
parse error before `XStandardColormap'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4074:
parse error before `XTextProperty'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4083:
parse error before `XTextProperty'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4091:
ps any on successfully ported gcc toarse error before `XTextProperty'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4099:
parse error before `XTextProperty'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4107:
parse error before `XTextProperty'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4113:
parse error before `*'
/usr/local/lib/gcc-lib/decstation-ultrix/2.4.5/include/X11/Xlib.h:4123:
parse error before `XSizeHints'
The machine is Personal decstation 5000/25 using Ultrix 4.2a. To
configure the Makefile for gcc I used
configure --target=decstation-ultrix
The above compilation works using ``cc''.
I am extremely frustrated with this problem and have spent hours on it.
Any suggestions on how to fix this problem would be greatly appreciated.
I should add that by using the -traditional flag on gcc produces
syntax errors in file.h while using the mit include libraries for compilation
produces XtToolkit warnings that XtAddCallbacks cannot be found.
Thus while gcc successfully compiles the application when the
executable is run I only half the application is produced.
I have been informed that this is a problem with DECs header files
Xlib.h and Xutils.h. Has DEC got a fix for this problem or am I stuck
with header files that are as handy as a pocket in your underpants.
Has anyone successfully ported gcc to their decstation and compiled
motif successfully I would love to hear from you. (My machine is
standalone).
If DEC is reading this I am extremely frustrated and apologise if I
sound or have been curt but I have spent hours on this problem trying
to rectify it. Can you please help me out.
Thanks in advance
and take care
David.
--
David Miron
Dollarburn Road,
Warragul, Australia, 3820.
Email: davidm%giaeb.cc.monash.edu.au
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Complaint about Xlib.h Ultrix4.2a
1993-08-24 1:53 Complaint about Xlib.h Ultrix4.2a david miron
@ 1993-08-25 5:41 ` Brian Hunt
1993-09-03 10:25 ` Burkhard Neidecker-Lutz
1 sibling, 0 replies; 4+ messages in thread
From: Brian Hunt @ 1993-08-25 5:41 UTC (permalink / raw)
[Problem: gcc won't compile anything which includes Xlib.h.]
davidm@giaeb.cc.monash.edu.au (david miron) writes:
>I have been informed that this is a problem with DECs header files
>Xlib.h and Xutils.h. Has DEC got a fix for this problem or am I stuck
>with header files that are as handy as a pocket in your underpants.
Yep, DEC's own ANSI compiler (c89) doesn't like Xlib.h either. Dunno
if there's an official fix, but the following works for me.
Move the block of lines in Xlib.h starting with the comment:
/*
* ICCCM stuff
*/
and ending just before the lines:
#ifdef __cplusplus
} /* for C++ V2.0 */
#endif
(at almost the end of the file) to the analogous location in Xutil.h.
If you'd rather not alter the files in /usr/include/X11, you can put
copies of the fixed Xlib.h and Xutil.h in /usr/local/include/X11, and
gcc will see them (unless you told it to look elsewhere with the
"--local-prefix" flag when you ran configure). Hope this works for
you.
--
Brian Hunt
hunt@ipst.umd.edu
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Complaint about Xlib.h Ultrix4.2a
1993-08-24 1:53 Complaint about Xlib.h Ultrix4.2a david miron
1993-08-25 5:41 ` Brian Hunt
@ 1993-09-03 10:25 ` Burkhard Neidecker-Lutz
1 sibling, 0 replies; 4+ messages in thread
From: Burkhard Neidecker-Lutz @ 1993-09-03 10:25 UTC (permalink / raw)
This is a known problem and fixed in Ultrix 4.3 and beyond. For those
that don't want to upgrade just send me mail and I will send you
Burkhard Neidecker-Lutz
Distributed Multimedia Group, CEC Karlsruhe
Software Motion Pictures & BERKOM II Project
Digital Equipment Corporation
neidecker@nestvx.enet.dec.com
patched header files.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Complaint about Xlib.h Ultrix4.2a
@ 1993-08-24 15:46 George P. Swanton
0 siblings, 0 replies; 4+ messages in thread
From: George P. Swanton @ 1993-08-24 15:46 UTC (permalink / raw)
davidm@giaeb.cc.monash.edu.au (david miron) writes:
I have been informed that this is a problem with DECs header files
Xlib.h and Xutils.h. Has DEC got a fix for this problem or am I stuck
with header files that are as handy as a pocket in your underpants.
Bingo. If you take a close look, they have mutually dependant declarations.
There may be a fix but I am unaware of one. I basically hacked the headers,
created a new kludge.h file to include in both so that A could compile before
B or vise versa and ifdef'd the thing to avoid duplicate declarations.
Unfortunately we overwrote this recently so it's back the way it was.
If DEC is reading this I am extremely frustrated and apologise if I
sound or have been curt but I have spent hours on this problem trying
to rectify it.
It's annoying.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1993-09-03 10:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-08-24 1:53 Complaint about Xlib.h Ultrix4.2a david miron
1993-08-25 5:41 ` Brian Hunt
1993-09-03 10:25 ` Burkhard Neidecker-Lutz
-- strict thread matches above, loose matches on Subject: below --
1993-08-24 15:46 George P. Swanton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox