#63 Does not build on SunOS

closed-fixed
nobody
None
5
2012-06-01
2012-03-21
No

mlterm does not build on SunOS (tried 3.0.11)

In file included from /opt/GCC281/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/include/limits.h:116,
from /opt/GCC281/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/include/syslimits.h:7,
from /opt/GCC281/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1/include/limits.h:11,
from ../kiklib/include/kiklib/kik_def.h:9,
from ../kiklib/include/kiklib/kik_mem.h:11,
from ../kiklib/include/kiklib/kik_str.h:11,
from x_imagelib.c:27:
/usr/include/limits.h:42: warning: `SIZE_MAX' redefined
../kiklib/include/kiklib/kik_types.h:22: warning: this is the location of the previous definition
In file included from x_imagelib.c:7:
/usr/openwin/include/X11/Xutil.h:117: parse error before `Bool'
/usr/openwin/include/X11/Xutil.h:117: warning: no semicolon at end of struct or union
/usr/openwin/include/X11/Xutil.h:120: parse error before `icon_pixmap'
/usr/openwin/include/X11/Xutil.h:120: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:121: parse error before `icon_window'
/usr/openwin/include/X11/Xutil.h:121: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:123: parse error before `icon_mask'
/usr/openwin/include/X11/Xutil.h:123: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:124: parse error before `window_group'
/usr/openwin/include/X11/Xutil.h:124: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:126: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:161: parse error before `Atom'
/usr/openwin/include/X11/Xutil.h:161: warning: no semicolon at end of struct or union
/usr/openwin/include/X11/Xutil.h:164: parse error before `}'
/usr/openwin/include/X11/Xutil.h:164: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:207: parse error before `XPointer'
/usr/openwin/include/X11/Xutil.h:207: warning: no semicolon at end of struct or union
/usr/openwin/include/X11/Xutil.h:209: parse error before `}'
/usr/openwin/include/X11/Xutil.h:209: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:254: parse error before `Visual'
/usr/openwin/include/X11/Xutil.h:254: warning: no semicolon at end of struct or union
/usr/openwin/include/X11/Xutil.h:255: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:268: parse error before `}'
/usr/openwin/include/X11/Xutil.h:268: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:287: parse error before `Colormap'
/usr/openwin/include/X11/Xutil.h:287: warning: no semicolon at end of struct or union
/usr/openwin/include/X11/Xutil.h:295: parse error before `visualid'
/usr/openwin/include/X11/Xutil.h:295: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:296: parse error before `killid'
/usr/openwin/include/X11/Xutil.h:296: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:297: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:332: syntax error before `extern'
/usr/openwin/include/X11/Xutil.h:350: parse error before `*'
/usr/openwin/include/X11/Xutil.h:354: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:356: parse error before `*'
/usr/openwin/include/X11/Xutil.h:360: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:417: parse error before `XGetClassHint'
/usr/openwin/include/X11/Xutil.h:423: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:425: parse error before `XGetIconSizes'
/usr/openwin/include/X11/Xutil.h:432: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:434: parse error before `XGetNormalHints'
/usr/openwin/include/X11/Xutil.h:440: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:442: parse error before `XGetRGBColormaps'
/usr/openwin/include/X11/Xutil.h:450: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:452: parse error before `XGetSizeHints'
/usr/openwin/include/X11/Xutil.h:459: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:461: parse error before `XGetStandardColormap'
/usr/openwin/include/X11/Xutil.h:468: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:470: parse error before `XGetTextProperty'
/usr/openwin/include/X11/Xutil.h:477: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:479: parse error before `*'
/usr/openwin/include/X11/Xutil.h:486: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:488: parse error before `XGetWMClientMachine'
/usr/openwin/include/X11/Xutil.h:494: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:496: parse error before `*'
/usr/openwin/include/X11/Xutil.h:501: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:503: parse error before `XGetWMIconName'
/usr/openwin/include/X11/Xutil.h:509: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:511: parse error before `XGetWMName'
/usr/openwin/include/X11/Xutil.h:517: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:519: parse error before `XGetWMNormalHints'
/usr/openwin/include/X11/Xutil.h:526: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:528: parse error before `XGetWMSizeHints'
/usr/openwin/include/X11/Xutil.h:536: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:538: parse error before `XGetZoomHints'
/usr/openwin/include/X11/Xutil.h:544: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:572: parse error before `XMatchVisualInfo'
/usr/openwin/include/X11/Xutil.h:580: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:590: parse error before `XPointInRegion'
/usr/openwin/include/X11/Xutil.h:596: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:801: parse error before `XStringListToTextProperty'
/usr/openwin/include/X11/Xutil.h:807: warning: data definition has no type or storage class
/usr/openwin/include/X11/Xutil.h:843: parse error before `XTextPropertyToStringList'
/usr/openwin/include/X11/Xutil.h:849: warning: data definition has no type or storage class
In file included from /usr/include/string.h:18,
from x_imagelib.c:8:
/usr/include/iso/string_iso.h:46: syntax error before `typedef'
In file included from x_window.h:18,
from x_imagelib.h:9,
from x_imagelib.c:30:
x_display.h:93: parse error before `*'
x_display.h:93: warning: data definition has no type or storage class
x_imagelib.c:275: parse error before `*'
x_imagelib.c: In function `rgb_info_init':
x_imagelib.c:279: `rgb' undeclared (first use in this function)
x_imagelib.c:279: (Each undeclared identifier is reported only once
x_imagelib.c:279: for each function it appears in.)
x_imagelib.c:279: `vinfo' undeclared (first use in this function)
x_imagelib.c: In function `modify_pixmap':
x_imagelib.c:389: `vinfo' undeclared (first use in this function)
x_imagelib.c:390: parse error before `rgbinfo'
x_imagelib.c:399: `rgbinfo' undeclared (first use in this function)
x_imagelib.c: In function `create_cardinals_from_image':
x_imagelib.c:1464: `vinfo' undeclared (first use in this function)
x_imagelib.c:1465: parse error before `rgbinfo'
x_imagelib.c:1472: `rgbinfo' undeclared (first use in this function)
x_imagelib.c: In function `x_imagelib_get_transparent_background':
x_imagelib.c:1726: `XVisualInfo' undeclared (first use in this function)
x_imagelib.c:1726: parse error before `vinfo_template'
x_imagelib.c:1728: `vinfo' undeclared (first use in this function)
x_imagelib.c:1729: parse error before `rgbinfo'
x_imagelib.c:1761: `vinfo_template' undeclared (first use in this function)
x_imagelib.c:1766: `rgbinfo' undeclared (first use in this function)
x_imagelib.c:1770: `rgbinfo2' undeclared (first use in this function)
x_imagelib.c:1773: `_y' undeclared (first use in this function)
x_imagelib.c:1775: `_x' undeclared (first use in this function)

Discussion

  • Araki Ken

    Araki Ken - 2012-03-23

    Thanks for your report.
    I made a patch to fix this problem.
    Please test it.

     
  • Thomas Wolff

    Thomas Wolff - 2012-03-23

    Thanks. I'm now getting this:

    gcc -o .libs/mlterm x_term_manager.o x_display.o x_window.o x_screen.o x_xic.o x_color_manager.o x_font_manager.o x_picture.o x_font.o x_color.o x_selection.o x_font_config.o x_color_config.o x_main_config.o x_shortcut.o x_bel_mode.o x_sb_mode.o x_mod_meta_mode.o main.o x_termcap.o x_font_cache.o x_draw_str.o x_gc.o x_color_cache.o x_dnd.o x_scrollbar.o x_sb_screen.o x_sb_view_factory.o x_simple_sb_view.o x_imagelib.o x_connect_dialog.o x_type_engine.o x_type_loader.o x_decsp_font.o x_im.o x_im_candidate_screen.o x_im_status_screen.o x_xim.o -L/home/demsn702/usr/lib ../mlterm/libmlterm.a ../mlterm/.libs/libmlterm_core.so /home/demsn702/opt/mlterm-3.0.11/kiklib/src/.libs/libkik.so ../mkf/lib/.libs/libmkf.so ../kiklib/src/.libs/libkik.so -ldl -L/usr/local/lib -L/usr/openwin/lib -lX11 -lsocket -lnsl -R/usr/local/lib -R/usr/openwin/lib
    ld: warning: file ../kiklib/src/.libs/libkik.so: linked to /home/demsn702/opt/mlterm-3.0.11/kiklib/src/.libs/libkik.so: attempted multiple inclusion of file
    Undefined first referenced
    symbol in file
    unsetenv ../mlterm/libmlterm.a(ml_term_manager.o)
    setenv ../mlterm/libmlterm.a(ml_term_manager.o)

     
  • Araki Ken

    Araki Ken - 2012-03-23

    Thanks.
    I believe that next patch will fix this problem.
    Please check it.

     
  • Araki Ken

    Araki Ken - 2012-03-24
    • status: open --> open-fixed
     
  • Thomas Wolff

    Thomas Wolff - 2012-03-26

    With 2nd patch still this:

    ld: warning: file ../kiklib/src/.libs/libkik.so: linked to /home/demsn702/opt/mlterm-3.0.11/kiklib/src/.libs/libkik.so: attempted multiple inclusion of file
    Undefined first referenced
    symbol in file
    unsetenv ../mlterm/libmlterm.a(ml_term_manager.o)
    setenv ../mlterm/libmlterm.a(ml_term_manager.o)

    So I uncommented setenv/unsetenv manually in that source file. Now it builds. Same flickering crash, however, as on Cygwin.

     
  • Araki Ken

    Araki Ken - 2012-05-12
    • status: open-fixed --> closed-fixed
     
  • Thomas Wolff

    Thomas Wolff - 2012-05-22

    Update with mlterm 3.1.2:

    On SunOS 5.8, it fails to build with this error:

    ld: warning: file ../kiklib/src/.libs/libkik.so: linked to /home/demsn702/opt/mlterm-3.1.2/kiklib/src/.libs/libkik.so: attempted multiple inclusion of file
    Undefined first referenced
    symbol in file
    setenv ../mlterm/libmlterm.a(ml_term_manager.o)
    ld: fatal: Symbol referencing errors. No output written to .libs/mlterm
    gmake[1]: *** [mlterm] Error 1
    gmake[1]: Leaving directory `/home/demsn702/opt/mlterm-3.1.2/main'
    gmake: *** [all] Error 2

    On SunOS 5.10, it does build but reports this error:

    In file included from /usr/include/glib-2.0/glib.h:51,
    from /usr/include/gtk-2.0/gdk-pixbuf/gdk-pixbuf.h:29,
    from main.c:11:
    /usr/include/glib-2.0/glib/gmessages.h:116: warning: invalid character in macro parameter name
    /usr/include/glib-2.0/glib/gmessages.h:116: badly punctuated parameter list in `#define'
    /usr/include/glib-2.0/glib/gmessages.h:119: warning: invalid character in macro parameter name
    /usr/include/glib-2.0/glib/gmessages.h:119: badly punctuated parameter list in `#define'
    /usr/include/glib-2.0/glib/gmessages.h:122: warning: invalid character in macro parameter name
    /usr/include/glib-2.0/glib/gmessages.h:122: badly punctuated parameter list in `#define'
    /usr/include/glib-2.0/glib/gmessages.h:125: warning: invalid character in macro parameter name
    /usr/include/glib-2.0/glib/gmessages.h:125: badly punctuated parameter list in `#define'
    In file included from ../../kiklib/include/kiklib/kik_mem.h:117,
    from ../../kiklib/include/kiklib/kik_str.h:11,
    from main.c:15:
    /usr/include/alloca.h:36: warning: `alloca' redefined
    /usr/include/glib-2.0/glib/galloca.h:35: warning: this is the location of the previous definition
    gmake[1]: *** [main.o] Error 1
    gmake[1]: Leaving directory `/home/demsn702/tmp/mlterm-3.1.2/tool/mlimgloader'
    gmake: *** [all] Error 2

     
  • Araki Ken

    Araki Ken - 2012-05-23
    • status: closed-fixed --> open-fixed
     
  • Thomas Wolff

    Thomas Wolff - 2012-05-24

    'patch' would not work: "Looks like a unified context diff."
    So I had to apply the patch manually :(... (hope I got it right).

    No change on SunOS 5.8, however.

    Also, for SunOS 5.10, I don't see how to apply that ISO_VARARGS option; can't find anything like it in man make or man gcc either.

     
  • Araki Ken

    Araki Ken - 2012-05-26

    Did you make clean and re-configure ?
    Please retry to make after removing at least mlterm/ml_term_manager.o.

    For sunos 5.10, is G_HAVE_ISO_VARARGS defined in /usr/pkg/include/glib/glib-2.0/glib/glibconfig.h ?
    If so, how about #undef it ?

     
  • Thomas Wolff

    Thomas Wolff - 2012-05-30

    > Did you make clean and re-configure ?
    > Please retry to make after removing at least mlterm/ml_term_manager.o.
    Yes, no change.

    > For sunos 5.10, is G_HAVE_ISO_VARARGS defined in /usr/pkg/include/glib/glib-2.0/glib/glibconfig.h ?
    That file does not exist, or anywhere.

     
  • Araki Ken

    Araki Ken - 2012-05-30

    >> Did you make clean and re-configure ?
    >> Please retry to make after removing at least mlterm/ml_term_manager.o.
    > Yes, no change.

    Oops, I found a bug.
    Please try a new patch (mlterm-3.1.2post-fix4sunos2.patch).
    (Note that this patch should be applied after mlterm-3.1.2post-fix4sunos.patch is applied.)

    > That file does not exist, or anywhere.
    Sorry, glibconfig.h exists in /usr/lib/glib-2.0/include/ on Solaris.

     
  • Thomas Wolff

    Thomas Wolff - 2012-05-31

    Thanks, this worked.
    However, when I tried to combine it with the mlterm-3.1.2post-fixosccolor.patch,
    it broke again. This time it complained about kik_setenv not found. After make clean etc, it now again complains setenv not found. Weird...

    SunOS 10: yes, G_HAVE_ISO_VARARGS is #defined to 1. (I hadn't expected a .h to reside in /usr/lib...)

     
  • Araki Ken

    Araki Ken - 2012-05-31

    Is mlterm-3.1.2post-fix4sunos.patch not only mlterm-3.1.2post-fix4sunos2.patch applied ?

    I combined mlterm-3.1.2post-fix4sunos.patch, mlterm-3.1.2post-fix4sunos2.patch and mlterm-3.1.2post-fixosccolor.patch and attached the combined patch(mlterm-3.1.2post-fix4sunos-and-osccolor.patch).
    Please use it.
    Note that mlterm-3.1.2post-fix4sunos-and-osccolor.patch simply ignores unknown color instead of falling back to black or white.

     
  • Thomas Wolff

    Thomas Wolff - 2012-06-01

    Thanks, works fine.
    I would suggest to ignore the remaining errors on SunOS 5.10 which occur after creating mlterm, and close the report.

     
  • Araki Ken

    Araki Ken - 2012-06-01
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks