[Privoxy-devel] compiler options for testing privoxy?

Lee ler762 at gmail.com
Sun Apr 22 18:36:16 UTC 2018


On 4/22/18, Fabian Keil <fk at fabiankeil.de> wrote:
> Lee <ler762 at gmail.com> wrote:
>
>> what compiler/loader options do you use when testing privoxy?
>
> I usually use:
>     ./configure -C --with-debug --enable-extended-host-patterns \
>         --enable-accept-filter --enable-no-gifs --enable-compression \
>         --enable-strptime-sanity-checks --enable-external-filters \
>         --enable-client-tags

--with-debug adds CFLAGS="$CFLAGS -ggdb"
gdb can easily deal with multiple threads or do you restrict the
number of threads privoxy will use?   gdb being one of the many things
on my list of things to learn someday..

> Sometimes I add:
>     export CFLAGS="-fsanitize=address -ggdb"
>     export CPPFLAGS=-I/usr/local/include/
>     export LDFLAGS="-fsanitize=address -L/usr/local/lib"
>     export ASAN_OPTIONS='abort_on_error=1'
>     export AFL_USE_ASAN=1
>     export AFL_HARDEN=1

*sigh*

$ i686-w64-mingw32-gcc -fsanitize=address use-after-free.c
/usr/lib/gcc/i686-w64-mingw32/6.4.0/../../../../i686-w64-mingw32/bin/ld:
cannot find -lasan
collect2: error: ld returned 1 exit status

$ i686-w64-mingw32-gcc -fsanitize=bounds-strict sbstrict.c
/usr/lib/gcc/i686-w64-mingw32/6.4.0/../../../../i686-w64-mingw32/bin/ld:
cannot find -lubsan
collect2: error: ld returned 1 exit status

I asked about it on the cygwin mailing list & was told it's unsupported :(

Thanks
Lee


More information about the Privoxy-devel mailing list