Skip to content

XView App which used to compile fine on the previous XView headers now complains about BOOST #4

@ElCoyote27

Description

@ElCoyote27

Hi,
In OWacomp, there are some sources that compile fine with your boost modified XView for 64bit but I am pulling my hair out on this one:

[raistlin@rh8x64 /net/imladris/export/home/raistlin/World/Vincent/Code/GIT/OWacomp/OWacomp/filemgr]$ gmake
gcc -c -pipe -g -fPIC -I/usr/include/tirpc -I../ce -I../libdeskset -I../devguide/include -I/usr/openwin/include -D_GNU_SOURCE -DLINUX -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSYSV_UCONTEXT -D_GNU_SOURCE -DLINUX -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I. -DTREE_SPEEDUP  filemgr_ui.c -o x86_64-Linux/filemgr_ui.o
In file included from /usr/include/boost/preprocessor/repetition/enum.hpp:22,
                 from /usr/include/boost/preprocessor/array/pop_back.hpp:18,
                 from /usr/include/boost/preprocessor/array.hpp:20,
                 from /usr/include/boost/preprocessor/library.hpp:17,
                 from /usr/include/boost/preprocessor.hpp:17,
                 from /usr/openwin/include/xview/macros.h:6,
                 from /usr/openwin/include/xview/attr.h:451,
                 from /usr/openwin/include/xview/pkg.h:26,
                 from /usr/openwin/include/xview/pkg_public.h:19,
                 from /usr/openwin/include/xview/generic.h:39,
                 from /usr/openwin/include/xview/xview_xvin.h:41,
                 from /usr/openwin/include/xview/xview.h:34,
                 from filemgr_ui.c:11:
filemgr_ui.c: In function ‘filemgr_file_button_menu_create’:
/usr/openwin/include/xview/macros.h:13:5: error: expected ‘)’ before ‘BOOST_PP_REPEAT_1_BOOST_PP_DEC_BOOST_PP_DEC_ip’
     BOOST_PP_REPEAT(BOOST_PP_ARRAY_SIZE(array), ARG, array)
     ^~~~~~~~~~~~~~~
/usr/openwin/include/xview/macros.h:27:9: note: in expansion of macro ‘ARGS’
         ARGS(BOOST_PP_ARRAY_POP_FRONT(BOOST_PP_ARRAY_POP_FRONT(array))))
         ^~~~
/usr/openwin/include/xview/macros.h:23:5: note: in expansion of macro ‘MACRO_DEF2_’
     MACRO_DEF2_(f, t1, t2, BOOST_PP_VARIADIC_TO_ARRAY(__VA_ARGS__))
     ^~~~~~~~~~~
/usr/openwin/include/xview/pkg_public.h:52:5: note: in expansion of macro ‘MACRO_DEF2’
     MACRO_DEF2(_xv_create, Xv_opaque, Xv_pkg*, __VA_ARGS__)
     ^~~~~~~~~~
filemgr_ui.c:76:8: note: in expansion of macro ‘xv_create’
  obj = xv_create(XV_NULL, MENU_COMMAND_MENU,
        ^~~~~~~~~
filemgr_ui.c: In function ‘filemgr_tp_menu_create’:
/usr/openwin/include/xview/macros.h:13:5: error: expected ‘)’ before ‘BOOST_PP_REPEAT_1_BOOST_PP_DEC_BOOST_PP_DEC_XV_KEY_DATA’
     BOOST_PP_REPEAT(BOOST_PP_ARRAY_SIZE(array), ARG, array)
     ^~~~~~~~~~~~~~~
/usr/openwin/include/xview/macros.h:27:9: note: in expansion of macro ‘ARGS’
         ARGS(BOOST_PP_ARRAY_POP_FRONT(BOOST_PP_ARRAY_POP_FRONT(array))))
         ^~~~
/usr/openwin/include/xview/macros.h:23:5: note: in expansion of macro ‘MACRO_DEF2_’
     MACRO_DEF2_(f, t1, t2, BOOST_PP_VARIADIC_TO_ARRAY(__VA_ARGS__))
     ^~~~~~~~~~~
/usr/openwin/include/xview/pkg_public.h:52:5: note: in expansion of macro ‘MACRO_DEF2’
     MACRO_DEF2(_xv_create, Xv_opaque, Xv_pkg*, __VA_ARGS__)
     ^~~~~~~~~~
filemgr_ui.c:179:8: note: in expansion of macro ‘xv_create’
  obj = xv_create(XV_NULL, MENU_COMMAND_MENU,

Do you have any idea what could be causing this? I don't see any missing parenthesis'es in /usr/openwin/include/xview/macros.h and some other OWacomp clients (wsinfo, dumptool, etc..) compile fine.

The top of filemgr_ui.c shows these includes:

#include <stdio.h>
#include <stddef.h>
#include <sys/param.h>
#include <sys/types.h>
#include <xview/xview.h>
#include <xview/window.h>
#include <xview/canvas.h>
#include <xview/panel.h>
#include <xview/scrollbar.h>
#include <xview/svrimage.h>
#include <xview/termsw.h>
#include <xview/text.h>
#include <xview/tty.h>
#include <xview/xv_xrect.h>
#include <group.h>
#include "filemgr_ui.h"

If I use the XView headers from the previous version (before the BOOST changes) I was using, that file compiles fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions