delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/19/08:15:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <4305CD33.7010606@familiehaase.de>
Date: Fri, 19 Aug 2005 14:14:43 +0200
From: "Gerrit P. Haase" <gerrit AT familiehaase DOT de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.11) Gecko/20050728
MIME-Version: 1.0
To: Herb Martin <HerbM AT learnquick DOT com>
CC: cygwin AT cygwin DOT com
Subject: Re: Trying to build crm114 (20050721) under CygWin 1.5.18-1
References: <EILGX5Z-0006U4-D2 AT mail2 DOT learnquick DOT com>
In-Reply-To: <EILGX5Z-0006U4-D2@mail2.learnquick.com>
X-IsSubscribed: yes

Herb Martin wrote:

> [I would of course love a solution for this, but even hints on how to
> approach such a problem will be greatly appreciated.]
> 
> Trying to install current version of crm114
> (crm114-20050721-BlameNeilArmstrong.src) under cygwin 1.5.18 without success
> (see relevant output below).
> 
> 	http://crm114.sourceforge.net/
> 
> Just prior to the error the make file outputs a warning that if TRE (the
> regex library) is not installed you will get an error AND that to fix this
> you must edit /etc/ld.so.conf to include /usr/local/lib, and then run
> ldconfig.
> 
> I have made, tested and installed TRE (tre-0.7.2, the version included with
> the crm114 source) but there was no file '/usr/local/lib' and "which
> ldconfig" does not find that program. (make, make check, and make install
> all succeed for TRE.
> 
> Documentation indicates TRE must be prepared with './configure
> --enable-static' (which I did.)
> (CRM114 & Mailfilter HOWTO
> <http://crm114.sourceforge.net/CRM114_Mailfilter_HOWTO.txt>)
> 
> [Needless to say, I am not very familiar with linking or writing make files
> on cygwin.]
> 
> --
> Herb Martin
> 
> [There is a SourceForge project for ports that are NOT included in the
> standard CygWin release:
> <http://sourceforge.net/project/showfiles.php?group_id=99645>
> ....which has crm114 20040328-1 from 2004-04-21 (most/all of the packages
> there are dated from 2004.
> This one doesn't make for me either.]
> 
> 
> Failure of crm114 20050721 output:
> $ make
> make crm114_tre
> make[1]: Entering directory
> `/etc/mail/spamassassin/crm114-20050721-BlameNeilArmstrong.src'
> #
> #   Note: if you haven't installed TRElib, the next step
> #   will get an error.
> #       For TRElib, look in the TRE sub-directory of this kit.
> #   Remember to use ./configure --enable-static for static libs.
> #   You will also need to add /usr/local/lib to /etc/ld.so.conf,
> #   and then run ldconfig (as root) to set the library up and make
> #   the library known to the static and runtime linkers.
> #
> gcc -static -L/usr/local/lib  crm_main.o crm_compiler.o crm_errorhandlers.o
> crm_exec_engine.o crm_preprocessor.o crm_var_hash_table.o crm_math_exec.o
> crm_expandvar.o crm_stmt_parser.o crm_expr_alter.o crm_expr_match.o
> crm_css_maintenance.o crm_markovian.o crm_osb_bayes.o crm_osb_hyperspace.o
> crm_correlate.o crm_osb_winnow.o crm_winnow_maintenance.o crm_osbf_bayes.o
> crm_osbf_maintenance.o crm_expr_window.o crm_expr_isolate.o
> crm_expr_file_io.o crm_expr_syscall.o crm_expr_clas sify.o crm_debugger.o
> crm_str_funcs.o  \
>   crmregex_tre.o \
>   -lm -ltre -o crm114_tre
> /usr/local/lib/libtre.a(regerror.o): In function `regerror':
> /etc/mail/spamassassin/crm114-20050721-BlameNeilArmstrong.src/tre-0.7.2/lib/
> regerror.c:68: undefined reference to `_libintl_gettext'
> collect2: ld returned 1 exit status
> make[1]: *** [crm114_tre] Error 1
> make[1]: Leaving directory
> `/etc/mail/spamassassin/crm114-20050721-BlameNeilArmstrong.src'
> make: *** [crm114] Error 2

The above error just means that you'r missing libintl at your link
command, try to add -lintl to the Makefile where appropriate.


There are ready to use TRE packages.  E.g. here:
ftp://sunsite.dk/projects/cygwinports/release/tre/

There is also a source package, including a script and patch (if
any patch is needed), the patch may be adopted for newer releases
and the script contains the configure options used to build this
package.  However, you also may try to use this older version without
rebuilding TRE.


Gerrit
-- 
=^..^=

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019