[Top][All Lists]

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

Re: Problem building/compiling

From: Thomas Dickey
Subject: Re: Problem building/compiling
Date: Wed, 1 Jul 2020 17:06:04 -0400
User-agent: NeoMutt/20170113 (1.7.2)

On Wed, Jul 01, 2020 at 09:19:03PM +0100, Chris Green wrote:
> I am trying to compile vile on a web hosting system where I have a
> Linux ssh login account.  The C preprocessor is problematic:-
>     bash-3.2$ pwd
>     /var/sites/o/
>     bash-3.2$ ./configure
>     checking build system type... x86_64-unknown-linux-gnu
>     checking host system type... x86_64-unknown-linux-gnu
>     Configuring for linux-gnu
>     checking for gcc... gcc
>     checking for C compiler default output... a.out
>     checking whether the C compiler works... yes
>     checking whether we are cross compiling... no
>     checking for executable suffix... 
>     checking for object suffix... o
>     checking whether we are using the GNU C compiler... yes
>     checking whether gcc accepts -g... yes
>     checking how to run the C preprocessor... /lib/cpp
>     configure: error: C preprocessor "/lib/cpp" fails sanity check
>     bash-3.2$ 

I'd be inclined to see why the test failed.  config.log shows some
information, but getting details requires editing the configure script
(since it doesn't show a diff between actual and expected).  But seeing
config.log would be useful.
> Are there any obvious things to try in order to get round this problem?

I'd look to see what version of ncurses is used.
Of course, if it's busybox, there's not much to be done.

If you've got gcc (and ld), you probably have ldd.
ldd run on bash is a quick way to see (I'm using Debian at the moment): (0x00007ffdf8bc8000) => /lib/x86_64-linux-gnu/ 
(0x00007f0eb364f000) => /lib/x86_64-linux-gnu/ (0x00007f0eb344b000) => /lib/x86_64-linux-gnu/ (0x00007f0eb30ac000)
        /lib64/ (0x00007f0eb3879000)

"tinfo" is the low-level half of ncurses.  I'd compile vile with another
machine with the right architecture and version of ncurses (generally
ABI 5's are compatible across releases, ABI 6's probably the same but
less often encountered on limited accounts).

Also - you'll need terminal descriptions.  If your remote ssh account
has "infocmp", it's probably workable.

If you don't have ldd and infocmp, it's more work :-)
> Alternatively is there a way to create an executable image which
> includes all libraries etc., like appimage format?  The system reports
> its architecture etc. as:-

not easily - there's a lot of platforms, and only half of the ones I use
are Linux-based...

>     bash-3.2$ uname -a
>     Linux 2.6.32-754.27.1.el6.x86_64 #1 SMP Tue Jan 28 
> 14:11:45 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Thomas E. Dickey <>

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]