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]: mail][mailto:
[EMAIL PROTECTED]: mail]] *On Behalf Of
*Eric Allen
*Sent:* den 18 maj 2007 19:12
*To:* [EMAIL PROTECTED]: mail]
*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]: mail]> 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]: mail]
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
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to