Wednesday, 2 September 2015

Re: [gccsdk] Building libssh2 fails while building nettle with the autobuilder. Any clues?

On 02/09/15 02:13, Alan Williams wrote:
> Lee,
>
> I have compiled zlib1g and now I see the -lz
>
> libtool: link: /home/alan/env/arm-unknown-riscos-gcc -O3 -o ssh2,e1f ssh2.o
> ../src/.libs/libssh2.a -L/home/alan/env/lib -lssl -lcrypto -lz
>
> That didn't fix it.
>
> I found other examples and so I tried adding this
> export LIBS='-ldl'
> to the end of this file
> autobuilder/libraries/libssh2/setvars
>
> And now ssh2,e1f links properly.
>
> But
> ../autobuilder/build -v -D libgpg-error0
> doesn't. Nettle wanted libgcrypt11 which depends on libgpg-error0.
>
> Would you be able to send me your results from building the same thing so I
> can see if there is anything different here.
> If your system built an earlier version successfully then if I can work out
> how to set it to fetch that then that too may be a solution.

[snip]

> make[2]: Entering directory
> `/home/alan/build/libgpg-error0/libgpg-error-1.19/src'
> gawk -f ./mkerrnos.awk ./errnos.in >code-to-errno.h
> gawk -f ./mkerrcodes1.awk ./errnos.in >_mkerrcodes.h
> /home/alan/env/arm-unknown-riscos-cpp -P _mkerrcodes.h | grep GPG_ERR_ | \
> gawk -f ./mkerrcodes.awk >mkerrcodes.h
> rm _mkerrcodes.h
> /usr/bin/cc -I. -I. -o mkerrcodes ./mkerrcodes.c
> ./mkerrcodes | gawk -f ./mkerrcodes2.awk >code-from-errno.h
> gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
> ./err-sources.h.in >err-sources-sym.h
> gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
> ./err-codes.h.in >err-codes-sym.h
> gawk -f ./mkstrtable.awk -v textidx=2 -v nogettext=1 \
> -v prefix=GPG_ERR_ -v namespace=errnos_ \
> ./errnos.in >errnos-sym.h
> /usr/bin/cc -g -O0 -I. -I. -o mkheader ./mkheader.c
> if test -f lock-obj-pub.native.h; then rm lock-obj-pub.native.h; fi
> ./mkheader riscos arm-unknown-riscos ./gpg-error.h.in \
> ../config.h 1.19 0x011300 >gpg-error.h
> ./gpg-error.h.in:320: error including `./syscfg/lock-obj-pub.riscos.h': No

I may have given you the wrong impression; when I said the build
runs to the end without error, I meant libssh2 not nettle. So I'm afraid
I hadn't built libgpg-error0. Trying it now I get the same error.

It looks like the file syscfg/lock-obj-pub.riscos.h is supposed to be
generated once and added to the source tree with the others. You could
try copying one of the others, eg,
syscfg/lock-obj-pub.arm-unknown-linux-gnueabihf.h
which I think has the right size for the _priv struct member.

Lee.


_______________________________________________
GCCSDK mailing list gcc@gccsdk.riscos.info
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

No comments:

Post a Comment