Problems with Midnight Commander

Problems with Midnight Commander

Post by Stephen P. Moln » Mon, 25 Nov 1996 04:00:00



I seem to have encountered a snag attempting to implement the fix for
the mouse in non-root use of Midnight Comander.
I'm using the 2.0.23 kernel on a 486DX4-120/32MB RAM and currently
using mc-3.2.1.  I compiled that version of mc after upgrading my
system to RedHat 3.0.3/kkernel 2.0.0/gcc-2.7.2 without any problems.

The patch that I found is:

--- mouse.c.orig        Wed Oct  2 02:28:09 1996
+++ mouse.c     Sun Oct 13 14:26:52 1996
@@ -41,7 +41,6 @@

 #ifdef HAVE_LIBGPM
 static int mouse_d;            /* Handle to the mouse server */
-static int console_fd;         /* Handle to the console */
 #endif

 #ifdef DEBUGMOUSE
@@ -56,7 +55,7 @@
 {
 #ifdef HAVE_LIBGPM
     if (use_mouse_p == GPM_MOUSE){
-       Gpm_DrawPointer (x, y, console_fd);
+       Gpm_DrawPointer (x, y, gpm_consolefd);
     }
 #endif
 }
@@ -118,9 +117,6 @@
            conn.minMod      = 0;
            conn.maxMod      = 0;

-           if ((console_fd = open("/dev/console", O_WRONLY)) == -1)
-               return;
-
            if ((mouse_d = Gpm_Open (&conn, 0)) == -1)
                return;

@@ -156,7 +152,6 @@
     switch (use_mouse_p){
 #ifdef HAVE_LIBGPM
       case GPM_MOUSE:
-       close (console_fd);
        Gpm_Close ();
        break;
 #endif

I applied that without any error or warning messages.

The configure.log is:

creating cache ./config.cache
checking for prefix by ... checking for mc... /usr/bin/mc
checking whether make sets ${MAKE}... yes
checking for gcc... gcc
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for mawk... no
checking for gawk... gawk
checking whether we are using GNU make... yes
checking for AIX... no
checking for minix/config.h... no
checking for POSIXized ISC... no
checking whether sys/types.h defines makedev... no
checking for sys/mkdev.h... no
checking for sys/sysmacros.h... yes
checking for working const... yes
checking for mv... /bin/mv
checking for cp... /bin/cp
checking for rm... /bin/rm
checking for chmod... /bin/chmod
checking for ar... /usr/bin/ar
checking whether cross-compiling... no
checking for uname... Linux
checking for netscape... netscape
checking for a BSD compatible install... /usr/bin/install -c
checking for unistd.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for crypt.h... no
checking for grp.h... yes
checking for limits.h... yes
checking for malloc.h... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for dirent.h that defines DIR... yes
checking for -ldir... no
checking filename fits on dirent.d_name... yes
checking for ANSI C header files... yes
checking for st_blksize in struct stat... yes
checking for st_blocks in struct stat... yes
checking for st_rdev in struct stat... yes
checking for strerror... yes
checking for statfs... yes
checking for getwd... yes
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strdup... yes
checking for pwdauth... no
checking for cfgetospeed... yes
checking for truncate... yes
checking for initgroups... yes
checking for putenv... yes
checking for -lshadow... no
checking for crypt... yes
checking for grantpt... no
checking for -lpt... no
checking for AIX defines... no
checking for -lgen... no
checking for fcntl.h... yes
checking for sys/dustat.h... no
checking for sys/param.h... yes
checking for sys/statfs.h... no
checking for sys/fstyp.h... no
checking for mnttab.h... no
checking for mntent.h... yes
checking for utime.h... yes
checking for sys/statvfs.h... no
checking for sys/vfs.h... yes
checking for sys/mount.h... yes
checking for sys/filsys.h... no
checking for sys/fs_types.h... no
checking for getmntinfo... no
checking for d_ino member in directory struct... yes
checking for -lsun... no
checking for -lseq... no
checking for -lgen... (cached) no
checking for getmntent... yes
checking for one-argument getmntent function... yes
checking how to get filesystem space usage
checking for statvfs... no
checking for 3-argument statfs function (DEC OSF/1)... no
checking for two-argument statfs with statfs.bsize member (AIX,
4.3BSD)... yes
checking for mode_t... yes
checking for umode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking for uid_t in sys/types.h... yes
checking for valloc... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for -lICE... yes
checking for -ldnet... no
checking for -ldnet_stub... no
checking for -lnsl... no
checking for -lsocket... no
checking for gethostbyname... yes
checking for socket... yes
checking struct linger is available... yes
checking for pmap_set... yes
checking for pmap_getport... yes
checking for rresvport... yes
checking for rpc/pmap_clnt.h... yes
checking for nroff... true
checking for manual formatting macros... -mandoc
checking If nroff accepts -Tascii... yes
checking for file... true
checking for - option to file command... yes
checking for -L option to file command... yes
checking for du arguments... -b
checking for subshell support... yes
Using the VFS switch code
Using SLang screen manager/terminfo
checking for -lpam... no
checking for -ltermcap... yes
checking for -lgpm... yes

updating cache ./config.cache
creating ./config.status
creating Make.common
creating Makefile
creating doc/Makefile
creating vfs/Makefile
creating lib/Makefile
creating lib/mc.ext
creating tk/Makefile
creating xv/Makefile
creating src/Makefile
creating slang/Makefile
creating icons/Makefile
creating mcfn_install
creating vfs/extfs/a
creating vfs/extfs/ftplist
creating vfs/extfs/zip
creating vfs/extfs/zoo
creating vfs/extfs/lslR
creating config.h

Configuration:

  Source code location:       .
  Compiler:                   gcc
  Compiler flags:             -g -O
  File system:                Midnight Commander Virtual File System
                              tarfs, mcfs, ftpfs
  Text mode screen manager:   SLang with terminfo
  Install console saver:      yes
  Text mode mouse library:    GPM and xterm
  Debugger code:              none
  With subshell support:      yes
  X11 versions:               none
  Install path:               /usr/bin, /usr/lib/mc

and finally, the make.log (much shorter is):

make[1]: Entering directory `/usr/src/mc-3.2.11/vfs'
gcc -c -I..  -I./../vfs -I./../slang -I.. -DBINDIR=\""/usr/bin/"\"
-DLIBDIR=\""/usr/lib/mc/"\" -DICONDIR=\""/usr/lib/mc/icons/"\"
-DHAVE_CONFIG_H -g -O local.c
In file included from vfs.h:7,
                 from local.c:14:
/usr/include/sys/mman.h:11: warning: `MAP_FILE' redefined
/usr/include/asm/mman.h:29: warning: this is the location of the
previous definition
gcc -c -I..  -I./../vfs -I./../slang -I.. -DBINDIR=\""/usr/bin/"\"
-DLIBDIR=\""/usr/lib/mc/"\" -DICONDIR=\""/usr/lib/mc/icons/"\"
-DHAVE_CONFIG_H -g -O vfs.c
In file included from ../src/dlg.h:3,
                 from ../src/panel.h:4,
                 from vfs.c:38:
../src/mouse.h:8: gpm.h: No such file or directory
In file included from vfs.h:7,
                 from vfs.c:40:
/usr/include/sys/mman.h:11: warning: `MAP_FILE' redefined
/usr/include/asm/mman.h:29: warning: this is the location of the
previous definition
make[1]: *** [vfs.o] Error 1
make[1]: Leaving directory `/usr/src/mc-3.2.11/vfs'
make: *** [all] Error 1

I don't have the faintest idea as to what an Error 1 may mean.

Further, and latest developments are that I have upgraded gpm from
1.0.6 to 1.10 via the rpm without any problems.  I also attempted to
compile mc-3.1.2 and got the same message as the attempt to compile
the newer version.

Now MC won't even load.  I get the message:

        "can't load library 'libncurses.so.3.o'"

and nothing works, including reinstalling mc-3.1.2 via the RedHat rpm
that I used the first time early this past summer.

I seem to be up the traditional creek without even a canoe, let alone
a paddle.

I would really appreciate some help!!!

Thanks in advance.

 
 
 

Problems with Midnight Commander

Post by Rob Fu » Tue, 26 Nov 1996 04:00:00




Quote:>I seem to have encountered a snag attempting to implement the fix for
>the mouse in non-root use of Midnight Comander.

I can't be much help here (I don't use MC), but....

Quote:>gcc -c -I..  -I./../vfs -I./../slang -I.. -DBINDIR=\""/usr/bin/"\"
>-DLIBDIR=\""/usr/lib/mc/"\" -DICONDIR=\""/usr/lib/mc/icons/"\"
>-DHAVE_CONFIG_H -g -O vfs.c
>In file included from ../src/dlg.h:3,
>                 from ../src/panel.h:4,
>                 from vfs.c:38:
>../src/mouse.h:8: gpm.h: No such file or directory
[...]
>make[1]: *** [vfs.o] Error 1
>make[1]: Leaving directory `/usr/src/mc-3.2.11/vfs'
>make: *** [all] Error 1

>I don't have the faintest idea as to what an Error 1 may mean.

Just look for the last error message above it (ignoring warnings).  It
couldn't find gpm.h, which means either you don't have it (you may
need the gpm-devel rpm), or you need to give a -I option to tell the
compiler where to look for it.

Quote:>Now MC won't even load.  I get the message:

>        "can't load library 'libncurses.so.3.o'"

>and nothing works, including reinstalling mc-3.1.2 via the RedHat rpm
>that I used the first time early this past summer.

That .o shouldn't be on the end.  When you reinstalled the mc-3.1.2
rpm, did you make sure you were using that version (probably
/usr/bin/mc) rather than the new version (probably /usr/local/bin/mc)
of mc?

--



    -- Chris Mars, "Stuck in Rewind"  |http://er4www.eng.ohio-state.edu/~funkr

 
 
 

1. Problems with midnight commander

Hi,

today I was happy to succeed in compiling midnight commander on our
notebook (860). But unlike V4.1.35, V4.5.52 is not running correctly.
Screen output is scrambled. There is AIX 4.1.5 running.

Any idea what to do?

Grretings,
--
Burkhard Schultheis
Tele Data Electronic, Wagnerstr. 10, D-76448 Durmersheim

Phone: +49-7245-9287-21, Fax: +49-7245-9287-30

2. Secure Routing

3. problem with midnight commander

4. Gzip

5. Font problem with Midnight Commander

6. MS archive extraction tool

7. Problem of Midnight Commander of Mandrake 9.0

8. : VI malfunction with MCC

9. Help: Small problem with Midnight Commander

10. Problem with Midnight commander 4.1

11. Problems Loading Midnight Commander

12. Problem with Midnight Commander

13. Midnight Commander 1.0 (was Mouseless Commander)