Results 1 to 2 of 2

Thread: Build errors

  1. #1
    MoserHans NNTP User

    Question Build errors

    Hi,

    I'm trying to rebuild cyrus-imapd rpm with ldap support.
    (These are my first steps with OBS.)

    I created a new project and linked the original files.
    This builds fine.

    I edited the spec file:
    Code:
    BuildRequires:  cyrus-sasl-devel db-devel drac ed krb5-devel openslp-devel openssl-devel opie tcpd-devel openldap2-devel
    (new: openldap2-devel)

    Code:
    export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -I/usr/include/kerberosIV -I%{_libdir}/sasl2/include" LIBS="-lldap -llber"
    (new: LIBS="-lldap -llber")

    This builds fine, too.

    When I finally add the configure switch "
    Code:
    --with-ldap=%{_libdir} \
    " or "
    Code:
    --with-ldap \
    ", there are the following errors, built fails:

    Code:
    Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/cyrus-imapd-2.3.11-build
    Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/cyrus-imapd-2.3.11-build
    Wrote: /usr/src/packages/SRPMS/cyrus-imapd-2.3.11-129.1.src.rpm
    Wrote: /usr/src/packages/RPMS/x86_64/cyrus-imapd-2.3.11-129.1.x86_64.rpm
    Wrote: /usr/src/packages/RPMS/x86_64/perl-Cyrus-IMAP-2.3.11-129.1.x86_64.rpm
    Wrote: /usr/src/packages/RPMS/x86_64/perl-Cyrus-SIEVE-managesieve-2.3.11-129.1.x86_64.rpm
    Wrote: /usr/src/packages/RPMS/x86_64/cyrus-imapd-devel-2.3.11-129.1.x86_64.rpm
    ... checking for files with abuild user/group
    ... running 00-check-install-rpms
    ... installing all built rpms
    Preparing packages for installation...
    perl-Cyrus-SIEVE-managesieve-2.3.11-129.1
    perl-Cyrus-IMAP-2.3.11-129.1
    cyrus-imapd-devel-2.3.11-129.1
    /var/tmp/rpm-tmp.57455: line 2: /usr/sbin/usermod: No such file or directory
    cyrus-imapd-2.3.11-129.1
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    warning: user cyrus does not exist - using root
    ... running 01-check-debuginfo
    ... testing for empty debuginfo packages
    ... running 02-check-gcc-output
    ... testing for serious compiler warnings
    (using /usr/lib/build/checks-data/check_gcc_output)
    (using //.build.log)
    
    I: Program returns random data in a function
    E: cyrus-imapd no-return-in-nonvoid-function afskrb.c:550
    System halted.
    It seems to me, that the rpms are built - but then something goes wrong!?

    Does anybody have a hint?
    Thanks!

  2. #2
    Join Date
    Jun 2008
    Location
    Moscow, Russia
    Posts
    3,028
    Blog Entries
    1

    Default Re: Build errors

    There is a problem in program code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •