mc 4.5.9




I generated succesfully  mc 4.5.9  with egcs 1.1.1 on the
following platforms: 

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

- on i686-pc-linux-gnu, I had a problem with:

 : :ln -s ../edit/libedit.a .
 : :gcc -L/usr/local/lib -o mc dir.o util.o screen.o dialog.o key.o keyxdef.o menu.o file.o win.o color.o help.o find.o profile.o user.o view.o ext.o mouse.o setup.o dlg.o option.o tree.o widget.o chmod.o mad.o wtools.o info.o cons.handler.o chown.o subshell.o terms.o boxes.o hotlist.o achown.o layout.o fsusage.o mountlist.o  regex.o complete.o slint.o command.o cmd.o main.o panelize.o learn.o listmode.o utilunix.o background.o rxvt.o text.o popt.o findme.o poptparse.o poptconfig.o popthelp.o filegui.o filenot.o fileopctx.o treestore.o -L../vfs -L../slang -L../edit -lvfs-mc -lslang -ledit -lgpm  -lintl  -L/usr/local/lib -lglib -lext2fs -lcom_err     
 :*:/usr/local/lib/libcom_err.a(com_err.o): In function `com_err':
 :*:com_err.o(.text+0x170): multiple definition of `com_err'
 :*:../vfs/libvfs-mc.a(undelfs.o)(.text+0x4d4): first defined here
 :*:/usr/bin/ld: Warning: size of symbol `com_err' changed from 211 to 32 in com_err.o
 :*:util.o: In function `get_current_wd':
 :*:util.o(.text+0x1120): the `getwd' function is dangerous and should not be used.
 :*:collect2: ld returned 1 exit status
 :*:gmake[1]: *** [mc] Error 1
 : :gmake[1]: Leaving directory `/scratch/happi/GNU.DESK/mc-4.5.9/src'
 :*:gmake: *** [all] Error 1

  Taking away -lcom_err from the XLIBS definition of Make.common is
  sufficient.to cure this.

- on powerpc-ibm-aix4.3.2.0, compilation stops at:

: :gcc -c -I..  -I/scratch/happi/GNU.DESK/mc-4.5.9/intl -I./..  -I./../vfs -I./../slang -I.. -DBINDIR=\""/usr/local/bin/"\" -DLIBDIR=\""/usr/local/lib/mc/"\" -DICONDIR=\""/usr/local/share/pixmaps/mc/"\"  -DLOCALEDIR=\""/usr/local/share/locale/"\"  -DHAVE_CONFIG_H -O2 -I/usr/local/lib/glib/include -I/usr/local/include fish.c
 :*:/usr/include/arpa/inet.h:160: warning: `struct sockaddr_dl' declared inside parameter list
 :*:/usr/include/arpa/inet.h:161: warning: `struct sockaddr_dl' declared inside parameter list
 :*:fish.c: In function `dir_load':
 :*:fish.c:403: storage size of `tim' isn't known
 : :gmake[1]: Leaving directory `/scratch/happi/GNU.DESK/mc-4.5.9/vfs'
 :*:gmake[1]: *** [fish.o] Error 1
 :*:gmake: *** [all] Error 1
 
  Solution: #include <time.h> in vfs.h in addition to <sys/time.h> to
  get the definition of the structure tm. If you do not include both
  then compilation fails for src/filenot.c where then timeval is not
  defined.

- on mips-sgi-irix6.5, there was a problem with linking in gnome: the
  order of libs in the link command is important.
 : :gmake[3]: Leaving directory `/happi/GNU.DESK/mc-4.5.9/gtkedit'
 : :gcc -o gmc main.o mad.o dlg.o screen.o widget.o wtools.o info.o boxes.o file.o find.o dialog.o key.o chmod.o chown.o view.o panelize.o hotlist.o background.o dir.o util.o win.o color.o profile.o user.o ext.o setup.o subshell.o terms.o achown.o fsusage.o mountlist.o regex.o complete.o command.o option.o cmd.o utilunix.o xslint.o gdialogs.o filenot.o fileopctx.o treestore.o gaction.o gblist.o gcache.o gcliplabel.o gcmd.o gdesktop-icon.o gdesktop.o gdnd.o ghelp.o gicon.o ginfo.o gkey.o glayout.o gmain.o gmc-chargrid.o gmenu.o gmetadata.o gpageprop.o gpopup.o gprefs.o gprop.o gscreen.o gtools.o gtree.o gutil.o gview.o gtkdtree.o gwidget.o -L/usr/local/lib -L/usr/local/lib -lgnomeui -lart_lgpl -lgdk_imlib -ljpeg -ltiff -lungif -lpng -lz -lSM -lICE -lgtk -lgdk -lgmodule -lintl -lXext -lX11 -lgnome -lgnomesupport -lesd -lm -laudio -laudiofile -ldb -lglib -L../vfs -L../slang -L../gtkedit -lvfs-mc -lgtkedit -L/happi/GNU.DESK/mc-4.5.9/intl -lintl -lsocket -lnsl -lsocket -lnsl -lsun !
!
-lgen -lintl  -L/usr/local/lib -lglib -lcurses    
 :*:ld32: WARNING 85: definition of __register_frame in /usr/local/lib/libgnomeui.so preempts that definition in /usr/local/lib/libart_lgpl.so.
 :*:ld32: WARNING 85: definition of __register_frame_table in /usr/local/lib/libgnomeui.so preempts that definition in /usr/local/lib/libart_lgpl.so.
          ...
ibgnome.so preempts that definition in /usr/local/lib/libgnomesupport.so.
 :*:ld32: WARNING 85: definition of __register_frame in /usr/local/lib/libgnomesupport.so preempts that definition in /usr/local/lib/libaudiofile.so.
 :*:ld32: Giving up after printing 50 warnings.  Use -wall to print all warnings.
 :*:ld32: ERROR 33: Unresolved text symbol "gtk_menu_item_get_type" -- 1st referenced by ../gtkedit/libgtkedit.a(edit.o).
 :*:	Use linker option -v to see when and which objects, archives and dsos are loaded.  
 :*:ld32: ERROR 33: Unresolved text symbol "gtk_dialog_cauldron" -- 1st referenced by ../gtkedit/libgtkedit.a(editcmd.o).
 :*:	Use linker option -v to see when and which objects, archives and dsos are loaded.  
 :*:ld32: ERROR 33: Unresolved text symbol "GTK_CAULDRON_ESCAPE" -- 1st referenced by ../gtkedit/libgtkedit.a(editcmd.o).
 :*:	Use linker option -v to see when and which objects, archives and dsos are loaded.  
 :*:ld32: ERROR 33: Unresolved text symbol "XStoreBytes" -- 1st referenced by ../gtkedit/libgtkedit.a(editcmd.o).
 :*:	Use linker option -v to see when and which objects, archives and dsos are loaded.  
         ....
 
  Solution: for gmc and corba-gmc rules in the Makefile put
  respectively LDFLAGS abd CORBALDFLAGS at the real end of the link
  command.

- There is for all platforms that rule in the Makefiles which relink
  everything at each time you run make... It is a pain as you might
  have done some correction by launching a link command by hand but
  then at next make the failure comes back... You then really must
  edit the Makefile to correct the problem if you want to go further.

Amicalement.
Philippe.



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