Hi, It works if compiled without "--disable-cookies" option. how to disable cookies in dillo? XXX@debian:~/download$ cd dillo XXX@debian:~/download/dillo$ ./configure --disable-cookies ... XXX@debian:~/download/dillo$ make make all-recursive make[1]: Entering directory `/home/XXX/download/dillo' Making all in doc make[2]: Entering directory `/home/XXX/download/dillo/doc' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/XXX/download/dillo/doc' Making all in src make[2]: Entering directory `/home/XXX/download/dillo/src' Making all in IO make[3]: Entering directory `/home/XXX/download/dillo/src/IO' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/XXX/download/dillo/src/IO' make[3]: Entering directory `/home/XXX/download/dillo/src' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/XXX/download/dillo/src' make[2]: Leaving directory `/home/XXX/download/dillo/src' Making all in dpid make[2]: Entering directory `/home/XXX/download/dillo/dpid' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/XXX/download/dillo/dpid' Making all in dpi make[2]: Entering directory `/home/XXX/download/dillo/dpi' gcc -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -DDISABLE_COOKIES -D_REENTRANT -D_THREAD_SAFE -Wall -Waggregate-return -L/usr/local/lib -o cookies.dpi cookies.o dpiutil.o -L/usr/lib -lglib /usr/lib/crt1.o: In function `_start': ../sysdeps/i386/elf/start.S:115: undefined reference to `main' collect2: ld returned 1 exit status make[2]: *** [cookies.dpi] Error 1 make[2]: Leaving directory `/home/XXX/download/dillo/dpi' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/XXX/download/dillo' make: *** [all-recursive-am] Error 2 XXX@debian:~/download/dillo$
El Sun, 4 Sep 2005 02:01:04 -0700 south park <llmmix@gmail.com> escribio:
Hi, It works if compiled without "--disable-cookies" option. how to disable cookies in dillo?
Dillo disables cookies by default (cookies are configured with the $HOME/.dillo/cookiesrc file), but the code to use cookies is in dillo(in that version in a DilloPlugIn outside dillo, but exec by dillo if cookies enabled) is there. Read doc/Cookies.txt in dillo sources for more information. (the answer continues down)
XXX@debian:~/download$ cd dillo XXX@debian:~/download/dillo$ ./configure --disable-cookies ... XXX@debian:~/download/dillo$ make make all-recursive make[1]: Entering directory `/home/XXX/download/dillo' Making all in doc make[2]: Entering directory `/home/XXX/download/dillo/doc' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/XXX/download/dillo/doc' Making all in src make[2]: Entering directory `/home/XXX/download/dillo/src' Making all in IO make[3]: Entering directory `/home/XXX/download/dillo/src/IO' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/XXX/download/dillo/src/IO' make[3]: Entering directory `/home/XXX/download/dillo/src' make[3]: Nothing to be done for `all-am'. make[3]: Leaving directory `/home/XXX/download/dillo/src' make[2]: Leaving directory `/home/XXX/download/dillo/src' Making all in dpid make[2]: Entering directory `/home/XXX/download/dillo/dpid' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/XXX/download/dillo/dpid' Making all in dpi make[2]: Entering directory `/home/XXX/download/dillo/dpi' gcc -I/usr/include/glib-1.2 -I/usr/lib/glib/include -g -O2 -DDISABLE_COOKIES -D_REENTRANT -D_THREAD_SAFE -Wall -Waggregate-return -L/usr/local/lib -o cookies.dpi cookies.o dpiutil.o -L/usr/lib -lglib /usr/lib/crt1.o: In function `_start': ../sysdeps/i386/elf/start.S:115: undefined reference to `main' collect2: ld returned 1 exit status make[2]: *** [cookies.dpi] Error 1 make[2]: Leaving directory `/home/XXX/download/dillo/dpi' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/XXX/download/dillo' make: *** [all-recursive-am] Error 2 XXX@debian:~/download/dillo$
Is something that knows about Makefiles and auto* tools interesting in helpme to fix this? I do not have the knows for it. I think that the cookies.dpi must not be compiled if cookies are disabled with "./configure --disable-cookies". More about makefiles: Can somebody write a generic makefile for DPIs(DilloPlugins) distributed outside dillo source. It need to install the compiled DPI(DilloPlugIn) in the DPIs system directory when "make install" run as root or install the DPI in the $HOME/.dillo/dpi/ when not and then exec "dpidc register" I think a version of the hello plugin distributed outside dillo can help to the people to write more DPIs. Diego.
On Mon, Sep 05, 2005 at 02:59:38AM +0200, Diego Sáenz wrote:
Is something that knows about Makefiles and auto* tools interesting in helpme to fix this? I do not have the knows for it. I think that the cookies.dpi must not be compiled if cookies are disabled with "./configure --disable-cookies".
The easiest solution is to comment out the target or subdirectory with a variable like ${NO_COOKIES}, which is set to '#' if --disable-cookies is set. That's what automake uses to implement conditional compilation. Joerg
Hi, On Mon, Sep 05, 2005 at 02:59:38AM +0200, Diego Sáenz wrote:
El Sun, 4 Sep 2005 02:01:04 -0700 south park <llmmix@gmail.com> escribio:
Hi, It works if compiled without "--disable-cookies" option. how to disable cookies in dillo?
Dillo disables cookies by default (cookies are configured with the $HOME/.dillo/cookiesrc file), but the code to use cookies is in dillo(in that version in a DilloPlugIn outside dillo, but exec by dillo if cookies enabled) is there.
Read doc/Cookies.txt in dillo sources for more information.
Although 'cookiesrc' is enough to control cookies, the compile option "--disable-cookies" was introduced because it served to reduce dillo's binary size for embedded environments (cookie support code is not small). Even now that most of that code was moved into an external plugin, it still saves some remaining cookie-code inside dillo. A patch for the problem is in the CVS now. Please test it. Note: the cookies.dpi is still compiled when cookies are disabled with "--disable-cookies" (near 5KB that can be safely ignored or deleted because it will never run). I don't feel like complicating the autotools* stuff to make the cookies.dpi not to compile ;-). Ah, I also added a message to remind cookies were disabled at compile time.
More about makefiles: Can somebody write a generic makefile for DPIs(DilloPlugins) distributed outside dillo source. It need to install the compiled DPI(DilloPlugIn) in the DPIs system directory when "make install" run as root or install the DPI in the $HOME/.dillo/dpi/ when not and then exec "dpidc register"
There's a script in the tarball: install-dpi-local. More or less it does what you want. -- Cheers Jorge.-
participants (4)
-
Diego Sáenz
-
Joerg Sonnenberger
-
Jorge Arellano Cid
-
south park