Likes Likes:  0
Resultaten 1 tot 3 van de 3

Onderwerp: Compiling ssh2.so

  1. #1
    Compiling ssh2.so
    geregistreerd gebruiker
    24 Berichten
    Ingeschreven
    04/02/08

    Locatie
    Nijmegen / Gelderland

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Registrar SIDN: nee
    KvK nummer: nvt
    Ondernemingsnummer: nvt

    Thread Starter

    Compiling ssh2.so

    Ik compile met 'pear build' de ssh2.so lib voor php.
    Dit lukt allemaal zoals je ziet:

    # pear build

    running: phpize
    Configuring for:
    PHP Api Version: 20041225
    Zend Module Api No: 20060613
    Zend Extension Api No: 220060519
    building in /var/tmp/pear-build-root/ssh2-0.10
    running: /root/libssh/libssh2-0.18/ssh2-0.10/configure
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for a sed that does not truncate output... /bin/sed
    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 whether gcc and cc understand -c and -o together... yes
    checking if compiler supports -R... no
    checking if compiler supports -Wl,-rpath,... yes
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking target system type... x86_64-unknown-linux-gnu
    checking for PHP prefix... /usr
    checking for PHP includes... -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib
    checking for PHP extension directory... /usr/lib/php5/20060613
    checking for PHP installed headers prefix... /usr/include/php5
    checking for re2c... no
    configure: WARNING: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
    checking for gawk... no
    checking for nawk... nawk
    checking if nawk is broken... no
    checking for ssh2 support... yes, shared
    checking for ssh2 files in default path... found in /usr/local
    checking for libssh2_banner_set in -lssh2... yes
    checking for libssh2_channel_forward_listen_ex in -lssh2... yes
    checking for libssh2_userauth_hostbased_fromfile_ex in -lssh2... yes
    checking for libssh2_poll in -lssh2... yes
    checking for libssh2_publickey_init in -lssh2... yes
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking whether ln -s works... yes
    checking how to recognise dependent libraries... pass_all
    checking how to run the C preprocessor... gcc -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 dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking how to run the C++ preprocessor... g++ -E
    checking for g77... no
    checking for xlf... no
    checking for f77... no
    checking for frt... no
    checking for pgf77... no
    checking for cf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for xlf90... no
    checking for f90... no
    checking for pgf90... no
    checking for pghpf... no
    checking for epcf90... no
    checking for gfortran... no
    checking for g95... no
    checking for xlf95... no
    checking for f95... no
    checking for fort... no
    checking for ifort... no
    checking for ifc... no
    checking for efc... no
    checking for pgf95... no
    checking for lf95... no
    checking for ftn... no
    checking whether we are using the GNU Fortran 77 compiler... no
    checking whether accepts -g... no
    checking the maximum length of command line arguments... 32768
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... no
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    checking for ld used by g++... /usr/bin/ld -m elf_x86_64
    checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC
    checking if g++ PIC flag -fPIC works... yes
    checking if g++ static flag -static works... yes
    checking if g++ supports -c -o file.o... yes
    checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    appending configuration tag "F77" to libtool
    configure: creating ./config.status
    config.status: creating config.h
    running: make
    /bin/sh /var/tmp/pear-build-root/ssh2-0.10/libtool --mode=compile gcc -I. -I/root/libssh/libssh2-0.18/ssh2-0.10 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ssh2-0.10/include -I/var/tmp/pear-build-root/ssh2-0.10/main -I/root/libssh/libssh2-0.18/ssh2-0.10 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c -o ssh2.lo
    mkdir .libs
    gcc -I. -I/root/libssh/libssh2-0.18/ssh2-0.10 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ssh2-0.10/include -I/var/tmp/pear-build-root/ssh2-0.10/main -I/root/libssh/libssh2-0.18/ssh2-0.10 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c -fPIC -DPIC -o .libs/ssh2.o
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c: In function 'zif_ssh2_methods_negotiated':
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c:483: warning: assignment discards qualifiers from pointer target type
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c:484: warning: assignment discards qualifiers from pointer target type
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c:485: warning: assignment discards qualifiers from pointer target type
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c:486: warning: assignment discards qualifiers from pointer target type
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c:487: warning: assignment discards qualifiers from pointer target type
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c:488: warning: assignment discards qualifiers from pointer target type
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c:489: warning: assignment discards qualifiers from pointer target type
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c:490: warning: assignment discards qualifiers from pointer target type
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c:491: warning: assignment discards qualifiers from pointer target type
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c:492: warning: assignment discards qualifiers from pointer target type
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c: In function 'zif_ssh2_fingerprint':
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c:536: warning: assignment discards qualifiers from pointer target type
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c: In function 'zif_ssh2_publickey_add':
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c:1038: warning: passing argument 1 of '_efree' discards qualifiers from pointer target type
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c: In function 'zif_ssh2_publickey_list':
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c:1097: warning: passing argument 4 of 'add_assoc_stringl_ex' discards qualifiers from pointer target type
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c:1098: warning: passing argument 4 of 'add_assoc_stringl_ex' discards qualifiers from pointer target type
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c:1106: warning: initialization discards qualifiers from pointer target type
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2.c:1107: warning: passing argument 2 of '_zend_hash_add_or_update' discards qualifiers from pointer target type
    /bin/sh /var/tmp/pear-build-root/ssh2-0.10/libtool --mode=compile gcc -I. -I/root/libssh/libssh2-0.18/ssh2-0.10 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ssh2-0.10/include -I/var/tmp/pear-build-root/ssh2-0.10/main -I/root/libssh/libssh2-0.18/ssh2-0.10 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /root/libssh/libssh2-0.18/ssh2-0.10/ssh2_fopen_wrappers.c -o ssh2_fopen_wrappers.lo
    gcc -I. -I/root/libssh/libssh2-0.18/ssh2-0.10 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ssh2-0.10/include -I/var/tmp/pear-build-root/ssh2-0.10/main -I/root/libssh/libssh2-0.18/ssh2-0.10 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /root/libssh/libssh2-0.18/ssh2-0.10/ssh2_fopen_wrappers.c -fPIC -DPIC -o .libs/ssh2_fopen_wrappers.o
    /bin/sh /var/tmp/pear-build-root/ssh2-0.10/libtool --mode=compile gcc -I. -I/root/libssh/libssh2-0.18/ssh2-0.10 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ssh2-0.10/include -I/var/tmp/pear-build-root/ssh2-0.10/main -I/root/libssh/libssh2-0.18/ssh2-0.10 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /root/libssh/libssh2-0.18/ssh2-0.10/ssh2_sftp.c -o ssh2_sftp.lo
    gcc -I. -I/root/libssh/libssh2-0.18/ssh2-0.10 -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ssh2-0.10/include -I/var/tmp/pear-build-root/ssh2-0.10/main -I/root/libssh/libssh2-0.18/ssh2-0.10 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /root/libssh/libssh2-0.18/ssh2-0.10/ssh2_sftp.c -fPIC -DPIC -o .libs/ssh2_sftp.o
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2_sftp.c: In function 'php_ssh2_sftp_dirstream_read':
    /root/libssh/libssh2-0.18/ssh2-0.10/ssh2_sftp.c:271: warning: passing argument 6 of 'php_basename' from incompatible pointer type
    /bin/sh /var/tmp/pear-build-root/ssh2-0.10/libtool --mode=link gcc -DPHP_ATOM_INC -I/var/tmp/pear-build-root/ssh2-0.10/include -I/var/tmp/pear-build-root/ssh2-0.10/main -I/root/libssh/libssh2-0.18/ssh2-0.10 -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -o ssh2.la -export-dynamic -avoid-version -prefer-pic -module -rpath /var/tmp/pear-build-root/ssh2-0.10/modules ssh2.lo ssh2_fopen_wrappers.lo ssh2_sftp.lo -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lssh2
    gcc -shared .libs/ssh2.o .libs/ssh2_fopen_wrappers.o .libs/ssh2_sftp.o -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -L/usr/local/lib /usr/local/lib/libssh2.so -Wl,-rpath -Wl,/usr/local/lib -Wl,-soname -Wl,ssh2.so -o .libs/ssh2.so
    creating ssh2.la
    (cd .libs && rm -f ssh2.la && ln -s ../ssh2.la ssh2.la)
    /bin/sh /var/tmp/pear-build-root/ssh2-0.10/libtool --mode=install cp ./ssh2.la /var/tmp/pear-build-root/ssh2-0.10/modules
    cp ./.libs/ssh2.so /var/tmp/pear-build-root/ssh2-0.10/modules/ssh2.so
    cp ./.libs/ssh2.lai /var/tmp/pear-build-root/ssh2-0.10/modules/ssh2.la
    PATH="$PATH:/sbin" ldconfig -n /var/tmp/pear-build-root/ssh2-0.10/modules
    ----------------------------------------------------------------------
    Libraries have been installed in:
    /var/tmp/pear-build-root/ssh2-0.10/modules

    If you ever happen to want to link against installed libraries
    in a given directory, LIBDIR, you must either use libtool, and
    specify the full pathname of the library, or use the `-LLIBDIR'
    flag during linking and do at least one of the following:
    - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
    during execution
    - add LIBDIR to the `LD_RUN_PATH' environment variable
    during linking
    - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
    - have your system administrator add LIBDIR to `/etc/ld.so.conf'

    See any operating system documentation about shared libraries for
    more information, such as the ld(1) and ld.so(8) manual pages.
    ----------------------------------------------------------------------

    Build complete.
    (It is safe to ignore warnings about tempnam and tmpnam).

    running: make INSTALL_ROOT="/var/tmp/pear-build-root/install-ssh2-0.10" install
    Installing shared extensions: /var/tmp/pear-build-root/install-ssh2-0.10/usr/lib/php5/20060613/
    running: find "/var/tmp/pear-build-root/install-ssh2-0.10" -ls
    14140369 4 drwxr-xr-x 3 root root 4096 jun 18 21:37 /var/tmp/pear-build-root/install-ssh2-0.10
    14140394 4 drwxr-xr-x 3 root root 4096 jun 18 21:37 /var/tmp/pear-build-root/install-ssh2-0.10/usr
    14140395 4 drwxr-xr-x 3 root root 4096 jun 18 21:37 /var/tmp/pear-build-root/install-ssh2-0.10/usr/lib
    14140396 4 drwxr-xr-x 3 root root 4096 jun 18 21:37 /var/tmp/pear-build-root/install-ssh2-0.10/usr/lib/php5
    14140397 4 drwxr-xr-x 2 root root 4096 jun 18 21:37 /var/tmp/pear-build-root/install-ssh2-0.10/usr/lib/php5/20060613
    14140393 204 -rwxr-xr-x 1 root root 201396 jun 18 21:37 /var/tmp/pear-build-root/install-ssh2-0.10/usr/lib/php5/20060613/ssh2.so


    Een probleem alleen is alleen dat het ssh2.so bestand na het compilene verdwijnt. Misschien omdat dit bestand in /var/tmp word weg geschreven ? Ik weet het niet. Weet iemand wat het probleem is?

    Leon



  2. #2
    Compiling ssh2.so
    geregistreerd gebruiker
    3.709 Berichten
    Ingeschreven
    22/05/05

    Post Thanks / Like
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    24 Berichten zijn liked


    Naam: Jeroen

    updatedb
    locate ssh2.so

    en dan kijken waar hij terecht is gekomen

    Hier staat hij niet: /var/tmp/pear-build-root/ssh2-0.10/modules ?

    Als je hem hebt gevonden zou ik hem even naar de extensions directory moven, in plaats van in /tmp te laten staan.

  3. #3
    Compiling ssh2.so
    geregistreerd gebruiker
    24 Berichten
    Ingeschreven
    04/02/08

    Locatie
    Nijmegen / Gelderland

    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    0 Berichten zijn liked


    Registrar SIDN: nee
    KvK nummer: nvt
    Ondernemingsnummer: nvt

    Thread Starter
    Dat is dus het rare, als je tijdens het compilene in de map /var/tmp/pear-build-root zie je wel mappen en bestanden te voor schijnkomen, maar als hij klaar is, is de map /var/tmp/pear-build-root weer helemaal leeg...

    Kan anders iemand gewoon zijn ssh2.so naar mij sturen ? Het wil niet lukken. (ik heb zelf een amd64 processor (dualcore) in me server zitten en heb thuis een P4 server... (als je beide hebt zou mooi zijn (als er verschil in zit))
    Laatst gewijzigd door vdvleon; 19/06/08 om 17:50. Reden: Automerged Dubbelpost

Labels voor dit Bericht

Webhostingtalk.nl

Contact

  • Rokin 113-115
  • 1012 KP, Amsterdam
  • Nederland
  • Contact
© Copyright 2001-2021 Webhostingtalk.nl.
Web Statistics