[JDEV] problems compiling

Michael O Shea micheal at com4u.ch
Mon Jul 10 14:41:55 CDT 2000


>On Mon, Jul 10, 2000 at 04:49:13PM +0200, Michael O Shea wrote:
>! configure:1970: gcc -o conftest -g -O2   conftest.c -lpth
>! -I/usr/local/include -L/usr/local/lib -lpth   1>&5
>! configure:2006: checking for adns_init in -ladns
>! configure:2025: gcc -o conftest -g -O2   conftest.c -ladns -LNONE/lib
>! -lpth  1>&5
>! /usr/libexec/elf/ld: cannot open -lpth: No such file or directory
>
>Yep, I found the problem. I leave the Jabber coders to fix it, however.
>
>When searching for libpth, configure uses pth-config to find the
>required switches (-L/usr/local/lib, in your case). However, after
>successfully finding libpth, and adding -lpth to $LIBS, it neglects
>to add said required switches as well.
>
>Having said that however, fixing the above only solves the problem of
>subsequently finding libpth (which is what the ``cannot open -lpth''
>is about). It does not solve the problem of finding libadns.
>
>To solve the bigger problem, to wit finding libraries in /usr/local/lib,
>I suggest you set $LIBRARY_PATH in the appropriate login scripts to
>include /usr/local/lib; apparently gcc converts items in $LIBRARY_PATH
>to -L switches to pass to ld. Similar comments apply if your libadns is
>installed somewhere other than /usr/local/lib.
>
>To Eliot et al: I believe that, if you use gcc, setting $LIBRARY_PATH
>is a general solution. See *Note (gcc)Environment Variables::.
>
>Hope it helps,
Hi folks,
Well setting the LIBRARY_PATH to include /usr/local/lib creates the 
makefile for libetherx.
Then typing

/usr/home/micheal/jabber/libetherx-1.0 7 -> gmake

Breaks with the following.



Making all in include
gmake[1]: Entering directory `/usr/home/micheal/jabber/libetherx-1.0/include'
gmake[1]: Leaving directory `/usr/home/micheal/jabber/libetherx-1.0/include'
Making all in src
gmake[1]: Entering directory `/usr/home/micheal/jabber/libetherx-1.0/src'
/bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. 
-I../include -I/usr/local/include -I/usr/local/include    -Wall -c 
ehandler.c
rm -f .libs/ehandler.lo
gcc -DHAVE_CONFIG_H -I. -I. -I../include -I/usr/local/include 
-I/usr/local/include -Wall -c  -fPIC -DPIC ehandler.c -o 
.libs/ehandler.lo
ehandler.c: In function `ehandler_new':
ehandler.c:39: `ZONE' undeclared (first use in this function)
ehandler.c:39: (Each undeclared identifier is reported only once
ehandler.c:39: for each function it appears in.)
ehandler.c:42: warning: implicit declaration of function `pool_heap'
ehandler.c:42: warning: assignment makes pointer from integer without a cast
ehandler.c: In function `ehandler_send':
ehandler.c:86: `ZONE' undeclared (first use in this function)
gmake[1]: *** [ehandler.lo] Error 1
gmake[1]: Leaving directory `/usr/home/micheal/jabber/libetherx-1.0/src'
gmake: *** [all-recursive] Error 1
-- 


Micheal O Shea                         Email:micheal at com4u.ch
com4u.ch                                        http://www.com4u.ch
Breitistrasse 7B  		PGP key available upon request.
CH-5506 Maegenwil                            Tel: +41 62 896 46 26
Switzerland




More information about the JDev mailing list