On Thu, Dec 08, 2005 at 09:54:09AM -0000, ld_ts7200 wrote:
> I did cross compile Perl 5.8.5 but unfortunately the build was
> unsuccessful. From the command line perl produces the following:
> undefined symbol: __udivsi3
> I'm also struggling to build perl in static rather than dynamic mode.
> Did you get this to work Andrew?
I've replied to the list in case anyone else is interested., I run
my ts7200 with various dynamically linked libraries in /lib and /usr/lib
so I haven't tried a static build. To get perl working, I just copied
/usr/bin/perl and the necessary libraries from my NFS-mount-ed Debian
(unstable) distribution. On my system the files are (I think):
-rwxr-xr-x 2 root root 10864 Jun 9 2005 /usr/bin/perl
-rwxr-xr-x 1 root root 1112084 Aug 31 10:13 /lib/libc-2.3.5.so
lrwxrwxrwx 1 root root 13 Oct 18 15:38 /lib/libc.so.6 -> libc-2.3.5.so
-rw-r--r-- 1 root root 21968 Aug 31 10:13 /lib/libcrypt-2.3.5.so
lrwxrwxrwx 1 root root 17 Oct 18 15:38 /lib/libcrypt.so.1 ->
libcrypt-2.3.5.so
-rw-r--r-- 1 root root 9660 Aug 31 10:13 /lib/libdl-2.3.5.so
lrwxrwxrwx 1 root root 14 Oct 18 15:38 /lib/libdl.so.2 -> libdl-2.3.5.so
-rw-r--r-- 1 root root 450408 Aug 31 10:13 /lib/libm-2.3.5.so
lrwxrwxrwx 1 root root 13 Oct 18 15:38 /lib/libm.so.6 -> libm-2.3.5.so
-rw-r--r-- 1 root root 92673 Aug 31 10:14 /lib/libpthread-0.10.so
lrwxrwxrwx 1 root root 18 Oct 18 15:38 /lib/libpthread.so.0 ->
libpthread-0.10.so
lrwxrwxrwx 1 root root 16 Dec 9 12:45 /usr/lib/libperl.so.5.8 ->
libperl.so.5.8.7
-rw-r--r-- 1 root root 1064428 Jun 9 2005 /usr/lib/libperl.so.5.8.7
This was sufficient to run Perl. For example putting this in
/cgi-bin/printenv worked:
#!/usr/bin/perl
print "Content-type: text/plain\n\n";
print "$_=$ENV{$_}\n" foreach sort keys %ENV;
with the busybox http run from inetd.conf.
Modules require more files. I wanted CGI.pm so I copied these files (about
600kb)
from /usr/share/perl/5.8.7/ on the Debian filesystem.
./CGI.pm
./CGI/Apache.pm
./CGI/Carp.pm
./CGI/Cookie.pm
./CGI/Pretty.pm
./CGI/Push.pm
./CGI/Switch.pm
./CGI/Util.pm
./Carp.pm
./Exporter.pm
./File/Basename.pm
./File/CheckTree.pm
./File/Compare.pm
./File/Copy.pm
./File/DosGlob.pm
./File/Find.pm
./File/Glob.pod
./File/Path.pm
./File/Spec.pm
./File/Spec.pod
./File/Spec/Functions.pm
./File/Spec/Unix.pm
./File/Temp.pm
./File/stat.pm
./constant.pm
./overload.pm
./strict.pm
./vars.pm
./warnings.pm
./warnings/register.pm
This was sufficient to have non-trivial CGI scripts running.
Andrew
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/CFFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|