Can't compile under ubuntu

Help
johnny2k
2011-05-11
2013-04-25
  • johnny2k
    johnny2k
    2011-05-11

    ubuntu@ubuntu-machine:~/projects/PDCurses-3.4$ ./configure
    checking for gcc… gcc
    checking for C compiler default output file name… a.out
    checking whether the C compiler works… yes
    checking whether we are cross compiling… no
    checking for suffix of executables…
    checking for suffix of object files… o
    checking whether we are using the GNU C compiler… yes
    checking whether gcc accepts -g… yes
    checking for gcc option to accept ISO C89… none needed
    checking build system type… i686-pc-linux-gnu
    checking host system type… i686-pc-linux-gnu
    checking target system type… i686-pc-linux-gnu
    checking for maximum signal specifier:… NSIG
    checking for ranlib… ranlib
    checking for a BSD-compatible install… /usr/bin/install -c
    checking whether make sets $(MAKE)… yes
    checking how to run the C preprocessor… gcc -E
    checking for grep that handles long lines and -e… /bin/grep
    checking for egrep… /bin/grep -E
    checking for ANSI C header files… yes
    checking for sys/types.h… yes
    checking for sys/stat.h… yes
    checking for stdlib.h… yes
    checking for string.h… yes
    checking for memory.h… yes
    checking for strings.h… yes
    checking for inttypes.h… yes
    checking for stdint.h… yes
    checking for unistd.h… yes
    checking sys/ipc.h usability… yes
    checking sys/ipc.h presence… yes
    checking for sys/ipc.h… yes
    checking fcntl.h usability… yes
    checking fcntl.h presence… yes
    checking for fcntl.h… yes
    checking sys/time.h usability… yes
    checking sys/time.h presence… yes
    checking for sys/time.h… yes
    checking sys/select.h usability… yes
    checking sys/select.h presence… yes
    checking for sys/select.h… yes
    checking dlfcn.h usability… yes
    checking dlfcn.h presence… yes
    checking for dlfcn.h… yes
    checking dl.h usability… no
    checking dl.h presence… no
    checking for dl.h… no
    checking whether time.h and sys/time.h may both be included… yes
    checking for main in -lsocket… no
    checking for main in -lnls… no
    checking whether gcc understand -c and -o together… yes
    checking return type of signal handlers… void
    checking for vsscanf… yes
    checking for usleep… yes
    checking for poll… yes
    checking for vsnprintf… yes
    checking for X… no
    configure: error: Cannot find required header file Intrinsic.h; PDCurses cannot be configured
    ubuntu@ubuntu-machine:~/projects/PDCurses-3.4$

     
  • PDCurses uses X on unix systems.  Use ncurses if you don't want to be bothered with X or install the xorg development package if you do.  (Yes, it is a pain that there is no installable package.)

     
  • johnny2k
    johnny2k
    2011-05-11

    i install xorg-devel but ./configure say
    configure: error: Cannot find required X library; libXt. PDCurses cannot be configured

     
  • Right, the Athena toolkit if memory serves.  yum provides '*/libXt.*' 

    You might need one more and then you should be there.

     
  • johnny2k
    johnny2k
    2011-05-11

    libxt-dev && libxt6 already installed

     
  • Yes, isn't linux packaging wonderful?  You need the xxx-devel version of those packages as well.

     
  • johnny2k
    johnny2k
    2011-05-11

    oh my god.

     
  • The underlying problem is that MH_CHECK_LIB  macro checks for libraries in hardcoded locations, and the default does not know about new Debian multiarch  locations.

    $ dpkg -S libXt.so
    libxt-dev: /usr/lib/i386-linux-gnu/libXt.so

    Passing to configure the correct new location at your site should help, in my box something like

    $ ./configure -x-libraries=/usr/lib/i386-linux-gnu/

    I have recently started playing with libtool (just for fun) and used PDcurses as my testing target. It is still preliminary and all the build process is done without touching upstream files, so I can safely test things under Debian without putting much noise in diffs. Will comment in a better forum (Open discussion).