Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
<First, follow oxygen instructions to setup ipkg>
To configure that feed as the default feed, just add in /opt/etc/ipkg.conf
src dns323 http://ipkg.nslu2-linux.org/feeds/optwa … /unstable/
Then launch "ipkg update"
For a complete list of available packages type: "ipkg list"
The first string displayed is an alias that can be used to install packages ie. "ipkg install wget" , this will install wget_1.11-1_arm.ipk and all the required dependecies.
Offline
The feed has been rebuilt with -fPIC, please re-test when Packages* in http://ipkg.nslu2-linux.org/feeds/optwa … /unstable/ has a timestamp of Mar-8, 2008 (in 20 minutes or so).
Still quite some packages broken, but first I would like to get those built working.
Contributions to unbreak any packages welcome.
Offline
coreutils promoted for optware/dns323 after some fix.
Offline
If you are compiling your own packages you can set up a source which is a folder on the DNS323 and use a file:// URL in your ipkg.conf instead of using a web server.
First on your build machine build one or more packages and make an index file for the packages that you have built:
$ make <foo>-ipk $ rm -f builds/Pa*; make index PACKAGE_DIR=builds
(See the bottom of http://www.nslu2-linux.org/wiki/Optware/DebianArmEtch.)
Then copy the packages (*.ipk) files and the Package.* files to your DNS323.
Edit your ipkg.conf file to include a line like
src local_builds file:///mnt/HD_a2/optware_builds
And then run "ipkg update", "ipkg list", "ipkg install ..."
("ipkg --help" shows that you can just do "ipkg install <ipkg filename>" too)
Offline
Tsharsk,W3m,lynx appear to have the -fpic error even after this updates.
Other packages tested:
Working: vim,tnftp,ncftp,pv,nano,bitchx,atop,tcpdump,unrar,httping,tinyscheme,weechat
Not working: Mc (weird term error, couldn't get this to work), iftop (runs ok for 10 sec, then kills itself)
Broken: jamvm (missing libffi and likely other libs), swi-prolog (librt missing)
Offline
Trying to run perl produces this familiar error:
/mnt/HD_a2/ipkg # perl -v R_ARM_PC24: Compile shared libraries with -fPIC!
I looked at the console output from the make script and noticed that -fpic (lower case) was used during the build, not -fPIC. So, on the build machine, I ran
find sources/ -type f -exec grep -H fpic {} \;
And spotted the file
$(OPTWARE)/sources/perl/Cross/config.sh-dns323
I changed a line in there from
cccdlflags='-fpic'
to
cccdlflags='-fPIC'
cleaned out the build directory and rebuilt perl.
Unfortunately when I look at the console output during the build there are still a few '-fpic' (lower case) options sneaking in to some of the build commands, and the resulting build has the same problem. I can't see where I can change the remaining fpics - any clues anyone?
Last edited by sjmac (2008-03-08 15:33:22)
Offline
oxygen wrote:
HaydnH wrote:
oxygen - wget is installed as standard on the dns-323 anyway ;P
No. It's busybox. And the busybox implementation of wget cant do much.
/ # ls -l /bin/wget
lrwxrwxrwx 1 root root 18 Mar 3 16:54 /bin/wget -> /sys/crfs/bin/wget
bzhou: python25 still has the -fPIC error after the update, I'll have a deeper look when I get more time.
Offline
One thing I missed in the original toolchain build was to fix the symlinks like on the wiki page. It is fixed now in optware svn.
Maybe worth a rebuild. But I'd like to know if it makes any difference.
php, php-apache, and eaccelerator can build with the symlink fix.
Last edited by bzhou (2008-03-08 21:10:02)
Offline
Thanks for the suggestion - no, the extra symlinks didn't let me build a perl that worked, still the "R_ARM_PC24: Compile shared libraries with -fPIC!" message.
Offline
Made one change to optware/make/perl.mk http://trac.nslu2-linux.org/optware/changeset/7942
Based on result of
arm-linux-uclibc-readelf -a libperl.so | grep PC24
seems to take effect applying -fPIC. Please rebuild and test.
Offline
Yes, your change by itself (without my change to configure.sh-dns323) produced a working build:
/ # perl -e 'print "Hello\n"' Hello / # perl -v This is perl, v5.8.8 built for arm-linux Copyright 1987-2006, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page.
However, isn't $(OPTWARE)/make/perl.mk (aka $(OPTWARE)/dns323/make/perl.mk) used for every target, so you've added fPIC for all builds? Is that OK? fPIC seems to be safer than fpic, but I don't know if it might cause a problem elsewhere. I'm having one more go at seeing if I can do the same thing just editing the configure.sh-dns323 script ...
BTW - thanks for your time!
== update ==
(I flooded the configure.sh-dns323 script with -fPIC but couldnt get a good build without your Makefile change.)
Last edited by sjmac (2008-03-10 01:49:49)
Offline
sjmac wrote:
However, isn't $(OPTWARE)/make/perl.mk (aka $(OPTWARE)/dns323/make/perl.mk) used for every target, so you've added fPIC for all builds?
That is ok, because my change basically means:
if TARGET_CUSTOM_FLAGS contains -fPIC: force CFLAGS to have -fPIC by appending "CFLAGS = -fPIC" in perl/Cross/config
Right now, dns323 is the only platform to have -fPIC in TARGET_CUSTOM_FLAGS. (I guess it's because of old binutils)
Offline
Rebuilt and uploaded the optware/dns323 feed. The changes are:
1) toolchain with proper symlinks
2) solved perl -fPIC
Please retest (-force-reinstall or start from scratch).
Offline
jules wrote:
Tsharsk,W3m,lynx appear to have the -fpic error even after this updates.
Other packages tested:
Not working: Mc (weird term error, couldn't get this to work), iftop (runs ok for 10 sec, then kills itself)
Broken: jamvm (missing libffi and likely other libs), swi-prolog (librt missing)
swi-prolog probably should work after the latest update (toolchain lib* symlink fix).
Can you run mc under screen?
Some other packages to test: samba, samba2, openssh, irssi, svn, git, phoneme-advanced (CVM from Sun), emacs22, lua, php, ruby, sqlite, erlang, rtorrent.
After getting perl to work, I'd be interested in making sure python25 runs.
Offline
bzhou wrote:
After getting perl to work, I'd be interested in making sure python25 runs.
I'll check now - brb (well after this bad internet connection downloads it!).
Offline
I'm still getting -fPIC problems with python25, is this the latest feed? http://ipkg.nslu2-linux.org/feeds/optwa … s/unstable ?
I'll do a check asap and try and post the culprit files.
Last edited by HaydnH (2008-03-10 19:58:51)
Offline
The culprit file is: ./lib/libbz2.so.1.0.4
Offline
Just wrote a file called emacs.txt using the emacs22 package in console UI mode.
Seemed to work OK, but isn't F10 supposed to work the menus? Also Alt-x didn't work like I remember - it didn't do anything, but used to be meta-x.
update: Esc ` opens the menus.
now, quickly
ipkg remove emacs22
Last edited by sjmac (2008-03-10 20:03:47)
Offline
HaydnH wrote:
The culprit file is: ./lib/libbz2.so.1.0.4
Thanks, should be fixed by http://trac.nslu2-linux.org/optware/changeset/7950
update: please try test python25 after
ipkg update; ipkg upgrade bzip2
Last edited by bzhou (2008-03-11 04:58:05)
Offline
There is a problem with the emacs22 ipk - after I quit the program (CtrlX-CtrlC in Emacs) then the characters typed by me are no longer echoed in my terminal session (telnet from the Vista command line).
Is it supposed to work with an X server? I couldn't get it to open on my X display.
Last edited by sjmac (2008-03-10 22:18:42)
Offline
sjmac wrote:
There is a problem with the emacs22 ipk - after I quit the program (CtrlX-CtrlC in Emacs) then the characters typed by me are no longer echoed in my terminal session (telnet from the Vista command line).
Is it supposed to work with an X server? I couldn't get it to open on my X display.
It is built without-x
Offline
bzhou wrote:
Can you run mc under screen?
Yeah, but it's really sloooow.
bzhou wrote:
Some other packages to test: samba, samba2, openssh, irssi, svn, git, phoneme-advanced (CVM from Sun), emacs22, lua, php, ruby, sqlite, erlang, rtorrent.
I'll give phoneme a try.
Offline
jules wrote:
I'll give phoneme a try.
Offline
sqlite seems fine:
/mnt/HD_a2 # ipkg update Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable//Pac kages Updated list of available packages in /opt/lib/ipkg/lists/optware Successfully terminated. /mnt/HD_a2 # ipkg install sqlite Installing sqlite (3.5.6-1) to root... Downloading http://ipkg.nslu2-linux.org/feeds/optware/dns323/cross/unstable//sql ite_3.5.6-1_arm.ipk Configuring sqlite Successfully terminated. /mnt/HD_a2 # sqlite3 --version 3.5.6 /mnt/HD_a2 # sqlite3 ltf SQLite version 3.5.6 Enter ".help" for instructions sqlite> create table tt ( c1, c2); sqlite> insert into tt values ( 1 , 'hello' ); sqlite> insert into tt (c2, c1 ) values ( 'world', 2 ); sqlite> .quit /mnt/HD_a2 # sqlite3 ltf 'select * from tt;' 1|hello 2|world
Offline
Python 2.5 now works.
bzhou: what are the post install scripts trying to do? I don't have an update-alternatives binary/script so they fail... although it doesn't really matter...
Configuring bzip2 /mnt/HD_a2/ipkg//usr/lib/ipkg/info/bzip2.postinst: /opt/bin/update-alternatives: No such file or directory postinst script returned status 127 ERROR: bzip2.postinst returned 127
Offline