[Bug 2990] New: cannot build openssh-portable against libressll 2.9.1

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Tue Apr 9 11:45:22 AEST 2019


https://bugzilla.mindrot.org/show_bug.cgi?id=2990

            Bug ID: 2990
           Summary: cannot build openssh-portable against libressll 2.9.1
           Product: Portable OpenSSH
           Version: -current
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Build system
          Assignee: unassigned-bugs at mindrot.org
          Reporter: aleksey.moroz at gmail.com

OpenSSH has been configured with the following options:
                     User binaries: /usr/local/bin
                   System binaries: /usr/local/sbin
               Configuration files: /usr/local/etc
                   Askpass program: /usr/local/libexec/ssh-askpass
                      Manual pages: /usr/local/share/man/manX
                          PID file: /var/run
  Privilege separation chroot path: /var/empty
            sshd default user PATH:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
                    Manpage format: doc
                       PAM support: no
                   OSF SIA support: no
                 KerberosV support: no
                   SELinux support: yes
              MD5 password support: no
                   libedit support: yes
                   libldns support: yes
  Solaris process contract support: no
           Solaris project support: no
         Solaris privilege support: no
       IP address in $DISPLAY hack: no
           Translate v4 in v6 hack: yes
                  BSD Auth support: no
              Random number source: OpenSSL internal ONLY
             Privsep sandbox style: seccomp_filter

              Host: x86_64-pc-linux-gnu
          Compiler: cc
    Compiler flags: -g -O2 -pipe -Wall -Wpointer-arith -Wuninitialized
-Wsign-compare -Wformat-security -Wsizeof-pointer-memaccess
-Wno-pointer-sign -Wno-unused-result -fno-strict-aliasing
-D_FORTIFY_SOURCE=2 -ftrapv -fno-builtin-memset
-fstack-protector-strong -fPIE  
Preprocessor flags: -I/usr/local/lib/  -D_XOPEN_SOURCE=600
-D_BSD_SOURCE -D_DEFAULT_SOURCE -Iyes/include -I/usr/include/editline
      Linker flags: -L/usr/local/lib/ -Wl,--gc-sections -Wl,-s -Wl,-v
-Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -fstack-protector-strong
-Lyes/lib -pie 
         Libraries: -lcrypto -ldl -lldns -lutil -lz  -lcrypt -lresolv
         +for sshd:  -lselinux
          +for ssh:  -lselinux


make
...................
ar: creating libssh.a
a - ssh_api.o
a - ssherr.o
a - sshbuf.o
a - sshkey.o
a - sshbuf-getput-basic.o
a - sshbuf-misc.o
a - sshbuf-getput-crypto.o
a - krl.o
a - bitmap.o
a - ssh-xmss.o
a - sshkey-xmss.o
a - xmss_commons.o
a - xmss_fast.o
a - xmss_hash.o
a - xmss_hash_address.o
a - xmss_wots.o
a - authfd.o
a - authfile.o
a - canohost.o
a - channels.o
a - cipher.o
a - cipher-aes.o
a - cipher-aesctr.o
a - cipher-ctr.o
a - cleanup.o
a - compat.o
a - crc32.o
a - fatal.o
a - hostfile.o
a - log.o
a - match.o
a - moduli.o
a - nchan.o
a - packet.o
a - readpass.o
a - ttymodes.o
a - xmalloc.o
a - addrmatch.o
a - atomicio.o
a - dispatch.o
a - mac.o
a - uuencode.o
a - misc.o
a - utf8.o
a - monitor_fdpass.o
a - rijndael.o
a - ssh-dss.o
a - ssh-ecdsa.o
a - ssh-rsa.o
a - dh.o
a - msg.o
a - progressmeter.o
a - dns.o
a - entropy.o
a - gss-genr.o
a - umac.o
a - umac128.o
a - ssh-pkcs11.o
a - smult_curve25519_ref.o
a - poly1305.o
a - chacha.o
a - cipher-chachapoly.o
a - ssh-ed25519.o
a - digest-openssl.o
a - digest-libc.o
a - hmac.o
a - sc25519.o
a - ge25519.o
a - fe25519.o
a - ed25519.o
a - verify.o
a - hash.o
a - kex.o
a - kexdh.o
a - kexgex.o
a - kexecdh.o
a - kexc25519.o
a - kexgexc.o
a - kexgexs.o
a - sntrup4591761.o
a - kexsntrup4591761x25519.o
a - kexgen.o
a - platform-pledge.o
a - platform-tracing.o
a - platform-misc.o
ranlib libssh.a

