Building heimdal-1-6-branch on NetBSD?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Building heimdal-1-6-branch on NetBSD?

Fredrik Pettai
Hi,

I'm trying to build heimdal-1-6-branch on NetBSD, but it ends up with this error:

#   compile  libhdb/hdb-mitdb.o
/usr/src/../tools/bin/x86_64--netbsd-gcc -O2   -std=gnu99   -Werror   -fstack-protector -Wstack-protector   --param ssp-buffer-size=1   --sysroot=/usr/src/../obj/destdir.amd64 -DHAVE_IPV6 -DHAVE_CONFIG_H -I. -I/usr/src/crypto/external/bsd/heimdal/lib/libhdb -I/usr/src/crypto/external/bsd/heimdal/dist/lib/hdb -I/usr/src/crypto/external/bsd/heimdal/include -I/usr/src/crypto/external/bsd/heimdal/include -I/usr/src/crypto/external/bsd/heimdal/dist/include -I/usr/src/crypto/external/bsd/heimdal/include/krb5      -I/usr/src/crypto/external/bsd/heimdal/dist/lib/asn1            -I/usr/src/crypto/external/bsd/heimdal/dist/lib/krb5            -DHDB_DB_DIR=\"/var/heimdal\"  -D_FORTIFY_SOURCE=2 -c    /usr/src/crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c -o hdb-mitdb.o
/usr/src/crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c: In function 'add_1des_dup':
/usr/src/crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c:307:5: error: implicit declaration of function 'add_Keys' [-Werror=implicit-function-declaration]
     return add_Keys(keys, key);
     ^
cc1: all warnings being treated as errors

*** Failed target:  hdb-mitdb.o
*** Failed command: /usr/src/../tools/bin/x86_64--netbsd-gcc -O2 -std=gnu99 -Werror -fstack-protector -Wstack-protector --param ssp-buffer-size=1 --sysroot=/usr/src/../obj/destdir.amd64 -DHAVE_IPV6 -DHAVE_CONFIG_H -I. -I/usr/src/crypto/external/bsd/heimdal/lib/libhdb -I/usr/src/crypto/external/bsd/heimdal/dist/lib/hdb -I/usr/src/crypto/external/bsd/heimdal/include -I/usr/src/crypto/external/bsd/heimdal/include -I/usr/src/crypto/external/bsd/heimdal/dist/include -I/usr/src/crypto/external/bsd/heimdal/include/krb5 -I/usr/src/crypto/external/bsd/heimdal/dist/lib/asn1 -I/usr/src/crypto/external/bsd/heimdal/dist/lib/krb5 -DHDB_DB_DIR=\"/var/heimdal\" -D_FORTIFY_SOURCE=2 -c /usr/src/crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c -o hdb-mitdb.o
*** Error code 1

Any ideas to where to dig further to find out what's wrong or missing?

(Latest heimdal-1-5-branch works fine)

Re,
/P
Reply | Threaded
Open this post in threaded view
|

Re: Building heimdal-1-6-branch on NetBSD?

Love Hörnquist Åstrand

> 13 nov 2014 kl. 10:33 skrev Fredrik Pettai <[hidden email]>:
>
> Hi,
>
> I'm trying to build heimdal-1-6-branch on NetBSD, but it ends up with this error:
>
> #   compile  libhdb/hdb-mitdb.o
> /usr/src/../tools/bin/x86_64--netbsd-gcc -O2   -std=gnu99   -Werror   -fstack-protector -Wstack-protector   --param ssp-buffer-size=1   --sysroot=/usr/src/../obj/destdir.amd64 -DHAVE_IPV6 -DHAVE_CONFIG_H -I. -I/usr/src/crypto/external/bsd/heimdal/lib/libhdb -I/usr/src/crypto/external/bsd/heimdal/dist/lib/hdb -I/usr/src/crypto/external/bsd/heimdal/include -I/usr/src/crypto/external/bsd/heimdal/include -I/usr/src/crypto/external/bsd/heimdal/dist/include -I/usr/src/crypto/external/bsd/heimdal/include/krb5      -I/usr/src/crypto/external/bsd/heimdal/dist/lib/asn1            -I/usr/src/crypto/external/bsd/heimdal/dist/lib/krb5            -DHDB_DB_DIR=\"/var/heimdal\"  -D_FORTIFY_SOURCE=2 -c    /usr/src/crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c -o hdb-mitdb.o
> /usr/src/crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c: In function 'add_1des_dup':
> /usr/src/crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c:307:5: error: implicit declaration of function 'add_Keys' [-Werror=implicit-function-declaration]
>     return add_Keys(keys, key);
>     ^
> cc1: all warnings being treated as errors
>
> *** Failed target:  hdb-mitdb.o
> *** Failed command: /usr/src/../tools/bin/x86_64--netbsd-gcc -O2 -std=gnu99 -Werror -fstack-protector -Wstack-protector --param ssp-buffer-size=1 --sysroot=/usr/src/../obj/destdir.amd64 -DHAVE_IPV6 -DHAVE_CONFIG_H -I. -I/usr/src/crypto/external/bsd/heimdal/lib/libhdb -I/usr/src/crypto/external/bsd/heimdal/dist/lib/hdb -I/usr/src/crypto/external/bsd/heimdal/include -I/usr/src/crypto/external/bsd/heimdal/include -I/usr/src/crypto/external/bsd/heimdal/dist/include -I/usr/src/crypto/external/bsd/heimdal/include/krb5 -I/usr/src/crypto/external/bsd/heimdal/dist/lib/asn1 -I/usr/src/crypto/external/bsd/heimdal/dist/lib/krb5 -DHDB_DB_DIR=\"/var/heimdal\" -D_FORTIFY_SOURCE=2 -c /usr/src/crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c -o hdb-mitdb.o
> *** Error code 1
>
> Any ideas to where to dig further to find out what's wrong or missing?

