Lee,
I have successfully built Nettle. I had to make a number of tweaks to
various components to get that to all work.
For libgpg-error0:
Add : cp src/syscfg/lock-obj-pub.arm-unknown-linux-gnueabihf.h
src/syscfg/lock-obj-pub.riscos.h
To: autobuilder/libraries/libgpg-error0/setvars
For ssh2:
Add: export LIBS='-ldl'
To: libraries/libssh2/setvars
Google says libgcryp11 has gone from Jessie so I built libgcryp20 instead.
cp -a ../autobuilder/libraries/libgcrypt11/
../autobuilder/libraries/libgcrypt20
# Edited
Sunfish#192.168.9.119::/home/alan.$.autobuilder.network.nettle.depends
made it libcrypt20 as shown below.
libssh2
libgcrypt20
libgpg-error0
zlib1g
# Nettle
Sunfish#192.168.9.119::/home/alan.$.build.nettle.nettle.GNUmakefile
Added -ldl to LIBS making it as follows:
LIBS = -lssh2 -lz -lgcrypt -lgpg-error -lcrypto -ldl
I have started to look at the proposition of getting nettle to do
Public/private key auth and it looks ok. My intention is to co-opt the
current 'Command' field/icon to hold two space separated file names for the
key files initially. If that works I may extent the UI to better
accommodate the extra fields.
I do have one more question if I may.
The second thing I am interested in doing is to take Alex Waghs !SunFish nfs
client and replace the nfs specific components with sftp. Essentially
making sshfs for RISC OS. To do this I am going to need the module build of
libssh2. I had a look at what autobuilder has made by default and that is
just the normal application version. My question therefore is how do I get
the auto builder to make me the module linkable version as well?
Many thanks for your help and hints its most appreciated.
Alan
-----Original Message-----
From: Lee Noar [mailto:leenoar@sky.com]
Sent: Thursday, 3 September 2015 4:18 AM
To: Alan Williams <ajw@bigblue.net.au>; gcc@gccsdk.riscos.info
Subject: 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