[EMAIL PROTECTED] lib.mipsel]#
/usr/src/1wire/dd-wrt/toolchains/opt/4.1.1/bin/mipsel-linux-uclibc-nm libc.a
| grep -i walk
twalk.o:
00000000000000f0 T twalk
[EMAIL PROTECTED] lib.mipsel]#
/usr/src/1wire/dd-wrt/toolchains/opt/4.1.1/bin/mipsel-linux-uclibc-objdump
-xatT libuClibc-0.9.28.so | grep -i walk
0002fc20 g    DF .text  00000034 twalk
[EMAIL PROTECTED] lib.mipsel]#
/usr/src/1wire/dd-wrt/toolchains/opt/4.1.1/bin/mipsel-linux-uclibc-objdump
-xatT libc.so | grep -i walk


If you look in dd-wrt/src/router/lib.mipsel/Makefile it will test for a
config-option called
CONFIG_LIBOPT... If this is defined in src/router/.config
[EMAIL PROTECTED] lib.mipsel]# grep LIB /usr/src/1wire/dd-wrt/src/router/.config
CONFIG_LIBBCM=y
CONFIG_LIBIPT=y
# CONFIG_GLIBC is not set
CONFIG_UCLIBC=y
CONFIG_LIBOPT=y

This uclibc will be optimized and all unused functions will be removed...
(That includes tsearch, twalk etc since no applications in src/router/* use
those functions.)

After you recompile owfs located in src/router/owfs, a new optimized libc
will be generated with all necessary functions.
If you re-flash your router with the complete firmware-image you ust
compiled it will probably work.


A method which should work for you is this.... Could you try that...

You can try to use the compiled (and non-optimized) library
libuClibc-0.9.28.so.

cp owserver /tmp/owserver
cp libuClibc-0.9.28.so /tmp/libc.so.0
export LD_LIBRARY_PATH=/tmp:/lib:/usr/lib
cd /tmp

Find out which libraries are used now...

[EMAIL PROTECTED]:/tmp# ldd ./owserver
        libow.so.0 => /usr/lib/libow.so.0 (0x2aaee000)
        libusb-0.1.so.4 => /usr/lib/libusb-0.1.so.4 (0x2ab99000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x2abe0000)
        libdl.so.0 => /lib/libdl.so.0 (0x2ac34000)
        libc.so.0 => /tmp/libc.so.0 (0x2ac76000)
        ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x2aaa8000)

And then try to start "/tmp/owserver".

If you are lucky, /tmp/libc.so.0 will be used instead of /lib/libc.so.0

/Christian



> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:owfs-
> [EMAIL PROTECTED] On Behalf Of Christian
> Magnusson
> Sent: den 20 maj 2007 19:00
> To: [email protected]
> Subject: Re: [Owfs-developers] OWFS on DD-WRT
> 
> 
> Could you look in the config.h and see which functions were detected
> during
> the configure-script was run?
> 
> [EMAIL PROTECTED] owfs]# grep HAVE_T src/include/config.h
> #define HAVE_TDELETE 1
> #define HAVE_TDESTROY 1
> #define HAVE_TERMIOS_H 1
> #define HAVE_TFIND 1
> #define HAVE_TSEARCH 1
> 
> I really wonder if you only lack the tsearch() function... and then
> have
> tfind() and tdelete()..
> 
> /Christian
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:owfs-
> > [EMAIL PROTECTED] On Behalf Of Paul Alfille
> > Sent: den 19 maj 2007 22:54
> > To: [email protected]
> > Subject: Re: [Owfs-developers] OWFS on DD-WRT
> >
> > Not without writing a version for your machine, though I could switch
> > in a linear search algorthm.
> > Let me work on it Monday.
> > Paul Alfille
> > On 5/19/07, Eric Allen <[EMAIL PROTECTED]> wrote:
> > > Okay. But I'm still stuck with tsearch. Any way to get around that?
> > >
> > >
> > > On 5/18/07, Christian Magnusson <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Building owlib without cache-support seem to be broken right now.
> > > >
> > > > OW_CACHE is not used in ow_read.c or ow_write.c, so I guess Paul
> > have to
> > > look closer into this. I don't have time for it right now.
> > > >
> > > > We have guests at home this weekend..
> > > >
> > > >
> > > >
> > > > Fix one problem with disable-mt on uclibc. (checked in to the cvs
> > too.)
> > > >
> > > >
> > > >
> > > > diff -u -r1.117 owlib.c
> > > >
> > > > --- module/owlib/src/c/owlib.c  7 May 2007 17:14:37 -0000
> > 1.117
> > > >
> > > > +++ module/owlib/src/c/owlib.c  18 May 2007 20:48:33 -0000
> > > >
> > > > @@ -207,6 +207,7 @@
> > > >
> > > >                         PIDstart();
> > > >
> > > >         }
> > > >
> > > >
> > > >
> > > > +#if OW_MT
> > > >
> > > >         /* Have to re-initialize pthread since the main-process
> is
> > gone.
> > > >
> > > >          *
> > > >
> > > >          * This workaround will probably be fixed in uClibc-
> 0.9.28
> > > >
> > > > @@ -219,6 +220,7 @@
> > > >
> > > >         pthread_mutexattr_init(&mattr);
> > > >
> > > >         pthread_mutexattr_settype(&mattr,
> > > PTHREAD_MUTEX_ADAPTIVE_NP);
> > > >
> > > >         pmattr = &mattr;
> > > >
> > > > +#endif
> > > /* OW_MT */
> > > >
> > > >
> > > >
> > > >         /* Setup the multithreading synchronizing locks */
> > > >
> > > >         LockSetup();
> > > >
> > > >
> > > >
> > > > /Christian
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] ] On
> > > Behalf Of Eric Allen
> > > > Sent: den 18 maj 2007 19:12
> > > > To: [email protected]
> > > > Subject: Re: [Owfs-developers] OWFS on DD-WRT
> > > >
> > > >
> > > >
> > > >
> > > > Interesting...If I run ./configure with --disable-mt I get the
> > error about
> > > pthread stuff not being present. If I run it with --disable-cache I
> > get an
> > > error about the cache functions not being present (listed below).
> If
> > I
> > > enable both it compiles cleanly, but I'm left with a binary that
> > depends
> > > heavily on tesearch.
> > > >
> > > > mipsel-linux-uclibc-gcc -I../include -I../../../owlib/src/include
> > > -fexceptions -Wall -W -Wundef -Wshadow -Wpointer-arith -Wcast-qual
> > > -Wcast-align -Wstrict-prototypes -Wredundant-decls -
> > D_FILE_OFFSET_BITS=64
> > > -I/home/eric/ddwrt/toolchains/4.1.0- uclibc-0.9.28/include
> > > -o .libs/owhttpd owhttpd.o owhttpd_handler.o owhttpd_present.o
> > > owhttpd_write.o owhttpd_read.o owhttpd_dir.o owhttpd_favicon.o -
> Wl,--
> > rpath
> > > -Wl,/opt/owfs/lib  -L/home/eric/ddwrt/owfs-2.6p4/module/owlib/src/c
> -
> > pthread
> > > -L/home/eric/ddwrt/toolchains/4.1.0- uclibc-0.9.28/lib
> > > /home/eric/ddwrt/owfs-2.6p4/module/owlib/src/c/.libs/libow.so
> > > -lpthread -ldl -Wl,--rpath -Wl,/opt/owfs/lib
> > > >
> > > /home/eric/ddwrt/owfs-2.6p4/module/owlib/src/c/.libs/libow.so:
> > > undefined reference to `OWQ_Cache_Add'
> > > >
> > > /home/eric/ddwrt/owfs-2.6p4/module/owlib/src/c/.libs/libow.so:
> > > undefined reference to `OWQ_Cache_Get'
> > > >
> > > /home/eric/ddwrt/owfs-2.6p4/module/owlib/src/c/.libs/libow.so:
> > > undefined reference to `OWQ_Cache_Del'
> > > > collect2: ld returned 1 exit status
> > > > make[4]: *** [owhttpd] Error 1
> > > > make[4]: Leaving directory
> > > `/home/eric/ddwrt/owfs-2.6p4/module/owhttpd/src/c'
> > > > make[3]: *** [all-recursive] Error 1
> > > > make[3]: Leaving directory `/home/eric/ddwrt/owfs-
> > > 2.6p4/module/owhttpd/src'
> > > > make[2]: *** [all-recursive] Error 1
> > > > make[2]: Leaving directory `/home/eric/ddwrt/owfs-
> > 2.6p4/module/owhttpd'
> > > > make[1]: *** [all-recursive] Error 1
> > > > make[1]: Leaving directory `/home/eric/ddwrt/owfs- 2.6p4/module'
> > > > make: *** [all-recursive] Error 1
> > > >
> > > >
> > > > On 5/17/07, Eric Allen <[EMAIL PROTECTED] > wrote:
> > > >
> > > > I'm using uclibc 0.9.28 and either gcc 4.1 or 3.4.6 (same
> result).
> > Might
> > > it be worth a shot to drop the reinitialization?
> > > >
> > > >
> > > >
> > > -------------------------------------------------------------------
> --
> > ----
> > > > This SF.net email is sponsored by DB2 Express
> > > > Download DB2 Express C - the FREE version of DB2 express and take
> > > > control of your XML. No limits. Just data. Click to get it now.
> > > > http://sourceforge.net/powerbar/db2/
> > > > _______________________________________________
> > > > Owfs-developers mailing list
> > > > [email protected]
> > > >
> > > https://lists.sourceforge.net/lists/listinfo/owfs-developers
> > > >
> > > >
> > >
> > >
> > > -------------------------------------------------------------------
> --
> > ----
> > > This SF.net email is sponsored by DB2 Express
> > > Download DB2 Express C - the FREE version of DB2 express and take
> > > control of your XML. No limits. Just data. Click to get it now.
> > > http://sourceforge.net/powerbar/db2/
> > > _______________________________________________
> > > Owfs-developers mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/owfs-developers
> > >
> > >
> >
> > ---------------------------------------------------------------------
> --
> > --
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Owfs-developers mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/owfs-developers
> 
> 
> -----------------------------------------------------------------------
> --
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to