Search Criteria
Package Details: htdig 3.2.0b6-11
Git Clone URL: | https://aur.archlinux.org/htdig.git (read-only, click to copy) |
---|---|
Package Base: | htdig |
Description: | Scripts and HTML code needed for using ht://Dig as a web search engine |
Upstream URL: | http://www.htdig.org/ |
Licenses: | |
Submitter: | arojas |
Maintainer: | vasisualiy |
Last Packager: | vasisualiy |
Votes: | 5 |
Popularity: | 0.55 |
First Submitted: | 2017-02-18 10:44 |
Last Updated: | 2017-03-20 08:20 |
Latest Comments
noreun commented on 2018-01-23 21:40
I got the same error and the -fpermissive did the trick. I manage to index a website and the search is working fine.
Still there are lots of warnings during the build. Most 3 warnings repeating all the time:
/usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~~~~~
defaults.cc:2830:1: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
db_int.h:91:28: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] #define SSZA(name, field) ((int)&(((name *)0)->field[0])) ^
vasisualiy commented on 2017-08-17 19:12
Adding -fpermissive to CXXFLAGS helps. But its a hack, and I cannot see consequences at this time. Try it.
Simply edit one line in yours PKGBUILD
CFLAGS=-Wno-narrowing CXXFLAGS=-Wno-narrowing ./configure --prefix=/usr \
to this one:
CFLAGS=-Wno-narrowing CXXFLAGS="-Wno-narrowing -fpermissive" ./configure --prefix=/usr \
It helps. If it works without glitches, write here, and I make a patch.
fusion809 commented on 2017-06-28 16:09
Building gives this error:
Parsable.cc: In member function ‘void Parsable::addString(Retriever&, char*, int&, int)’:
Parsable.cc:77:9: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive]
w = '\0';
^~~~
Parsable.cc: In member function ‘void Parsable::addKeywordString(Retriever&, char*, int&)’:
Parsable.cc:95:9: error: invalid conversion from ‘char’ to ‘char*’ [-fpermissive]
w = '\0';
^~~~