[Top][All Lists]

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

Re: Ncurses/dialog static linking on 64bit problem

From: Thomas Dickey
Subject: Re: Ncurses/dialog static linking on 64bit problem
Date: Thu, 10 May 2007 06:48:48 -0400 (EDT)

On Wed, 9 May 2007, VinX wrote:

Thomas Dickey wrote:
thanks - I'm interested to see what's breaking...

i tried building with this command sequence:
wget -c "ftp://invisible-island.net/ncurses/ncurses-5.6.tar.gz";
wget -c "ftp://invisible-island.net/dialog/dialog.tar.gz";
tar xzf ncurses-5.6.tar.gz
tar xzf dialog.tar.gz
mkdir ncurses_build
mkdir dialog_build

export CC="gcc -static"

#building NCURSES
cd ncurses_build/

.../ncurses-5.6/configure --with-trace --without-gpm --with-debug \
                        --without-dlsym --enable-warnings       \

#building DIALOG
cd ../dialog_build

#in this package the tracing option is active by default
.../dialog-1.1-20070409/configure --with-warnings

#edit LIBS value on makefile
# -> -L/home/vinx/test/ncurses_build/lib/ -lncurses -lm -L/lib


i have lauced this command:
export NCURSES_TRACE=0xffff
../dialog --trace /home/vinx/output.log --msgbox "Hello World" 6 20
and in the output file i have only dumped key pressed... in this example:

That's "/home/vinx/output.log".  But also there should be a file named
"trace" which is created by setting the NCURSES_TRACE variable and
linking to the --with-trace'd ncurses.  You can check if the static
executable has trace functions, since "nm" would show "trace", "_tracef"
and several other "_traceXXX" symbols.

Thomas E. Dickey

reply via email to

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