Announcement

Collapse
No announcement yet.

SSH error after generating the image

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SSH error after generating the image

    Hi,
    if I add SSHd in my image, I get various problems....

    configure: error: *** Can't find recent OpenSSL libcrypto (see config.log for details) ***
    make[4]: *** [build/build] Error 1
    make[4]: Leaving directory `/home/lantronix/linuxsdk/linux/user/ssh'
    make[3]: *** [ssh] Error 2
    make[3]: Leaving directory `/home/lantronix/linuxsdk/linux/user'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/lantronix/linuxsdk/linux/user'
    make[1]: *** [subdirs] Error 1
    make[1]: Leaving directory `/home/lantronix/linuxsdk/linux'
    make: *** [build] Error 2
    [email protected]:~/linuxsdk$


    after this I added the libcrypto and I got an other error

    make[4]: Entering directory `/home/lantronix/linuxsdk/linux/lib/libssh'
    (cd build; cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_C_COMPILER="ucfront-gcc m68k-uclinux-gcc -mcpu=5208 -DCONFIG_COLDFIRE" -DCMAKE_CXX_COMPILER="ucfront-g++ m68k-uclinux-g++ -mcpu=5208 -DCONFIG_COLDFIRE" -DWITH_LIBZ=OFF -DWITH_SFTP=OFF -DWITH_STATIC_LIB=ON -DWITH_DEBUG_CALLTRACE=OFF -DOPENSSL_INCLUDE_DIRS=/home/lantronix/linuxsdk/linux/include ../libssh-0.4.0)
    -- The C compiler identification is unknown
    -- Check for working C compiler: /home/lantronix/linuxsdk/linux/tools/ucfront-gcc
    -- Check for working C compiler: /home/lantronix/linuxsdk/linux/tools/ucfront-gcc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Found ZLIB: /usr/lib/libz.so
    -- checking for module 'openssl'
    -- package 'openssl' not found
    CMake Error at CMakeLists.txt:51 (message):
    Could not find OpenSSL or GCrypt


    -- Configuring incomplete, errors occurred!
    make[4]: *** [build/build] Error 1
    make[4]: Leaving directory `/home/lantronix/linuxsdk/linux/lib/libssh'
    make[3]: *** [libssh] Error 2
    make[3]: Leaving directory `/home/lantronix/linuxsdk/linux/lib'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/lantronix/linuxsdk/linux/lib'
    make[1]: *** [subdirs] Error 1
    make[1]: Leaving directory `/home/lantronix/linuxsdk/linux'
    make: *** [build] Error 2
    [email protected]:~/linuxsdk$

    So I added the Gcrypt and got an other error,...


    make[4]: Leaving directory `/home/lantronix/linuxsdk/linux/user/openssl'
    [ ! -d "libgpg-error" ] || ( touch libgpg-error/.sgbuilt_lib && make -j1 -C libgpg-error ) || exit $?
    make[4]: Entering directory `/home/lantronix/linuxsdk/linux/lib/libgpg-error'
    make[4]: *** No targets specified and no makefile found. Stop.
    make[4]: Leaving directory `/home/lantronix/linuxsdk/linux/lib/libgpg-error'
    make[3]: *** [libgpg-error] Error 2
    make[3]: Leaving directory `/home/lantronix/linuxsdk/linux/lib'
    make[2]: *** [all] Error 2
    make[2]: Leaving directory `/home/lantronix/linuxsdk/linux/lib'
    make[1]: *** [subdirs] Error 1
    make[1]: Leaving directory `/home/lantronix/linuxsdk/linux'
    make: *** [build] Error 2
    [email protected]:~/linuxsdk$


    any idea?

  • #2
    It looks like to me that the build is expecting something to be in the libgpg-error folder and the build doesn't like the fact that there is nothing there?!? In my build (SDK 2.0.0.0) there is a folder in that directory (linux/lib/libgpg-error) called libgpg-error-1.7 and a "this" link to that directory. See if that folder (linux/lib/libgpg-error) is empty or not. Also, what SDK are you using?

    wazilian
    CentOS 5.4
    Matchport AR
    Linux SDK 2.0.0.0

    Comment


    • #3
      Sdk

      Hi, the folder is not empty. ==> libgpg-error-1.7 & "this" link
      SDK is version 2.0

      Comment


      • #4
        I'm also getting libgpg-error build errors

        I also am trying to use SSH so I can get SFTP installed. Dropbear SSH works but I get build errors when I configure in SCP with dropbear. So I switched to SSH and got the same link errors. I have tried configuring in the old libcrypt. That did not work and so I switched to configuring in libgcrypt.

        The problem is that libgpg-error will not build properly. The "this" pointer points to the correct file (libgpg-error-1.7) in the directory for this library.

        Here is my log:

        make[3]: Entering directory `/home/jcarr/jcarr/xportpro_sdk_2/linux/lib'
        Making symlinks in lib/
        make[3]: Leaving directory `/home/jcarr/jcarr/xportpro_sdk_2/linux/lib'
        make[3]: Entering directory `/home/jcarr/jcarr/xportpro_sdk_2/linux/lib'
        [ ! -d "../user/openssl" ] || ( touch ../user/openssl/.sgbuilt_lib && make -j1 -C ../user/openssl ) || exit $?
        [ ! -d "libcrypt_old" ] || ( touch libcrypt_old/.sgbuilt_lib && make -j1 -C libcrypt_old ) || exit $?
        [ ! -d "libgpg-error" ] || ( touch libgpg-error/.sgbuilt_lib && make -j1 -C libgpg-error ) || exit $?
        [ ! -d "zlib" ] || ( touch zlib/.sgbuilt_lib && make -j1 -C zlib ) || exit $?
        make[4]: Entering directory `/home/jcarr/jcarr/xportpro_sdk_2/linux/lib/libgpg-error'
        make[4]: warning: -jN forced in submake: disabling jobserver mode.
        make[4]: *** No targets specified and no makefile found. Stop.
        make[4]: Leaving directory `/home/jcarr/jcarr/xportpro_sdk_2/linux/lib/libgpg-error'
        make[3]: *** [libgpg-error] Error 2


        Has anyone found a solution to this problem as this email thread never indicated what the solution is?

        Blort

        Comment


        • #5
          It appears that this has never been resolved. I'm running the latest sdk. All compiles with openssh turned on (target has /bin/ssh) but I need sshd. Have tried turning on dropbear and sshd and ssh keygen. Neither works. Any help would be appreciated. config files and makelog available.

          Comment

          Working...
          X