Ticket #2054 (closed defect: worksforme)

Opened 15 years ago

Last modified 13 years ago

Incorrect configure

Reported by: pavlinux Owned by:
Priority: major Milestone: 4.7
Component: mc-core Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

1.
# mc
bash: /usr/share/mc/bin/mc-wrapper.sh: No such file or directory

2. Linking directory set to /usr/lib, but in configure i specified --libdir=/usr/lib64

....

gcc-4.5 -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -DDATADIR=\""/usr/share/mc/"\" -DLOCALEDIR=\""/usr/share/locale"\" -DSYSCONFDIR=\""/usr/share/mc/"\" -DSAVERDIR=\""/usr/share/mc"\" -I/usr/include -L/usr/lib

My Configure script:

#!/bin/sh                                 

unset CC CFLAGS

make clean;            
make distclean;        

CC="gcc-4.5"

CFLAGS="-funit-at-a-time -frecord-gcc-switches \
        -m64 -g0 -O3 -march=native -mtune=native \
        -funroll-all-loops -ftree-vectorize -pipe  \
        -fomit-frame-pointer -fmerge-all-constants \
        -ffreestanding -D_FORTIFY_SOURCE=2"

export CC CFLAGS

./configure --prefix=/usr \
            --sysconfdir=/usr/share \
            --sharedstatedir=/usr/share \
            --libexecdir=/usr/share \
            --localstatedir=/var \
            --libdir=/usr/lib64 \
            --includedir=/usr/include \
            --datarootdir=/usr/share \
            --datadir=/usr/share \
            --infodir=/usr/share/info \
            --localedir=/usr/share/locale \
            --mandir=/usr/share/man \
            --build="x86_64-gnu-linux" \
            --host="x86_64-gnu-linux" \
            --disable-extcharset \
            --enable-netcode \
            --enable-background \
            --enable-utf8 \
            --with-mmap \
            --with-x \
            --with-vfs \
            --with-mcfs \
            --with-samba \
            --with-configdir=/etc/samba \
            --with-codepagedir=/usr/lib64/samba/codepages \
            --without-gpm-mouse \
            --with-subshell \
            --with-screen=slang \
            --with-edit \
            --without-ext2undel \
            --without-libintl-prefix \
            --without-libiconv-prefix;

Change History

comment:1 Changed 15 years ago by pavlinux

# ls /usr/share/mc
Syntax          extfs.d            mc.csh      mc.hint.hu  mc.hint.sr  mc.hlp.hu  mc.keymap          mc.menu.sr
cedit.menu      filehighlight.ini  mc.ext      mc.hint.it  mc.hint.uk  mc.hlp.it  mc.keymap.default  mc.sh
cons.saver      mc-wrapper.csh     mc.hint     mc.hint.nl  mc.hint.zh  mc.hlp.pl  mc.keymap.emacs    sfs.ini
edit.indent.rc  '''mc-wrapper.sh'''      mc.hint.cs  mc.hint.pl  mc.hlp      mc.hlp.ru  mc.lib             skins
edit.spell.rc   mc.charsets        mc.hint.es  mc.hint.ru  mc.hlp.es   mc.hlp.sr  mc.menu            syntax

mc-wrapper.sh exist in /usr/share/mc/ but not in /usr/share/mc/bin

comment:2 Changed 15 years ago by pavlinux

This very old bug.

RECOMENDATION

Is configured all modifiable parameters on non-standard values.
For ex.

./configure --prefix=/usr/xyz/mcbin \
            --sysconfdir=/usr/fake/abcdef \
            --sharedstatedir=/usr/fakestate\foo \
            --libexecdir=/usr/fakexec \
            --localstatedir=/fakevar/mcvar \
            --libdir=/usr/lib9999 \
            --includedir=/usr/fakeinclude \
            --datarootdir=/usr/fakeroot \
            --datadir=/usr/ooo/fakedata \
            --infodir=/usr/zzz/fakeinfo \
            --localedir=/usr/ijk/fakelocale \
            --mandir=/usr/lmn/fakeman;

And try run. 100% that will not work :)

comment:3 in reply to: ↑ description Changed 15 years ago by and

Hi pavlinux

Replying to pavlinux:

1.
# mc
bash: /usr/share/mc/bin/mc-wrapper.sh: No such file or directory

looks like an obsolete bash alias to me.
Fix your bash alias to correct mc-wrapper.sh location.

2. Linking directory set to /usr/lib, but in configure i specified --libdir=/usr/lib64

You using --with-screen=slang so please try this to change your libdir wish:

--with-slang-libs=/usr/lib64

comment:4 Changed 13 years ago by slavazanko

  • Status changed from new to closed
  • Resolution set to worksforme
  • Branch state set to no branch
Note: See TracTickets for help on using tickets.