This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Trying to build crm114 (20050721) under CygWin 1.5.18-1


Herb Martin wrote:
> 

> 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.

ld.so.conf and ldconfig are aspects of the Linux dynamic linker.  There
is no such thing under Windows or Cygwin, so those instructions are
meaningless.  The closest equivalent is to ensure that the installed DLL
is in the path.  This normally means that if you configured with
--prefix=/usr/local (the default) that you should get a
cyg<whatever>.dll in /usr/local/bin and hence you need /usr/local/bin in
the path.  Only static libraries and import libraries go in
/usr/local/lib, and these do not need to be in the path.

> /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 `_libi ntl_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

I assume this is a copy and paste error and that there was no space in
`_libintl_gettext'.  It sounds like you need to add -lintl to the link
command line.  If I'm not mistaken, these functions are part of glibc on
the Linux platform so there is no need for any extra -l switches there. 
If this is the case then it indicates that the configury for this
program is seriously broken, because these things are supposed to be
detected.  You might try an autoreconf --install --force --verbose (or
run the equivalent bootstrap.sh if included) before trying anything
else.

OT: Why in the hell are you compiling source code under /etc?

Brian

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]