Bug 1187 - Unable to build OpenSSH 4.3p2 using OpenSSL 0.9.8a
Summary: Unable to build OpenSSH 4.3p2 using OpenSSL 0.9.8a
Status: CLOSED INVALID
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: ssh (show other bugs)
Version: 4.3p2
Hardware: amd64 Solaris
: P2 major
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-29 04:02 AEST by George Papadopoulos
Modified: 2006-10-07 11:45 AEST (History)
1 user (show)

See Also:


Attachments
output from the execution of the configure (508.92 KB, application/octet-stream)
2006-05-02 02:01 AEST, George Papadopoulos
no flags Details
output from the execution of the configure (508.92 KB, text/html)
2006-05-02 02:05 AEST, George Papadopoulos
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description George Papadopoulos 2006-04-29 04:02:45 AEST
Hi, 

Having problems complying OpenSSH 4.3p2 using OpenSSL 0.9.8a on an Solaris 10 (AMD based HP Blade). 

I've complied openssl and build in under /opt/openssl (as I dont prefer the default location of /usr/local/ssl). Attempting to build openssh, and eventhough I'm using the following command:

./configure --prefix=/opt/openssh --with-ssl-dir=/opt/openssl

Still make will look under /usr/local/ssl/lib and and not /opt/openssl/lib. The make fails with the following:

gcc -o ssh ssh.o readconf.o clientloop.o sshtty.o  sshconnect.o sshconnect1.o sshconnect2.o -L. -Lopenbsd-compat/ -L/usr/local/ssl/lib -R/usr/local/ssl/lib -lssh -lopenbsd-compat -lresolv -lcrypto -lrt -lz -lsocket -lnsl
Undefined                       first referenced
 symbol                             in file
EVP_aes_192_cbc                     ./libssh.a(cipher.o)
EVP_aes_256_cbc                     ./libssh.a(cipher.o)
ld: fatal: Symbol referencing errors. No output written to ssh
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `ssh'

========

Any assistance is much appreciated

Thanks
Comment 1 Darren Tucker 2006-04-29 09:35:09 AEST
Try doing a "make distclean" before running configure, or configure a freshly unpacked tarball.
Comment 2 George Papadopoulos 2006-05-01 12:43:38 AEST
I've cleaned the distribution many times and used a new tar bundle, but still get the same result. The last part of ./configure appears as 

OpenSSH has been configured with the following options:
                     User binaries: /opt/openssh/bin
                   System binaries: /opt/openssh/sbin
               Configuration files: /opt/openssh/etc
                   Askpass program: /opt/openssh/libexec/ssh-askpass
                      Manual pages: /opt/openssh/man/manX
                          PID file: /var/run
  Privilege separation chroot path: /var/empty
            sshd default user PATH: /usr/bin:/bin:/usr/sbin:/sbin:/opt/openssh/bin
   (If PATH is set in /etc/default/login it will be used instead. If
   used, ensure the path to scp is present, otherwise scp will not work.)
                    Manpage format: man
                       PAM support: no
                 KerberosV support: no
                 Smartcard support: no
                     S/KEY support: no
              TCP Wrappers support: no
              MD5 password support: no
                   libedit support: no
       IP address in $DISPLAY hack: no
           Translate v4 in v6 hack: no
                  BSD Auth support: no
              Random number source: OpenSSL internal ONLY

              Host: i386-pc-solaris2.10
          Compiler: gcc
    Compiler flags: -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare
Preprocessor flags: -I/usr/local/ssl/include
      Linker flags: -L/usr/local/ssl/lib -R/usr/local/ssl/lib
         Libraries:   -lresolv -lcrypto -lrt -lz -lsocket -lnsl


Still looking for /usr/local/ssl and not /opt/openssl/ssl

Comment 3 Darren Tucker 2006-05-02 01:20:47 AEST
Could you please attach the config.log file (as an attachment not as a comment, might want to compress it too since it's usually pretty big) and the exact configure invocation used (if it's different to the one in the original report)?

Thanks.
Comment 4 George Papadopoulos 2006-05-02 02:01:07 AEST
Created attachment 1128 [details]
output from the execution of the configure

Attaching the config.log output as requested
Comment 5 George Papadopoulos 2006-05-02 02:05:43 AEST
Created attachment 1129 [details]
output from the execution of the configure

Attaching again in text format
Comment 6 Tim Rice 2006-05-02 07:38:57 AEST
---------------< snip from config.log >---------------
configure:14850: gcc -o conftest -g -O2 -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -I/opt/openssl/include  -L/opt/openssl/lib -R/opt/openssl/lib  conftest.c -lcrypto -lrt -lz -lsocket -lnsl  >&5
ld: warning: file /opt/openssl/lib/libcrypto.a(rand_lib.o): wrong ELF class: ELFCLASS64
Undefined			first referenced
 symbol  			    in file
RAND_add                            /var/tmp//ccu0hMW7.o
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure:14856: $? = 1
---------------------------------------------------------------
It looks like your openssl build in /opt/openssl is broken.
You can't mix 32bit & 64bit object files.
Comment 7 George Papadopoulos 2006-05-03 00:19:38 AEST
I was able to build openssh on another Solaris 10(x86) box using a newly build version of openssl. Thanks for all the help on this one. 
Comment 8 Darren Tucker 2006-05-03 19:04:06 AEST
You're welcome.  Closing bug.
Comment 9 Darren Tucker 2006-10-07 11:45:09 AEST
Change all RESOLVED bug to CLOSED with the exception of the ones fixed post-4.4.