Re: slightly O/T - compiling htdig with Studio
Stefan Teleman <[email protected]>
| Newsgroups | gmane.comp.kde.solaris |
|---|---|
| Organization | KDE e.V. |
| Message-ID | <[email protected]> |
On Thursday 03 May 2007 12:37, Rob Fisher wrote: > Has anyone - I'm thinking specifically of Stefan of course! - > successfully compiled htdig with Studio 11? I need to get 3.1.6 > built, and it's choking on the C++ parts. > > I won't go into the errors in detail here, but in a nutshell CC > reports "too many arguments in call to" regfree(), regcomp() and > regerror(). The code looks fine to me, but obviously it isn't. I > can't find anything on the web that helps. > > I know I'm a bit off topic here, but htdig is a KDE dependency > after all, and I know there are some smart folks here who know > their Studio. Hopefully someone's built it, and remembers what they > did! OK. It looks like you have to change $(top_srcdir)/include/htconfig.h as follows: --- htconfig.h.orig 2007-05-03 14:34:17.921254000 -0400 +++ htconfig.h 2007-05-03 14:34:31.399643000 -0400 @@ -43,7 +43,7 @@ /* #undef NEED_PROTO_GETHOSTNAME */ /* Define if the included regex doesn't work */ -/* #undef HAVE_BROKEN_REGEX */ +#define HAVE_BROKEN_REGEX 1 /* Define if we should use rxposix.h instead of regex.h */ /* #undef USE_RX */ @@ -73,7 +73,7 @@ #define HAVE_FCNTL_H 1 /* Define if you have the <getopt.h> header file. */ -#define HAVE_GETOPT_H 1 +/* #undef HAVE_GETOPT_H */ /* Define if you have the <iostream.h> header file. */ #define HAVE_IOSTREAM_H 1 So, by default ./configure does not set #define HAVE_BROKEN_REGEX 1 which is the source of the problem with Studio. I just built it htdig 3.1.6 with these changes. Please let me know if that fixes it. --Stefan -- Stefan Teleman 'Nobody Expects the Spanish Inquisition' KDE e.V. -Monty Python [email protected] ___________________________________________________ This message is from the kde-solaris mailing list. Account management: https://mail.kde.org/mailman/listinfo/kde-solaris. Archives: http://lists.kde.org/. More info: http://www.kde.org/faq.html.