Building PDCurses-3.2 under HPUX-11

  • Warren W. Gay VE3WWG

    I am attempting to build PDcurses under HPUX, using the
    following configuration options:

    CPPFLAGS="-I$HOME/local/include -I$HOME/include \   -I/usr/include/X11 -I/usr/contrib/X11R6/include" \ LDFLAGS="-L$HOME/local/lib -L$HOME/lib -L/usr/lib/X11R4" \   ./configure --prefix=$HOME/local --x-includes=/usr/contrib/X11R6/include

    The configure script produces the following error:

    + ./configure --prefix=/home/proghome/wgay/local --x-includes=/usr/contrib/X11R6/include
    + CPPFLAGS=-I/home/proghome/wgay/local/include -I/home/proghome/wgay/include -I/usr/include/X11 -I/$
    checking for gcc... cc
    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... no
    checking whether cc accepts -g... yes
    checking for cc option to accept ISO C89... none needed
    checking build system type... hppa2.0w-hp-hpux11.11
    checking host system type... hppa2.0w-hp-hpux11.11
    checking target system type... hppa2.0w-hp-hpux11.11
    checking for maximum signal specifier:... NSIG 
    checking for ranlib... ranlib
    checking for a BSD-compatible install... /opt/imake/bin/install -c
    checking whether make sets $(MAKE)... yes
    checking how to run the C preprocessor... cc -E
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/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... no
    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... no
    checking sys/select.h presence... no
    checking for sys/select.h... no
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking dl.h usability... yes
    checking dl.h presence... yes
    checking for dl.h... yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    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 cc 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... libraries , headers /usr/contrib/X11R6/include
    ./configure[4780]: : Execute permission denied.
    ./configure[4780]: /usr/X11/include:  not found.
    configure: error: Cannot find required X library; libXaw. PDCurses cannot be configured

    The funky stuff happens here in configure:

    MH_X11R6_LIBS="SM ICE Xext"

    mh_lib_dirs="$x_libraries `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`"

    for ac_dir in $mh_lib_dirs ; do
            for mh_xsm in libSM.a libSM.dylib; do
              if test -r $ac_dir/$mh_xsm; then
                break 2

    At the line where mh_lib_dirs="..."

    It looks like sed is removing the "include" part, but we have
    no /usr/X11/include under HPUX. I am also not sure of the
    source of the "Execution permission denied" problem that is

    This is not high priority for me, but I was testing PDcurses for
    compatible builds for use with my own project (see project

    Thanks, Warren.

    • William McBrine

      William McBrine - 2007-06-13

      Unfortunately I don't have access to an HPUX system to test it. (Last I checked, the "TestDrive" service didn't have the X dev stuff installed. I did buy an antique PA-RISC machine a few months ago, but it only runs HPUX 9. I haven't tried building on it yet.)

      The configure script is kind of a nightmare.

      Do any earlier versions work?

      • Warren W. Gay VE3WWG

        I wouldn't bother with HPUX 9. Even 10.x is pretty old by
        today's standards. If I get enough free time, I'll frankenstein
        the configure script a bit for more clues. I was just hoping
        for a shortcut ;-)

        BTW, the Cygwin environment is pretty good these days, including
        their X window ports. I do a lot of my development there now,
        rather than run a separate Linux box. I do find that I had
        to set up a couple of special *.bat files to get it to launch
        nicely from the Windows task bar. But once you get that
        done, the rest is rather convenient. If you're interested, I can
        share the bat files I use.

        Thanks, Warren.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks