Static binaries on AIX and Solaris

From: Jason Grove (jgrove@wvu.edu)
Date: 12/20/02

  • Next message: Jesse Trucks: "Re: need help with public keys"
    Date: Fri, 20 Dec 2002 13:56:33 -0500
    From: Jason Grove <jgrove@wvu.edu>
    To: secureshell@securityfocus.com
    
    

    According to the FAQ on :
    <http://www.ssh.com/support/faq/secureshellserver/qa_191_687.html> I
    should be able to build the sftp-server as a static binary. However the
    when adding the --enable-static=yes to the configure line it still only
    builds the shared ones. I need to build the static version to chroot
    some people to a home directory. Does any one know how to do it?

    The info I found on ssh.com about building static binaries for AIX does
    not work for me:

    /home/grove/ssh/ssh-3.2.2>CFLAGS="-bnso -bl:/usr/lib/syscalls.exp"
    ./configure
    loading cache ./config.cache
    checking distribution consistency... done
    checking host system type... powerpc-ibm-aix4.3.2.0
    checking target system type... powerpc-ibm-aix4.3.2.0
    checking build system type... powerpc-ibm-aix4.3.2.0
    checking cached information... ok
    checking for a BSD compatible install... ./install-sh -c
    checking whether build environment is sane... yes
    checking whether make sets ${MAKE}... yes
    checking for working aclocal-1.4... missing
    checking for working autoconf... missing
    checking for working automake-1.4... missing
    checking for working autoheader... missing
    checking for working makeinfo... missing
    checking whether building in source directory... yes
    checking using purify... no
    checking for gcc... gcc
    checking for gcc... /usr/vac/bin/xlc
    checking whether the C compiler (/usr/vac/bin/xlc -bnso
    -bl:/usr/lib/syscalls.exp ) works... no
    configure: error: installation or configuration problem: C compiler
    cannot create executables.

    I have also tried using the /usr/vac/bin/cc with the -bstatic option.
    The compiler on AIX is IBM's Visual Age C++ 5.0....

    On solaris I am using Forte 6, but the --enable-static=yes is not picked
    up. (I looked in the configure file and the stuff for solaris is
    commented out, which contradicts their FAQ saying that it will work...)

    Any help would be appreciated....

    jason

    (PS going to OpenSSH is not an option...)

    -- 
    Jason Grove			| One Waterfront Place
    Principal Systems Administrator	| PO Box 6504
    WVU Information Systems		| Morgantown, WV 26506-6504
    Ph: 304.293.3011 x 2115		| E-Mail: jgrove@wvu.edu
    


    Relevant Pages

    • Lcd4linux ./configure and make problem.
      ... checking for gcc... ... checking for C compiler default output... ... configure: error: X11 headers or libraries not available: X11 driver ...
      (Debian-User)
    • gcc
      ... hi I have some probles to compile kmerlin-0.3.1 ... checking for gcc... ... configure: error: installation or configuration problem: C compiler cannot create executables. ...
      (Fedora)
    • Re: Help with make
      ... checking for gcc... ... checking whether the C compiler works... ... configure:667: checking for a BSD compatible install ...
      (comp.unix.solaris)
    • Re: [C++] Library implementation [Advanced material]
      ... Though I've managed to do alright with draft copies of the ... the compiler support library, ... GCC has a libsupc++.a file - I don't think you want to be ... C++ FAQ: http://www.parashift.com/c++-faq-lite/ ...
      (alt.comp.lang.learn.c-cpp)
    • Re: FC3 & irssi install probs
      ... you need to have compiler install. ... checking for gcc... ...
      (Fedora)