[JDEV] problems compiling

Michael O Shea micheal at com4u.ch
Mon Jul 10 09:49:13 CDT 2000


>On Sun, Jul 09, 2000 at 08:32:37PM -0500, Eliot Landrum wrote:
>! If someone can tell me what the equivalent steps are on FreeBSD (or
>! if they are even needed!).. I'll add that to the HOWTO.
>
>I don't use FreeBSD, but meanwhile I'll fill in what I know about
>OpenBSD, which I hope is ``similar enough''.
>
>			*	*	*
>
>OpenBSD does have an ldconfig, but it doesn't use /etc/ld.so.conf;
>instead you specify the directories on invocation, so you normally do
>
>	$ sudo ldconfig /usr/local/lib /usr/X11R6/lib
>
>However, the linker does not appear to use /var/run/ld.so.hints (no
>mention of that file when I ``strings /usr/bin/ld''). What's always
>worked for me is to ensure that -L/usr/local/lib is specified, assuming
>the requisite libraries are installed in /usr/local/lib.
>
>I'm sure others will have different experiences with this, which I'll
>be glad to hear.
>
>			*	*	*
>
>What could be more interesting to see may be the last few lines of
>config.log. That's usually very telling about what the problem really
>is, so if Micheal still has it around I certainly won't mind looking
>at it.
>
>Cheers,
>	---Chris K.
Hi Chris, Thanks for your help.
The last few lines of config.log read,

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
configure: failed program was:
#line 2014 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
     builtin and then its argument prototype would still apply.  */
char adns_init();

int main() {
adns_init()
; return 0; }



Ill try it again tonight and see how I get on.
-- 


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