LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Compiling and Link Errors With Regex.h from TCL 8.4.11 (https://www.linuxquestions.org/questions/slackware-14/compiling-and-link-errors-with-regex-h-from-tcl-8-4-11-a-420802/)

rundarm 03-01-2006 11:25 PM

Compiling and Link Errors With Regex.h from TCL 8.4.11
 
Hello
I am trying to configure openldap-stable-20060227.tar.bz2. I get this error message.

checking regex.h usability... no
checking regex.h presence... yes
configure: WARNING: regex.h: present but cannot be compiled
configure: WARNING: regex.h: check for missing prerequisite headers?
configure: WARNING: regex.h: see the Autoconf documentation
configure: WARNING: regex.h: section "Present But Cannot Be Compiled"
configure: WARNING: regex.h: proceeding with the preprocessor's result
configure: WARNING: regex.h: in the future, the compiler will take precedence
configure: WARNING: ## --------------------------------------------- ##
configure: WARNING: ## Report this to <http://www.openldap.org/its/> ##
configure: WARNING: ## --------------------------------------------- ##
checking for regex.h... yes
checking for library containing regfree... none required
checking for compatible POSIX regex... no
configure: error: broken POSIX regex!

I am running Slackware 10.2. I am using the tk and tcl that came with Slackware. I also am having problems compiling Motif.
ftp://ftp.ics.com/pub/Products/Motif...0060106.tar.gz

In file included from Xmos.c:93: << #include <regex.h>

typedef __REG_VOID_T re_void
/usr/include/regex.h:145: error: syntax error before "re_void"

int __REG_WIDE_COMPILE _ANSI_ARGS_((regex_t *, __REG_CONST __REG_WIDE_T *, size_t, int));
/usr/include/regex.h:314: error: syntax error before "_ANSI_ARGS_"


int __REG_WIDE_EXEC _ANSI_ARGS_((regex_t *, __REG_CONST __REG_WIDE_T *, size_t, rm_detail_t *, size_t, regmatch_t [], int));
/usr/include/regex.h:323: error: syntax error before "_ANSI_ARGS_"

xtern size_t regerror _ANSI_ARGS_((int, __REG_CONST regex_t *, char *, size_t));
/usr/include/regex.h:326: error: syntax error before "_ANSI_ARGS_"
Xmos.c: In function `_XmOSGetDirEntries':
Xmos.c:714: warning: implicit declaration of function `regcomp'
Xmos.c:843: warning: implicit declaration of function `regexec'
Xmos.c:926: warning: implicit declaration of function `TclReFree'

If I put an include <regcustom.h> in the line right before regex.h it will compile but cannot link due to undefined reference to `TclReFree'

If you need any more info just let me know.


All times are GMT -5. The time now is 06:04 AM.