Looks to me that there is generate files that have not been rebuilt, try downloading a new copy and try again.

If we got the Automake rules right, you can also do make maintainer-clean

Love


Reply | Threaded
Open this post in threaded view
|

Re: Building heimdal-1-6-branch on NetBSD?

Fredrik Pettai

On Nov 18, 2014, at 11:19 , Love Hörnquist Åstrand <[hidden email]> wrote:

>
>> 13 nov 2014 kl. 10:33 skrev Fredrik Pettai <[hidden email]>:
>>
>> Hi,
>>
>> I'm trying to build heimdal-1-6-branch on NetBSD, but it ends up with this error:
>>
>> #   compile  libhdb/hdb-mitdb.o
>> /usr/src/../tools/bin/x86_64--netbsd-gcc -O2   -std=gnu99   -Werror   -fstack-protector -Wstack-protector   --param ssp-buffer-size=1   --sysroot=/usr/src/../obj/destdir.amd64 -DHAVE_IPV6 -DHAVE_CONFIG_H -I. -I/usr/src/crypto/external/bsd/heimdal/lib/libhdb -I/usr/src/crypto/external/bsd/heimdal/dist/lib/hdb -I/usr/src/crypto/external/bsd/heimdal/include -I/usr/src/crypto/external/bsd/heimdal/include -I/usr/src/crypto/external/bsd/heimdal/dist/include -I/usr/src/crypto/external/bsd/heimdal/include/krb5      -I/usr/src/crypto/external/bsd/heimdal/dist/lib/asn1            -I/usr/src/crypto/external/bsd/heimdal/dist/lib/krb5            -DHDB_DB_DIR=\"/var/heimdal\"  -D_FORTIFY_SOURCE=2 -c    /usr/src/crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c -o hdb-mitdb.o
>> /usr/src/crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c: In function 'add_1des_dup':
>> /usr/src/crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c:307:5: error: implicit declaration of function 'add_Keys' [-Werror=implicit-function-declaration]
>>    return add_Keys(keys, key);
>>    ^
>> cc1: all warnings being treated as errors
>>
>> *** Failed target:  hdb-mitdb.o
>> *** Failed command: /usr/src/../tools/bin/x86_64--netbsd-gcc -O2 -std=gnu99 -Werror -fstack-protector -Wstack-protector --param ssp-buffer-size=1 --sysroot=/usr/src/../obj/destdir.amd64 -DHAVE_IPV6 -DHAVE_CONFIG_H -I. -I/usr/src/crypto/external/bsd/heimdal/lib/libhdb -I/usr/src/crypto/external/bsd/heimdal/dist/lib/hdb -I/usr/src/crypto/external/bsd/heimdal/include -I/usr/src/crypto/external/bsd/heimdal/include -I/usr/src/crypto/external/bsd/heimdal/dist/include -I/usr/src/crypto/external/bsd/heimdal/include/krb5 -I/usr/src/crypto/external/bsd/heimdal/dist/lib/asn1 -I/usr/src/crypto/external/bsd/heimdal/dist/lib/krb5 -DHDB_DB_DIR=\"/var/heimdal\" -D_FORTIFY_SOURCE=2 -c /usr/src/crypto/external/bsd/heimdal/dist/lib/hdb/hdb-mitdb.c -o hdb-mitdb.o
>> *** Error code 1
>>
>> Any ideas to where to dig further to find out what's wrong or missing?
>
> Looks to me that there is generate files that have not been rebuilt, try downloading a new copy and try again.
>
> If we got the Automake rules right, you can also do make maintainer-clean

Yes, there was some asn1 stuff not properly generated…

/P