Ticket #2293 (closed defect: invalid)

Opened 14 years ago

Last modified 14 years ago

syntax error in filehighlight/, when compiling for Solaris 5 i386

Reported by: Catcher Owned by:
Priority: major Milestone:
Component: mc-core Version:
Keywords: Cc:
Blocked By: Blocking:
Branch state: Votes for changeset:


I am looking to get mc working on my platform, SunOS.5.i386. After successfully running configure, when running make, my compiler (Sun's studio 12.1 CC) after successfully compiling a bunch of other directories, reports the following syntax errors and dies:

Making all in po
Making all in lib
Making all in filehighlight

CC libmcfilehighlight_la-common.lo

"../../lib/mcconfig.h", line 13: syntax error before or at: GKeyFile
"common.c", line 80: warning: implicit function declaration: g_try_new0
"common.c", line 80: syntax error before or at: mc_fhl_t
cc: acomp failed for common.c
* Error code 1
The following command caused the error:
echo " CC " libmcfilehighlight_la-common.lo; \
source='common.c' object='libmcfilehighlight_la-common.lo' libtool=yes \
DEPDIR=.deps depmode=none /bin/bash ../../config/depcomp \
/bin/bash ../../libtool --silent --tag=CC --mode=compile cc -xc99=all -DHAVE_CONFIG_H -I. -I../.. -I../../intl -I../../intl -I/usr/openwin/include -I/u/chenk/local/Node-SunOS-i86pc/include -L/u/chenk/local/Node-SunOS-i86pc/lib -I../.. -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/include -DDATADIR=\""/usr/local/share/mc/"\" -DLOCALEDIR=\""/usr/local/share/locale"\" -g -c -o libmcfilehighlight_la-common.lo test -f 'common.c' || echo './'common.c
make: Fatal error: Command failed for target `libmcfilehighlight_la-common.lo'

Is there some newish/unconventional syntax being used in that part of the code? Thanks for your help, and let me know if this is not the right forum for such posts.


Change History

comment:1 Changed 14 years ago by slavazanko

May be you have old version of glib... g_try_new0() was added since glib-2.7

You should install glib-2.8 or higher. Better way to compile - install glib-2.14 or higher because mc has used 'regexp' features in glib (was added since 2.14 version). In another way, if you've have glib less than 2.14 then you should install pcre library plus all needed include-files.

comment:2 Changed 14 years ago by Catcher

thanks for the diagnosis -- after installing glib-2.24 I managed to successfully compile (though I had to deal with a missing file in the distribution, maint/version.sh, but I guess that's another ticket).

I think this ticket can be closed. Thanks again!


comment:3 Changed 14 years ago by andrew_b

  • Status changed from new to closed
  • Version 4.7.2 deleted
  • Resolution set to invalid
  • Milestone 4.7 deleted
Note: See TracTickets for help on using tickets.