mc-4.5.0




I compiled and linked mc 4.5.0 on the following platforms:

sparc-sun-solaris2.5.1
sparc-sun-solaris2.6
i686-pc-linux-gnulibc1
i686-pc-linux-gnu
alpha-dec-osf4.0b
hppa1.1-hp-hpux10.20
powerpc-ibm-aix4.2.1.0
mips-sgi-irix6.4

with egcs 1.1 and latest gnome tar files. Here are the results:

- on all machines but rehat 5.1 I had to modify the gnome/Makefile to
  make the include search take the local directory first
  (i.e. "-I."). In fact the regex.h included in the source was in
  conflict with the regex.h of the system on most platforms. The
  modification makes all regex.h to be taken from "." and not from
  /usr/include. "regex.h" is also included by gnome-regex.h.

/usr/include/regex.h:111: conflicting types for `regex_t'
regex.h:350: previous declaration of `regex_t'
/usr/include/regex.h:113: warning: redefinition of `regoff_t'
regex.h:353: warning: `regoff_t' previously declared here
/usr/include/regex.h:119: conflicting types for `regmatch_t'
regex.h:381: previous declaration of `regmatch_t'
/usr/include/regex.h:121: conflicting types for `regcomp'
regex.h:474: previous declaration of `regcomp'
/usr/include/regex.h:122: conflicting types for `regexec'
regex.h:477: previous declaration of `regexec'
/usr/include/regex.h:123: conflicting types for `regerror'

- on mips-sgi-irix6.4, in gnome/Makefile the rule for mx had to be
  change putting $(LDFLAGS) at the end of the link command to resolve
  symbols which are defined in $(EXTRALIBS) namely in libgtkedit.a
  which is static...

mx: libvfs-mc.a $(OBJS) libmcslang.a libgtkedit.a
        $(CC) -o gmc $(OBJS) -L../vfs -L../slang -L../gtkedit $(EXTRALIBS) $(LDFLAGS) $(LIBS)           

- on powerpc-ibm-aix4.2.1.0, as usual one has to add the -Wl,-bbigtoc
  for link phase table of contents is too big for AIX loader by default.     

- on alpha-dec-osf4.0b, compilation failed at

 : :gcc -c -I..  -I/scratch/happi/GNU.DESK/mc-4.5.0/intl -I./../vfs -I./.. -I./../slang -I.. -DBINDIR=\""/usr/local/bin/"\" -DLIBDIR=\""/usr/local/lib/mc/"\" -DICONDIR=\""/usr/local/share/icons/mc/"\"  -DLOCALEDIR=\""/usr/local/share/locale/"\"  -I/usr/local/include -DNEED_GNOMESUPPORT_H -I/usr/local/lib/gnome-libs/include -I/usr/local/lib/glib/include -DHAVE_CONFIG_H -O2 -DGTK gtkedit.c
 :*:gtkedit.c: In function `gtk_edit_button_press_release':
 :*:gtkedit.c:551: warning: cast from pointer to integer of different size
 :*:gtkedit.c: In function `gtk_edit_dialog_message':
 :*:gtkedit.c:816: incompatible types in assignment
 :*:gtkedit.c:817: incompatible type for argument 3 of `vsprintf'
 :*:gtkedit.c: In function `gtk_edit_dialog_query':
 :*:gtkedit.c:834: incompatible types in assignment
 :*:gtkedit.c:836: request for member `__offset' in something not a structure or union
 :*:gtkedit.c:836: request for member `__base' in something not a structure or union
 :*:gtkedit.c:836: request for member `__offset' in something not a structure or union
 :*:gtkedit.c:836: request for member `__offset' in something not a structure or union
 :*:gtkedit.c: In function `gtk_edit_dialog_error':
 :*:gtkedit.c:870: incompatible types in assignment
 :*:gtkedit.c:871: incompatible type for argument 3 of `vsprintf'
 :*:gtkedit.c: In function `allocate_color':
 :*:gtkedit.c:935: warning: overflow in implicit constant conversion
 :*:gtkedit.c:942: warning: overflow in implicit constant conversion
 :*:gtkedit.c:944: warning: overflow in implicit constant conversion
 :*:gtkedit.c:946: warning: overflow in implicit constant conversion
 :*:gtkedit.c: In function `edit':
 :*:gtkedit.c:1204: warning: assignment from incompatible pointer type
 : :gmake[1]: Leaving directory `/scratch/happi/GNU.DESK/mc-4.5.0/gtkedit'
 :*:gmake[1]: *** [gtkedit.o] Error 1

I replaced all 3 lines:
    va_list *ap;
by
    va_list ap;
and it compiled. I even think this could be a valid correction for all
archs. Don't you think. Anyhow gmc segfault anyhow with:

(gdb) run
Starting program: /scratch/happi/GNU.DESK/mc-4.5.0/gnome/./gmc 

Program received signal SIGSEGV, Segmentation fault.
0x0 in ?? ()
(gdb) backtrace
#0  0x0 in ?? ()
#1  0x3ff800e0d90 in signal ()
#2  0x3ff800e0d90 in signal ()
Error accessing memory address 0x50: Invalid argument.


- on hppa1.1-hp-hpux10.20, I get a segfault for gmc

 $ gdb ./gmc
GNU gdb 4.17
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "hppa1.1-hp-hpux10.20"...
(gdb) run
Starting program: /scratch/happi/GNU.DESK/mc-4.5.0/gnome/./gmc 

Program received signal SIGSEGV, Segmentation fault.
0x7ae8d0bc in select ()
(gdb) backtrace
#0  0x7ae8d0bc in select ()
#1  0x7adc54fc in _XWaitForReadable ()
#2  0x7ade3760 in _XRead ()
#3  0x7add54a8 in XOpenDisplay ()
#4  0x7ad6a774 in gdk_init ()
#5  0x7acaa608 in gtk_init ()
#6  0x7aae05a4 in our_gtk_parse_func ()
#7  0x7ae3bc34 in group_parse ()
#8  0x7ae3c5ac in parser_finalize ()
Cannot access memory at address 0x0.

- on powerpc-ibm-aix4.2.1.0, there is the general gtk problem...

Amicalement.

-- 
  ************************************************************************
  *  Philippe Defert: Computing and Networks Division                    *
  *                   CERN,  European Laboratory for Particle Physics    *
  ************************************************************************
  * URL: http://wwwcn.cern.ch/~defert | E*mail: Philippe.Defert@cern.ch  *
  ************************************************************************
  *      Un monde nouveau, tu comprends                          ////\   *
  *      Rien ne sera plus jamais comme avant                    \\\//   *
  *      C'est la fin de l'histoire, le rouge apres le noir       | |    *
  *                                                  J.J. Goldman | |    *  
  ************************************************************************



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]