SourceForge has been redesigned. Learn more.

#590 Installation on HP-UX 11.11

clisp (524)

in principle it is possible to install clisp on HP-UX. But I had some problems.

You have to configure with --without-dynamic-module. Otherwise you get an error later.
You could put this as a note in unix/PLATFORMS.

unix/PLATFORM says, you should be able to compile clisp with "cc -Aa -z -D_HPUX_SOURCE"
But at least you would need -Ae instead of -Aa. And even then you get either a undefined symbol divu_6432_3232_.
(There was a mail in the mailing list about that). But much more success you have with gcc,
which is fine for me.

In the makemake (clisp-4.49was a match of hpux9* and hpux10*, but not hpux11, but this seems to be fixed in the CVS version.

In the Makefile there is a line

m=`cd ../modules/$@; pwd`; \

unfortunatly it doesn't work on HP-UX. (maybe the string contains a newline or so. it seems to be good, but I can't
do an `ls $m')

I replaced it by
m=$(realpath ../modules/$@) ; \ because I have GNU make here and I changed the next line to

if test -f $$m/configure -a \( ! -f $@/config.status -o $$m/configure -nt $@/config.status \); then ( cd $@ ; $(RMRF) gllib;\

(This was also needed with make SHELL=bash. Is my bash 2.04 too old?).

With ffcall installed, i get this error (CVS Version):
subrkw.d: In function 'init_subr_tab_2':
subrkw.d:219: error: 'struct symbol_tab_' has no member named 'S_Krequire'
subrkw.d:220: error: 'struct subr_tab_' has no member named 'D_open_foreign_library'

So I configured with --without-ffcall

I ignored this warning
time.d:565: warning: integer overflow in expression

The last problem (solved with #if 0)

.../clisp/src/gllib/sys/socket.h:398: error: redefinition of 'struct sockaddr_storage'

and then finally:
i i i i i i i ooooo o ooooooo ooooo ooooo
I I I I I I I 8 8 8 8 8 o 8 8
I \ `+' / I 8 8 8 8 8 8
\ `-+-' / 8 8 8 ooooo 8oooo
`-__|__-' 8 8 8 8 8
| 8 o 8 8 o 8 8
------+------ ooooo 8oooooo ooo8ooo ooooo 8

Welcome to GNU CLISP 2.49+ (2010-07-17) <>


  • Christoph Bauer

    Christoph Bauer - 2011-03-11

    after upgrading to bash 4.2, i don't need the changes in the Makefile (realpath + test) anymore

  • Sam Steingold

    Sam Steingold - 2011-03-23
    • status: open --> pending
  • Sam Steingold

    Sam Steingold - 2011-03-23

    so, did upgrading bash fix all your problems?

  • Sam Steingold

    Sam Steingold - 2011-03-23

    this is the standard request for more information.
    1. what is your platform?
    ("uname -a" on a Unix system)
    compiler version? libc (on Linux)?
    2. where did you get the sources? when?
    (absolute dates are prefered over the relative ones)
    3. how did you build CLISP? (what command, options &c)
    please do a clean build (remove your build directory and
    build CLISP with "./configure --build build" or at least
    do a "make distclean" before "make")
    4. if you are using pre-built binaries, the problem is likely
    to be in the incompatibilities between the platform on which
    the binary was built and yours;
    please try compiling the sources.
    5. what is the output of (lisp-implementation-version)?
    6. what is the value of *features*?
    7. please supply the full output (copy and paste)
    of all the error messages.
    If you cannot build CLISP, you can obviously skip 5 and 6,
    but then you should provide more information in 1.
    please see <>
    for more information.

    PS. This bug report is now marked "pending"
    and will auto-close unless you respond
    (in which case it will auto-re-open).

  • Christoph Bauer

    Christoph Bauer - 2011-03-29
    • status: pending --> open
  • Christoph Bauer

    Christoph Bauer - 2011-03-29

    For completeness 1-6:

    1. HP-UX kl-hp1 B.11.11 U 9000/785 unknown unknown HP-UX
    2. CVS, 29 march 2011
    3. with the new bash, this works with untouched sources now:
    export ac_cv_type_struct_sockaddr_storage=yes
    ./configure --without-ffcall --without-dynamic-modules --prefix=...
    cd src
    make && make install
    4. n/a
    5. "2.49+ (2010-07-17) (built 3509783157) (memory 3509783956)"
    quicklisp is already loaded :-)

    With my new trick
    export ac_cv_type_struct_sockaddr_storage=yes
    I can install clisp on my system. Please close the Bug.

  • Sam Steingold

    Sam Steingold - 2011-03-29
    • status: open --> closed-works-for-me
  • Sam Steingold

    Sam Steingold - 2011-03-29

    glad to here that clisp works for you.
    please report the ac_cv_type_struct_sockaddr_storage issue to the gnulib maintainers (; this variable comes from their file sys_socket_h.m4.


Log in to post a comment.