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: GPL
Submitter: arojas
Maintainer: vasisualiy
Last Packager: vasisualiy
Votes: 5
Popularity: 0.000000
First Submitted: 2017-02-18 10:44 (UTC)
Last Updated: 2017-03-20 08:20 (UTC)

Latest Comments

sgizoid commented on 2021-12-11 20:41 (UTC)

Can be built by specifying the c++ version in the CXXFLAGS variable in the PKGBUILD like so:

CFLAGS=-Wno-narrowing CXXFLAGS="-Wno-narrowing -std=c++03" ./configure --prefix=/usr \

SlavekB commented on 2021-09-27 18:41 (UTC)

I looked at the current problem of building htdig with GCC 11 and found that the same is reported as Debian Bug #984180. I prepared patch that solves this FTBFS and sent it to Debian BTS – see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=984180

noreun commented on 2018-01-23 21:40 (UTC)

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 (UTC) (edited on 2017-08-17 19:24 (UTC) by vasisualiy)

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 (UTC)

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'; ^~~~