Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "Herb Martin" To: Subject: RE: Trying to build crm114 (20050721) under CygWin 1.5.18-1 Date: Fri, 19 Aug 2005 10:43:51 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <4305F226.CD82A7FD@dessent.net> Message-ID: X-Sign-LQC: HerbM AT learnquick DOT com/2005-08-19 10:43:41/=yxtkhtxk > From Behalf Of Brian Dessent > > -L takes a single path, no colon. You specify it multiple > times to add multiple paths. But /lib is already be in the > search path so this is redundant and unnecessary. Ok, so I just dropped the -L/lib (and :/lib) and even tried adding the TRE lib directory which is below the crm build directory (as opposed to the same one I think is installed in /usr/bin/local): -L./tre-0.7.2/lib ...in the thought that maybe the supposedly installed tre libs were not getting picked up -- no joy. Didn't help. > > gcc -static -L/usr/local/lib:/lib -lintl -liconv crm_main.o > > crm_compiler.o crm_errorhandlers.o crm_exec_engine.o crm_p > > -lm -ltre -o crm114_tre > > > /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: > > cannot find -ltre > > collect2: ld returned 1 exit status > > make[1]: *** [crm114_tre] Error 1 > Now you've got the order wrong. The objects must be > specified in dependent order, which generally means libraries > after objects. Order of what specifically? I am modifying these lines in the Makefile: LDFLAGS += -L/usr/local/lib #LIBS += -lintl -liconv I uncommented the second line and added various combinations of -L to the first, and -ltre to the second. LDFLAGS += -L/usr/local/lib LIBS += -ltre -lintl -liconv (and trying -ltre at the end; is THIS the order you were referencing?) The dependency tha that is failing looks like this: crm114_tre: $(OFILES) crmregex_tre.o # 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. $(CC) $(LDFLAGS) $(LIBS) $(OFILES) \ crmregex_tre.o \ -lm -ltre -o crm114_tre My tre libs looks like this: $ d /usr/local/lib/*tre* rw-r--r-- herbm:None 349K Aug 18 21:29 libtre.a rwxr-xr-x herbm:None 789 Aug 18 21:29 libtre.la $ d ./tre-0.7.2/lib rw-r--r-- herbm:None 18K Aug 18 19:34 Makefile rwxr-xr-x herbm:None 707 Dec 10 2004 Makefile.am rwxr-xr-x herbm:None 19K Dec 11 2004 Makefile.in rwxr-xr-x herbm:None 3K Apr 24 2004 gettext.h rw-r--r-- herbm:None 788 Aug 19 05:58 libtre.la rwxr-xr-x herbm:None 2.7K Nov 21 2004 readme rwxr-xr-x herbm:None 3.3K Oct 11 2004 regcomp.c rw-r--r-- herbm:None 312 Aug 19 05:58 regcomp.lo rw-r--r-- herbm:None 18K Aug 19 05:58 regcomp.o rwxr-xr-x herbm:None 2.7K Oct 10 2004 regerror.c rw-r--r-- herbm:None 315 Aug 19 05:58 regerror.lo rw-r--r-- herbm:None 16K Aug 19 05:58 regerror.o rwxr-xr-x herbm:None 7.6K Nov 21 2004 regex.h rwxr-xr-x herbm:None 9.7K Nov 21 2004 regexec.c rw-r--r-- herbm:None 312 Aug 19 05:58 regexec.lo rw-r--r-- herbm:None 24K Aug 19 05:58 regexec.o rwxr-xr-x herbm:None 31 Aug 18 19:34 stamp-h2 rwxr-xr-x herbm:None 5.6K Oct 11 2004 tre-ast.c rwxr-xr-x herbm:None 4K Nov 21 2004 tre-ast.h rw-r--r-- herbm:None 312 Aug 19 05:57 tre-ast.lo rw-r--r-- herbm:None 19K Aug 19 05:57 tre-ast.o rwxr-xr-x herbm:None 59K Dec 10 2004 tre-compile.c rwxr-xr-x herbm:None 1K Nov 21 2004 tre-compile.h rw-r--r-- herbm:None 324 Aug 19 05:57 tre-compile.lo rw-r--r-- herbm:None 66K Aug 19 05:57 tre-compile.o rwxr-xr-x herbm:None 1.3K Dec 11 2004 tre-config.h rwxr-xr-x herbm:None 1.2K Dec 10 2004 tre-config.h.in rwxr-xr-x herbm:None 2.2K Nov 21 2004 tre-filter.c rwxr-xr-x herbm:None 363 Nov 21 2004 tre-filter.h rw-r--r-- herbm:None 321 Aug 19 05:57 tre-filter.lo rw-r--r-- herbm:None 16K Aug 19 05:57 tre-filter.o rwxr-xr-x herbm:None 8K Nov 21 2004 tre-internal.h rwxr-xr-x herbm:None 24K Nov 21 2004 tre-match-approx.c rw-r--r-- herbm:None 339 Aug 19 05:58 tre-match-approx.lo rw-r--r-- herbm:None 38K Aug 19 05:58 tre-match-approx.o rwxr-xr-x herbm:None 18K Nov 21 2004 tre-match-backtrack.c rw-r--r-- herbm:None 348 Aug 19 05:57 tre-match-backtrack.lo rw-r--r-- herbm:None 30K Aug 19 05:57 tre-match-backtrack.o rwxr-xr-x herbm:None 14K Nov 21 2004 tre-match-parallel.c rw-r--r-- herbm:None 345 Aug 19 05:57 tre-match-parallel.lo rw-r--r-- herbm:None 24K Aug 19 05:57 tre-match-parallel.o rwxr-xr-x herbm:None 6.4K Nov 21 2004 tre-match-utils.h rwxr-xr-x herbm:None 3.7K Oct 11 2004 tre-mem.c rwxr-xr-x herbm:None 2.4K Sep 04 2004 tre-mem.h rw-r--r-- herbm:None 312 Aug 19 05:57 tre-mem.lo rw-r--r-- herbm:None 17K Aug 19 05:57 tre-mem.o rwxr-xr-x herbm:None 44K Apr 17 13:37 tre-parse.c rwxr-xr-x herbm:None 2K Oct 11 2004 tre-parse.h rw-r--r-- herbm:None 318 Aug 19 05:57 tre-parse.lo rw-r--r-- herbm:None 63K Aug 19 05:57 tre-parse.o rwxr-xr-x herbm:None 2.4K Nov 21 2004 tre-stack.c rwxr-xr-x herbm:None 2.4K Oct 11 2004 tre-stack.h rw-r--r-- herbm:None 318 Aug 19 05:58 tre-stack.lo rw-r--r-- herbm:None 17K Aug 19 05:58 tre-stack.o rwxr-xr-x herbm:None 7K Dec 02 2003 xmalloc.c rwxr-xr-x herbm:None 2.9K Sep 04 2004 xmalloc.h Current error looks like this: # 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./tre-0.7.2/lib -L/usr/local/lib -ltre -lintl -liconv 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_classify.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 -- 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/