........

/usr/bin/ld: /usr/local/lib//libcrypto.a(dh_lib.c.o): in function
`DH_get0_pqg':
dh_lib.c:(.text+0x420): multiple definition of `DH_get0_pqg';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:454:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(dh_lib.c.o): in function
`DH_set0_pqg':
dh_lib.c:(.text+0x450): multiple definition of `DH_set0_pqg';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:466:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(dh_lib.c.o): in function
`DH_get0_key':
dh_lib.c:(.text+0x500): multiple definition of `DH_get0_key';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:491:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(dh_lib.c.o): in function
`DH_set0_key':
dh_lib.c:(.text+0x520): multiple definition of `DH_set0_key';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:501:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(dh_lib.c.o): in function
`DH_set_length':
dh_lib.c:(.text+0x590): multiple definition of `DH_set_length';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:520:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(dsa_lib.c.o): in function
`DSA_get0_pqg':
dsa_lib.c:(.text+0x4f0): multiple definition of `DSA_get0_pqg';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:164:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(dsa_lib.c.o): in function
`DSA_set0_pqg':
dsa_lib.c:(.text+0x520): multiple definition of `DSA_set0_pqg';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:176:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(dsa_lib.c.o): in function
`DSA_get0_key':
dsa_lib.c:(.text+0x5b0): multiple definition of `DSA_get0_key';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:202:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(dsa_lib.c.o): in function
`DSA_set0_key':
dsa_lib.c:(.text+0x5d0): multiple definition of `DSA_set0_key';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:212:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(digest.c.o): in function
`EVP_MD_CTX_new':
digest.c:(.text+0x360): multiple definition of `EVP_MD_CTX_new';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:623:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(digest.c.o): in function
`EVP_MD_CTX_free':
digest.c:(.text+0x720): multiple definition of `EVP_MD_CTX_free';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:631:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(evp_lib.c.o): in function
`EVP_CIPHER_CTX_get_iv':
evp_lib.c:(.text+0x410): multiple definition of
`EVP_CIPHER_CTX_get_iv';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:340:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(evp_lib.c.o): in function
`EVP_CIPHER_CTX_set_iv':
evp_lib.c:(.text+0x480): multiple definition of
`EVP_CIPHER_CTX_set_iv';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:369:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(p_lib.c.o): in function
`EVP_PKEY_get0_RSA':
p_lib.c:(.text+0x500): multiple definition of `EVP_PKEY_get0_RSA';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:613:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(rsa_lib.c.o): in function
`RSA_get0_key':
rsa_lib.c:(.text+0x430): multiple definition of `RSA_get0_key';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:233:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(rsa_lib.c.o): in function
`RSA_set0_key':
rsa_lib.c:(.text+0x460): multiple definition of `RSA_set0_key';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:245:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(rsa_lib.c.o): in function
`RSA_get0_crt_params':
rsa_lib.c:(.text+0x510): multiple definition of `RSA_get0_crt_params';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:271:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(rsa_lib.c.o): in function
`RSA_set0_crt_params':
rsa_lib.c:(.text+0x540): multiple definition of `RSA_set0_crt_params';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:283:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(rsa_lib.c.o): in function
`RSA_get0_factors':
rsa_lib.c:(.text+0x5d0): multiple definition of `RSA_get0_factors';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:310:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(rsa_lib.c.o): in function
`RSA_set0_factors':
rsa_lib.c:(.text+0x5f0): multiple definition of `RSA_set0_factors';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:320:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(dsa_asn1.c.o): in function
`DSA_SIG_get0':
dsa_asn1.c:(.text+0xd0): multiple definition of `DSA_SIG_get0';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:399:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(dsa_asn1.c.o): in function
`DSA_SIG_set0':
dsa_asn1.c:(.text+0xf0): multiple definition of `DSA_SIG_set0';
openbsd-compat//libopenbsd-compat.a(libressl-api-compat.o):/home/admz/build/openssh-portable/openbsd-compat/libressl-api-compat.c:410:
first defined here
/usr/bin/ld: /usr/local/lib//libcrypto.a(err.c.o): undefined reference
to symbol 'pthread_once@@GLIBC_2.2.5'
/usr/bin/ld: /lib/x86_64-linux-gnu/libpthread.so.0: error adding
symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:173: recipe for target 'ssh' failed
make: *** [ssh] Error 1
make: *** Waiting for unfinished jobs....

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list