Bug 800210

Summary: unable to build openssh (minimal configuration)
Product: [Fedora] Fedora Reporter: Mr-4 <mr.dash.four>
Component: opensshAssignee: Petr Lautrbach <plautrba>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: mattias.ellert, mgrepl, plautrba, tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 18:04:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
amended openssh-5.6p1-selabel.patch none

Description Mr-4 2012-03-06 00:51:20 UTC
Created attachment 567791 [details]
amended openssh-5.6p1-selabel.patch

Description of problem:
during build (see configuration below) I get the following error:

clientloop.c: In function 'client_loop':
clientloop.c:1492:8: warning: implicit declaration of function 'ssh_gssapi_credentials_updated' [-Wimplicit-function-declaration]
clientloop.c:1492:39: error: 'GSS_C_NO_CONTEXT' undeclared (first use in this function)
clientloop.c:1492:39: note: each undeclared identifier is reported only once for each function it appears in
make: *** [clientloop.o] Error 1
make: *** Waiting for unfinished jobs....


Version-Release number of selected component (if applicable):
openssh-5.5p1-24

How reproducible:
always

Steps to Reproduce:
1. install the source rpm
2. amend openssh.spec (I've deactivated most of the options as I am building this for embedded device) - see below
3. rpmbuild -bb --target=armv6l openssh.spec

Actual results:
gcc -O2 -g -march=armv6j -mtune=arm1136jf-s -mthumb-interwork -mno-thumb -Os -fpic -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-strict-aliasing -fno-builtin-memset -fstack-protector-all  -I. -I.  -DSSHDIR=\"/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/usr/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/libexec/openssh/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/libexec/openssh/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/libexec/openssh/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/usr/libexec/openssh/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty/sshd\" -DSSH_RAND_HELPER=\"/usr/libexec/openssh/ssh-rand-helper\" -DHAVE_CONFIG_H -c clientloop.c
clientloop.c: In function 'client_loop':
clientloop.c:1492:8: warning: implicit declaration of function 'ssh_gssapi_credentials_updated' [-Wimplicit-function-declaration]
clientloop.c:1492:39: error: 'GSS_C_NO_CONTEXT' undeclared (first use in this function)
clientloop.c:1492:39: note: each undeclared identifier is reported only once for each function it appears in
make: *** [clientloop.o] Error 1
make: *** Waiting for unfinished jobs....


Expected results:
Compilation and linking to pass

Additional info:
I have amended the .spec file so that I use the following settings/flags:

+ CFLAGS='-O2 -g -march=armv6j -mtune=arm1136jf-s -mthumb-interwork -mno-thumb'
+ export CFLAGS
+ CFLAGS='-O2 -g -march=armv6j -mtune=arm1136jf-s -mthumb-interwork -mno-thumb -Os'
+ CFLAGS='-O2 -g -march=armv6j -mtune=arm1136jf-s -mthumb-interwork -mno-thumb -Os -fpic'
+ export CFLAGS
+ SAVE_LDFLAGS=
+ LDFLAGS=' -pie -z relro -z now'
+ export LDFLAGS
+ CFLAGS='-O2 -g -march=armv6j -mtune=arm1136jf-s -mthumb-interwork -mno-thumb -Os -fpic'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -march=armv6j -mtune=arm1136jf-s -mthumb-interwork -mno-thumb'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -march=armv6j -mtune=arm1136jf-s -mthumb-interwork -mno-thumb'
+ export FFLAGS
+ ./configure --host=armv7l-unknown-linux-gnueabi --build=armv7l-unknown-linux-gnueabi --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --host=armv6l-redhat-linux-gnueabi --sysconfdir=/etc/ssh --libexecdir=/usr/libexec/openssh --datadir=/usr/share/openssh --without-tcp-wrappers --with-default-path=/usr/local/bin:/bin:/usr/bin --with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin --with-privsep-path=/var/empty/sshd --enable-vendor-patchlevel=FC-0.9.2-29.30.fc15 --disable-strip --without-zlib-version-check --with-ssl-engine --with-authorized-keys-command --disable-lastlog --disable-utmp --disable-utmpx --disable-wtmp --disable-wtmpx --without-shadow --without-nss --without-smartcard --without-ldap --without-pam --without-selinux --without-audit --without-kerberos5 --without-libedit


OpenSSH has been configured with the following options:
                     User binaries: /usr/bin
                   System binaries: /usr/sbin
               Configuration files: /etc/ssh
                   Askpass program: /usr/libexec/openssh/ssh-askpass
                      Manual pages: /usr/share/man/manX
                          PID file: /var/run
  Privilege separation chroot path: /var/empty/sshd
            sshd default user PATH: /usr/local/bin:/bin:/usr/bin
          sshd superuser user PATH: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
                    Manpage format: doc
                       PAM support: no
                   OSF SIA support: no
                 KerberosV support: no
                   SELinux support: no
                 Smartcard support: 
                     S/KEY support: no
              TCP Wrappers support: no
     AuthorizedKeysCommand support: yes
              MD5 password support: no
                   libedit support: no
  Solaris process contract support: no
       IP address in $DISPLAY hack: no
           Translate v4 in v6 hack: yes
                  BSD Auth support: no
              Random number source: OpenSSL internal ONLY
                Vendor patch level: FC-0.9.2-29.30.fc15

              Host: armv6l-redhat-linux-gnueabi
          Compiler: gcc
    Compiler flags: -O2 -g -march=armv6j -mtune=arm1136jf-s -mthumb-interwork -mno-thumb -Os -fpic -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-strict-aliasing -fno-builtin-memset -fstack-protector-all 
Preprocessor flags: 
      Linker flags:  -pie -z relro -z now -fstack-protector-all
         Libraries: -lcrypto -ldl -lutil -lz -lnsl  -lcrypt -lresolv

The above error seems to have been produced by the following gcc command:

gcc -O2 -g -march=armv6j -mtune=arm1136jf-s -mthumb-interwork -mno-thumb -Os -fpic -Wall -Wpointer-arith -Wuninitialized -Wsign-compare -Wno-pointer-sign -Wformat-security -fno-strict-aliasing -fno-builtin-memset -fstack-protector-all  -I. -I.  -DSSHDIR=\"/etc/ssh\" -D_PATH_SSH_PROGRAM=\"/usr/bin/ssh\" -D_PATH_SSH_ASKPASS_DEFAULT=\"/usr/libexec/openssh/ssh-askpass\" -D_PATH_SFTP_SERVER=\"/usr/libexec/openssh/sftp-server\" -D_PATH_SSH_KEY_SIGN=\"/usr/libexec/openssh/ssh-keysign\" -D_PATH_SSH_PKCS11_HELPER=\"/usr/libexec/openssh/ssh-pkcs11-helper\" -D_PATH_SSH_PIDDIR=\"/var/run\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty/sshd\" -DSSH_RAND_HELPER=\"/usr/libexec/openssh/ssh-rand-helper\" -DHAVE_CONFIG_H -c clientloop.c


I think there is a dependency lurking somewhere on krb/gss api, but I am no expert! I can attach the .spec file I used if there is an interest, please let me know.

Also, there is a small bug with the application of openssh-5.6p1-selabel.patch - I have adapted this to work and I am attaching the new (amended) patch - please use it if you find it helpful

Comment 1 Mr-4 2012-03-06 00:52:52 UTC
Sorry, I just realised I put the wrong openssh version - it should read "openssh-5.6p1-30"

Comment 2 Mr-4 2012-03-06 01:24:53 UTC
Update: I have just compiled openssh with the same settings as above, but without applying any of the patches (just unzipped the source in BUILD, then executed the appropriate ./configure after setting CFLAGS, LDFLAGS etc) - there were NO errors at all and compilation passed OK, so I assume some of the patches applied in that .spec file screw things up pretty badly!

Comment 3 Fedora End Of Life 2012-08-07 18:04:52 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping