Thread View: comp.windows.interviews
4 messages
4 total messages
Started by david.a.copperman
Wed, 06 Jan 1993 15:48
trouble in building IV3.1
Author: david.a.copperman
Date: Wed, 06 Jan 1993 15:48
Date: Wed, 06 Jan 1993 15:48
28 lines
1943 bytes
1943 bytes
In trying to build InterViews 3.1, the preprocessor issues these errors: ../../../.././src/include/IV-2_6/InterViews/box.h: 53: major: argument mismatch ../../../.././src/include/IV-2_6/InterViews/box.h: 53: minor: argument mismatch ../../../.././src/include/IV-2_6/InterViews/box.h: 57: major: argument mismatch ../../../.././src/include/IV-2_6/InterViews/box.h: 58: minor: argument mismatch ../../../.././src/include/IV-2_6/InterViews/box.h: 89: major: argument mismatch ../../../.././src/include/IV-2_6/InterViews/box.h: 89: minor: argument mismatch ../../../.././src/include/IV-2_6/InterViews/box.h: 115: major: argument mismatch../../../.././src/include/IV-2_6/InterViews/box.h: 115: minor: argument mismatch Line 53, for example, is virtual void GetActual(int& major, int& minor); This looks fine. Evidently, major and minor are themselves macros in some other place? I tried following all the nested includes, but after awhile my head hurt. I can edit the file and just take out major and minor from all those prototypes, but the old saying applies - if you change someone else's code, you own it! I definitely want to avoid that. Any ideas? Also, I ran into a lack of definition for the type pid_t. That turns out to be in sys/stdtypes.h. OS/types.h includes sys/types.h, but not sys/stdtypes.h. (It appears that OS/types.h is where this include should be - is that correct?) I can make that change readily enough; again, has anyone else run into this? Dave Copperman dac@hoqaa.att.com
Re: trouble in building IV3.1
Author: Mark Linton
Date: Wed, 06 Jan 1993 17:41
Date: Wed, 06 Jan 1993 17:41
20 lines
1627 bytes
1627 bytes
In article <1993Jan6.154831.28479@cbfsb.cb.att.com>, dac@cbnewsf.cb.att.com (david.a.copperman) writes: |> In trying to build InterViews 3.1, the preprocessor issues these errors: It would be helpful if you would list the platform you are trying to build on. |> ../../../.././src/include/IV-2_6/InterViews/box.h: 53: major: argument mismatch These are caused by some system include file defining major and minor macros for Unix device numbering. This include file gets brought in on some (but not all) systems along with sys/types.h. You can #undef major and #undef minor in the offending source files, or change the names in box.h. |> Also, I ran into a lack of definition for the type pid_t. That turns |> out to be in sys/stdtypes.h. OS/types.h includes sys/types.h, but not |> sys/stdtypes.h. (It appears that OS/types.h is where this include should |> be - is that correct?) I can make that change readily enough; again, has |> anyone else run into this? I've not heard of stdtypes.h (it doesn't exist on my system). I thought POSIX required pid_t to be in sys/types.h.
Re: trouble in building IV3.1
Author: Michael Kutzner
Date: Wed, 06 Jan 1993 20:09
Date: Wed, 06 Jan 1993 20:09
23 lines
1491 bytes
1491 bytes
>>>>> About trouble in building IV3.1, david.a.copperman said: copperman> In trying to build InterViews 3.1, the preprocessor issues copperman> these errors: copperman> .. copperman> .../src/include/IV-2_6/InterViews/box.h: 115: minor: argument mismatch copperman> Line 53, for example, is copperman> virtual void GetActual(int& major, int& minor); Try this to change to: virtual void GetActual(int& MAJor, int& MINor); That runs fine. Greetings, Michael *************************************************************************** ** --------------------------------------------------------------------- ** ** Michael Kutzner ** X-Betreuung ** <futzi@uni-paderborn.de> ** ** <xgurus@uni-paderborn.de> ** ** --------------------------------------------------------------------- ** ***************************************************************************
Re: trouble in building IV3.1
Author: Klaus Puerzelmayer
Date: Thu, 07 Jan 1993 13:34
Date: Thu, 07 Jan 1993 13:34
25 lines
1635 bytes
1635 bytes
I got the same problem. If you have a way to solve it, please let me know. making all for SUN4 in ./src/lib/IV/SUN4 /usr/CC/sun4/CC +p -PIC -Dcplusplus_2_1 -I../../../.././src/include -I/ur/include/X11 -D_NO_PROTO -DSTRINGS_ALIGNED -DNO_REGEX -DNO_ISDIR -DUSE_RE_COMP -DUSE_GETWD -c ../../IV-X11/xdrag.c CC +p ../../IV-X11/xdrag.c: "../../IV-X11/xdrag.c", line 48: error: pid_t getpid : pid_t is not a type name "../../IV-X11/xdrag.c", line 48: error: syntax error "../../IV-X11/xdrag.c", line 48: error: syntax error "../../IV-X11/xdrag.c", line 132: error: undefined function getpid called 4 errors cc -c -I/usr/CC/incl -I../../../.././src/include -I/usr/include/X11 -PIC *** Error code 1 make: Fatal error: Command failed for target `xdrag.o' Current working directory /amd_mnt/ch-server/usr/disks/ch-server/disk3/intervies ---------------------------------------------------------------- Klaus Puerzelmayer e-mail: ch_purzl@rcvie.co.at Tool Development voice: +431/391621-272 Alcatel-Informatics fax: +431/391452 Ruthnergasse 1-7, A-1210, Wien Austria ----------------------------------------------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads