[5832] in RedHat Linux List

home help back first fref pref prev next nref lref last post

MC/gpm Problems

daemon@ATHENA.MIT.EDU (Stephen P. Molnar)
Sun Nov 24 11:41:21 1996

Date: Sun, 24 Nov 1996 11:40:09 -0500
To: redhat-list@redhat.com
From: "Stephen P. Molnar" <smolnar@postbox.acs.ohio-state.edu>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

From an annoying non-root glitch to it doesn't work at all any more!


 I've noticed that the mouse functions only when I am logged on as
root, not when I log on as a user.  For example as root I can scroll a
box by clicking on the top or the bottom and it's possible to invoke a
function key by clicking at the bottom of the screen.  This
functionality is lost if logged on other than as root.

Most annoying.

As a result of this I received the following.

This is true and is a flaw in mc.  go to http://stetk.oulu.fi/~jtklehto/mc/
which is the home page of mc and search the mailing list archives us "mouse
problem" as keywords.  One of the developers posted a small patch to mouse.c
in the source that fixes the problem.  I applied the patch he posted,
rebuilt, and it worked just fine.  

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!!!


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post