[JDEV] Building under cygwin, -lpth

Jonathan H Lundquist jhl at sssonline.com
Mon Dec 30 09:25:03 CST 2002


Someone on this list must know the magic incantations for building under
cygwin; I'd sure appreciate their help!  When I try to build I get the
following error:
ld: cannot find -lpth

I've searched the archive for this list, and find this question comes up
a lot, but I don't find it answered.  I've read you shouldn't use the
latest pth, so I've only built the pth-1.4.0 which comes with the jabber
distribution.  I've read that you can't use winzip to unzip the .tar.gz
file, so I used tar under cygwin to unpack the files.

The above which I've tried was all I could find in a google search and a
jdev archive search that purported to relate to the problem.

I also get a warning when building pth-1.4.0 which may or may not be
related:

./libtool --mode=link --quiet gcc -o libpth.la pth_debug.lo pth_ring.lo
pth_pqueue.lo
pth_time.lo pth_errno.lo pth_mctx.lo pth_tcb.lo pth_sched.lo pth_attr.lo
pth_lib.lo
pth_event.lo pth_data.lo pth_clean.lo pth_cancel.lo pth_msg.lo
pth_sync.lo
pth_fork.lo pth_util.lo pth_high.lo pth_syscall.lo pth_ext.lo
pth_compat.lo pth_string.lo \
-rpath /usr/local/lib -version-info `./shtool version -lc -dlibtool
pth_vers.c`
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin
shared libraries

I would really like to be able to build jabber, because I'm having
problems with it which I've been told on the jadmin list are known
problems with the windows binary distribution which rebuilding it would
help alleviate.




More information about the JDev mailing list