Closed sjlongland closed 5 years ago
Also tried to build and also error building "streamhtmlparser". I removed it from Makefile and got other errors even in heade files (sysntax): gcc -g -O2 -pthread -Wall -I.. -I/src -fPIC -o csparse.o -c csparse.c In file included from csparse.c:39:0: csparse.c: In function ‘read_auto_status’: ../util/neo_misc.h:216:75: error: expected expression before ‘)’ token ne_logf(PRETTY_FUNCTION,FILE,LINE,NE_LOG_WARN,f,VA_ARGS) ^ csparse.c:527:7: note: in expansion of macro ‘ne_warn’ ne_warn("Ignoring attempt to change value of Config.AutoEscape\n"); ^ ../rules.mk:154: recipe for target 'csparse.o' failed make: *** [csparse.o] Error 1
I guess this project is broken. Sad... it was very promising for my embedded application.
@mvaranda, what's your gcc version? I hit a similar compile error a while back and proposed c55890f, but I was on clearsilver v0.10.5. I closed #12 because it looked like the newer version was doing something differently, but maybe it is still needed. I just now realized the same check I changed in c55890f still occurs in v0.11.0, but in util/neo_misc.h. Someone has added a defined (COMPILER_GCC4)
condition in a775aac, but I'm not familiar with that define and I don't see where it comes from.
@mvaranda I rebased my change and submitted PR #18. I tried building master on my Mac and still encountered the problem.
Apple LLVM version 9.1.0 (clang-902.0.39.2)
To respond to @sjlongland's original issue, yes, streamhtmlparser is a hard dependency. Unless you specify a configure option pointing to streamhtmlparser's directory, it will automatically expect to find a clone of streamhtmlparser's source in clearsilver's top source directory, which is the error you were experiencing. This should probably be a configure error if the directory doesn't exist, instead of waiting for compile-time.
Thanks a lot Kyle. I had to move on with my project using different solutions. I am pretty sure more people will benefit of your fix. Best regards.
The INSTALL
and README
documentation makes no mention of this. Like @mvaranda I've now moved on, opting to re-write the photo gallery application I originally wrote in C with a replacement in Python (using Tornado) as it looked like clearsilver was no longer in development.
Plus my needs have changed, I'm no longer running my applications on a second-hand Pentium III 550MHz server, the modern frameworks aren't such a burden now on modern hardware, so re-writing the application in a new framework was an opportunity to try something newer.
Updated INSTALL to refer to streamhtmlparser, sorry for the late response.
On Gentoo Linux (security hardened with musl libc).
streamhtmlparser
seems to be missing. Is there some step I missed?