Hi,
I think that the sqlite package must be updated to link with libreadline 6.2.
$ sqlite3
sqlite3: can't load library 'libreadline.so.5'
On Monday, May 19, 2014 11:26:54 AM UTC+1, Giulio Sichel wrote:Hi,
I think that the sqlite package must be updated to link with libreadline 6.2.
$ sqlite3
sqlite3: can't load library 'libreadline.so.5'What box model? What Alt-F version?
[root@DNS-325]# sqlite3SQLite version 3.8.2 2013-12-06 14:53:30Enter ".help" for instructionsEnter SQL statements terminated with a ";"sqlite>
I've tried to build Alt-F following the instructions in the wiki, but, so far, the cross-compilation process has failed for some reason apparently tied to machine code generation for arm.
Thanks, it's working for me now, it should be some Experimental release glitch:[root@DNS-325]# sqlite3SQLite version 3.8.2 2013-12-06 14:53:30Enter ".help" for instructionsEnter SQL statements terminated with a ";"sqlite>
I've tried to build Alt-F following the instructions in the wiki, but, so far, the cross-compilation process has failed for some reason apparently tied to machine code generation for arm.
For RC4 the build instructions has yet to be updated (and RC3 does not works on the DNS-320).In any case, a build log is necessary to diagnose issues, do a 'make >& build.log'[Added: in trunk, README.BUILD now contains terse build instructions for RC4 (it should work for trunk with minor changes to the svn checkout command)]
Il giorno lunedì 19 maggio 2014 15:11:35 UTC+2, João Cardoso ha scritto:Thanks, it's working for me now, it should be some Experimental release glitch:[root@DNS-325]# sqlite3SQLite version 3.8.2 2013-12-06 14:53:30Enter ".help" for instructionsEnter SQL statements terminated with a ";"sqlite>
It sounds strange. This is what I get from ldd:
$ ldd /usr/bin/sqlite3
libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0xb6f63000)
libreadline.so.5 => not found
libncurses.so.5 => /usr/lib/libncurses.so.5 (0xb6f25000)
libdl.so.0 => /lib/libdl.so.0 (0xb6f1b000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb6f02000)
libc.so.0 => /lib/libc.so.0 (0xb6ea1000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6e8e000)
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0xb6fea000)
$ ls -l /usr/lib/libreadline.so*
lrwxrwxrwx 1 root root 16 Feb 27 16:53 /usr/lib/libreadline.so -> libreadline.so.6*
lrwxrwxrwx 1 root root 18 Feb 27 16:53 /usr/lib/libreadline.so.6 -> libreadline.so.6.2*
-rwxrwxr-x 1 root root 216964 Feb 27 16:53 /usr/lib/libreadline.so.6.2*
Thus I've tried by forcing a symbolic link:
sudo ln -s /usr/lib/libreadline.so.6.2 /usr/lib/libreadline.so.5
and now it works. I suppose I''ve to add this operation to my personal user script to recreate the link at boot.
I've tried to build Alt-F following the instructions in the wiki, but, so far, the cross-compilation process has failed for some reason apparently tied to machine code generation for arm.For RC4 the build instructions has yet to be updated (and RC3 does not works on the DNS-320).In any case, a build log is necessary to diagnose issues, do a 'make >& build.log'[Added: in trunk, README.BUILD now contains terse build instructions for RC4 (it should work for trunk with minor changes to the svn checkout command)]
Regarding the Alt-F building procedure, these are the steps I've made:
svn checkout http://alt-f.googlecode.com/svn/trunk/alt-f alt-f-read-only
cd alt-f-read-only
export BLDDIR=$PWD/build
export PATH=$PATH:$PWD/bin:$BLDDIR/build_arm/staging_dir/usr/bin:
make O=$BLDDIR menuconfig
make O=$BLDDIR
. exports dns323 # defines the firmware to be built and some needed variablesmake >& build-dns323.log # make it all, logging to build-dns323.log./mkinitramfs.sh # create the root filesystem./mkfw.sh # create the firmware files'exports' must be sourced, not executed.Some mk*.sh scripts will ask for the root password; this is needed tomount the generated ext2 rootfs as a loop device and manipulate it. Seethe source.When finished, you should find:-in $BINARIES, the kernel, "zImage", the root filesystem image, "rootfs.arm.ext2",and the firmware files, "Alt-F-RC4-<model>.bin"-in $ROOTFS you will find the directory structure used to create theroot filesystem image, "rootfs.arm.ext2".-in $KERNEL the built linux kernel
Probably a experimental release link flaw, as you suggested (you haven't downloaded and installed any Alt-F package, have you? RC3 packages might be incompatible with RC4)
Basically correct, but you also have to add $HOSTDIR/usr/bin to the path. The 'export' script does that (and more).The issue is happening at 'makeinfo', I'm using version 4.13, both at opensuse-12.1 and opensuse-13.1. What's your's? and what linux distro?
The current README.BUILD says:. exports dns323 # defines the firmware to be built and some needed variablesmake >& build-dns323.log # make it all, logging to build-dns323.log./mkinitramfs.sh # create the root filesystem./mkfw.sh # create the firmware files'exports' must be sourced, not executed.Some mk*.sh scripts will ask for the root password; this is needed tomount the generated ext2 rootfs as a loop device and manipulate it. Seethe source.When finished, you should find:-in $BINARIES, the kernel, "zImage", the root filesystem image, "rootfs.arm.ext2",and the firmware files, "Alt-F-RC4-<model>.bin"-in $ROOTFS you will find the directory structure used to create theroot filesystem image, "rootfs.arm.ext2".-in $KERNEL the built linux kernelYou should remove the current '.config' file, 'exports' copies the correct one from local/..., depending on its arguments, which can be any of dns323, dns321, dns325 (you want this), or pkgs. Without a '.config' file or arguments 'exports' prints a usage message.Does it works for you? (a fresh build is recommended, do a 'rm -rf build', the download dir 'dl' will be preserved saving all packages download time)
Il giorno lunedì 19 maggio 2014 18:04:06 UTC+2, João Cardoso ha scritto:Probably a experimental release link flaw, as you suggested (you haven't downloaded and installed any Alt-F package, have you? RC3 packages might be incompatible with RC4)I've installed some packages with the Alt-F package manager (both through the administration page and the ipkg command). Did I make a mistake?
The repos used are these:
http://sourceforge.net/projects/alt-f/files/pkgs/stableBasically correct, but you also have to add $HOSTDIR/usr/bin to the path. The 'export' script does that (and more).The issue is happening at 'makeinfo', I'm using version 4.13, both at opensuse-12.1 and opensuse-13.1. What's your's? and what linux distro?
My makeinfo version is 5.2 on Archlinux.
The current README.BUILD says:. exports dns323 # defines the firmware to be built and some needed variablesmake >& build-dns323.log # make it all, logging to build-dns323.log./mkinitramfs.sh # create the root filesystem./mkfw.sh # create the firmware files'exports' must be sourced, not executed.Some mk*.sh scripts will ask for the root password; this is needed tomount the generated ext2 rootfs as a loop device and manipulate it. Seethe source.When finished, you should find:-in $BINARIES, the kernel, "zImage", the root filesystem image, "rootfs.arm.ext2",and the firmware files, "Alt-F-RC4-<model>.bin"-in $ROOTFS you will find the directory structure used to create theroot filesystem image, "rootfs.arm.ext2".-in $KERNEL the built linux kernelYou should remove the current '.config' file, 'exports' copies the correct one from local/..., depending on its arguments, which can be any of dns323, dns321, dns325 (you want this), or pkgs. Without a '.config' file or arguments 'exports' prints a usage message.Does it works for you? (a fresh build is recommended, do a 'rm -rf build', the download dir 'dl' will be preserved saving all packages download time)
I did:
rm .config
export BLDDIR=$PWD/build
Usage: . exports.sh [-f (force)] [board (dns321 dns323 dns325 pkgs )] [build dir]
. exports dns323
make &> build-dns323.log
and it compiles but it halts with the same errors. Should I replace "dns323" with "dns325" also?
If compilation errors depend on the makeinfo version, I could build the whole thing on a debian system.
My makeinfo version is 5.2 on Archlinux.I have installed makeinfo 5,2 and I can reproduce the issue.According to the reply to [bug #38997] "@itemx must follow @item" http://osdir.com/ml/bug-texinfo-gnu/2013-05/msg00003.html this is now the expected behaviour and will not be "fixed", so the only solution is to use makeinfo 4.13. I will try a fix for this.
if test -n "$OPATH"; then PATH=$OPATH; fi
rm -rf .config build
svn update
. exports dns325
make >& build-dns325.log && echo OK || echo FAIL
./mkinitramfs.sh sqsplit # sqsplit only applies to the DNS-320/325
./mkfw.sh sqsplit # sqsplit only applies to the DNS-320/325
. exports pkgs
make >& build-pkgs.log && echo OK || echo FAIL
./mkpkgs.sh -all
Can you please try: [edited]
if test -n "$OPATH"; then PATH=$OPATH; fi
rm -rf .config build
svn update
. exports dns325
make >& build-dns325.log && echo OK || echo FAIL
if the make succeeds, to create the firmware do:
./mkinitramfs.sh sqsplit # sqsplit only applies to the DNS-320/325
./mkfw.sh sqsplit # sqsplit only applies to the DNS-320/325However, even if it all succeeds, I don't advise you to flash the resulting firmware if you don't have a serial adapter.Unfortunately kexec is not working for the DNS-320/325, so you will not be able to try the firmware without flashing it.RC4 release is really soon now, unless another show-stop issue appears.Thanks
Il giorno mercoledì 21 maggio 2014 21:10:00 UTC+2, João Cardoso ha scritto:Can you please try: [edited]
if test -n "$OPATH"; then PATH=$OPATH; fi
rm -rf .config build
svn update
. exports dns325
make >& build-dns325.log && echo OK || echo FAIL
This time errors are encountered in building e2fsprogs, so we have definitely moved forward. I've attached only the part of
the log file containing errors.
rm -rf build
svn -r 2955 update
. exports -f dns325
make >& build-dns325.log && echo OK || echo FAIL
I'm sorry but these days spare time is lacking to dig deeper by myself.
if the make succeeds, to create the firmware do:
./mkinitramfs.sh sqsplit # sqsplit only applies to the DNS-320/325
./mkfw.sh sqsplit # sqsplit only applies to the DNS-320/325However, even if it all succeeds, I don't advise you to flash the resulting firmware if you don't have a serial adapter.Unfortunately kexec is not working for the DNS-320/325, so you will not be able to try the firmware without flashing it.RC4 release is really soon now, unless another show-stop issue appears.Thanks
My real intention was not to flash a new firmware but just to rebuild all those packages that are not properly working, like sqlite3,
and to build some new packages, like an IRC client. I suppose that the construction process for preparing an ipkg file to be installed
on the file system needs, al least, that all the core packages included in firmware have been built successfully, am I wrong?
Thank you