This is the mail archive of the cygwin@cygwin.com 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]

Linking (?) problem with ccze


Hello,

Hope someone can help me with this. I've been trying to compile an app
ccze (a log colorizer) under cygwin. The src is here:

ftp://bonehunter.rulez.org/pub/ccze/stable/pre/ccze-0.1.190.tar.gz

This compiles and runs fine under Debian linux and FreeBSD. It also
compiles and runs fine under Cygwin (1.3.20-1) if it is configured with:

./configure --with-builtins=all

(The app uses plugins for different log formats; this compiles all of
the plugins directly into the main executable, which isn't ideal).

However, if I try a straight:

./configure
make

I get the following errors:

....
....
/mnt/windows/TEMP/ccofoCw7.o(.text+0x4d): In function
`ccze_apm_process':
/home/jon/tmp/ccze-0.1.190/src/mod_apm.c:37: undefined reference to
`_pcre_get_substring'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x6c):/home/jon/tmp/ccze-0.1.190/src/
mod_apm.c:38: undefined reference to `_pcre_get_substring'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x8b):/home/jon/tmp/ccze-0.1.190/src/
mod_apm.c:39: undefined reference to `_pcre_get_substring'
/mnt/windows/TEMP/ccofoCw7.o(.text+0xaa):/home/jon/tmp/ccze-0.1.190/src/
mod_apm.c:40: undefined reference to `_pcre_get_substring'
/mnt/windows/TEMP/ccofoCw7.o(.text+0xc9):/home/jon/tmp/ccze-0.1.190/src/
mod_apm.c:41: undefined reference to `_pcre_get_substring'
/mnt/windows/TEMP/ccofoCw7.o(.text+0xe8):/home/jon/tmp/ccze-0.1.190/src/
mod_apm.c:42: more undefined references to `_pcre_get_substring' follow
/mnt/windows/TEMP/ccofoCw7.o(.text+0x11b): In function
`ccze_apm_process':
/home/jon/tmp/ccze-0.1.190/src/mod_apm.c:45: undefined reference to
`_ccze_addstr'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x120):/home/jon/tmp/ccze-0.1.190/src
/mod_apm.c:46: undefined reference to `_ccze_space'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x133):/home/jon/tmp/ccze-0.1.190/src
/mod_apm.c:47: undefined reference to `_ccze_addstr'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x147):/home/jon/tmp/ccze-0.1.190/src
/mod_apm.c:48: undefined reference to `_ccze_addstr'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x14c):/home/jon/tmp/ccze-0.1.190/src
/mod_apm.c:49: undefined reference to `_ccze_space'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x15f):/home/jon/tmp/ccze-0.1.190/src
/mod_apm.c:50: undefined reference to `_ccze_addstr'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x164):/home/jon/tmp/ccze-0.1.190/src
/mod_apm.c:51: undefined reference to `_ccze_space'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x178):/home/jon/tmp/ccze-0.1.190/src
/mod_apm.c:52: undefined reference to `_ccze_addstr'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x18b):/home/jon/tmp/ccze-0.1.190/src
/mod_apm.c:53: undefined reference to `_ccze_addstr'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x19f):/home/jon/tmp/ccze-0.1.190/src
/mod_apm.c:54: undefined reference to `_ccze_addstr'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x1a4):/home/jon/tmp/ccze-0.1.190/src
/mod_apm.c:55: undefined reference to `_ccze_space'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x1b7):/home/jon/tmp/ccze-0.1.190/src
/mod_apm.c:56: undefined reference to `_ccze_addstr'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x1bc):/home/jon/tmp/ccze-0.1.190/src
/mod_apm.c:57: undefined reference to `_ccze_space'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x1cf):/home/jon/tmp/ccze-0.1.190/src
/mod_apm.c:58: undefined reference to `_ccze_addstr'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x1e3):/home/jon/tmp/ccze-0.1.190/src
/mod_apm.c:59: undefined reference to `_ccze_addstr'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x1e8):/home/jon/tmp/ccze-0.1.190/src
/mod_apm.c:60: undefined reference to `_ccze_space'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x1fb):/home/jon/tmp/ccze-0.1.190/src
/mod_apm.c:61: undefined reference to `_ccze_addstr'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x200):/home/jon/tmp/ccze-0.1.190/src
/mod_apm.c:62: undefined reference to `_ccze_space'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x2ec): In function `ccze_apm_setup':
/home/jon/tmp/ccze-0.1.190/src/mod_apm.c:78: undefined reference to
`_pcre_compile'
/mnt/windows/TEMP/ccofoCw7.o(.text+0x376): In function
`ccze_apm_handle':
/home/jon/tmp/ccze-0.1.190/src/mod_apm.c:90: undefined reference to
`_pcre_exec'
collect2: ld returned 1 exit status
make[1]: *** [apm.so] Error 1
make[1]: Leaving directory `/home/jon/tmp/ccze-0.1.190/src'
make: *** [all-recursive] Error 2



Has anyone come across something like this before? I'm told that the
same problem happens under Redhat...

Thanks

Jon Ewing.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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]