Trouble compiling 5.004_04 
Author Message
 Trouble compiling 5.004_04

I'm having trouble compiling perl 5.004_04.  Well to be exact the Configure
script gives up.  Here's the problem:

Checking your choice of C compiler, libs, and flags for coherency...
I've tried to compile and run a simple program with:

        cc -O2 -Dbool=char -DHAS_BOOL -I/usr/local/include -L/usr/local/lib -o try try.c -ln
et -lnsl -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
        ./try

and I got the following output:
/usr/lib/libnet.so: undefined reference to `threadedAccept'
/usr/lib/libnet.so: undefined reference to `makeJavaString'
/usr/lib/libnet.so: undefined reference to `threadedWrite'
/usr/lib/libnet.so: undefined reference to `AllocArray'
/usr/lib/libnet.so: undefined reference to `threadedConnect'
/usr/lib/libnet.so: undefined reference to `threadedRecvfrom'
/usr/lib/libnet.so: undefined reference to `AllocObjectArray'
/usr/lib/libnet.so: undefined reference to `javaString2CString'
/usr/lib/libnet.so: undefined reference to `SignalError'
/usr/lib/libnet.so: undefined reference to `threadedSocket'
/usr/lib/libnet.so: undefined reference to `AllocObject'
/usr/lib/libnet.so: undefined reference to `threadedRead'
I can't compile the test program.
(The supplied flags might be incorrect with this C compiler.)      

You have a BIG problem.  Shall I abort Configure (and explain the problem)
[y]
Ok.  Stopping Configure.  

So what are the right flags?  (This was generated with Configure -d)  If I remove
-lnet will this solve my problem?  Will perl be adversly affected if I take out -lnet?
What's the best way to fix this?  Thanks in advance.

Brian
--
Brian Springstead | ...My words but a whisper - your deafness a SHOUT.  I may
     Tull fan     | make you feel but I can't make you think.  Your {*filter*}'s in



Thu, 25 Jan 2001 03:00:00 GMT  
 Trouble compiling 5.004_04

Quote:

> I'm having trouble compiling perl 5.004_04.  Well to be exact the
> Configure script gives up.  Here's the problem:
> Checking your choice of C compiler, libs, and flags for coherency...
> I've tried to compile and run a simple program with:
>         cc -O2 -Dbool=char -DHAS_BOOL -I/usr/local/include -L/usr/local/lib -o try try.c -ln
> et -lnsl -lgdbm -ldb -ldl -lm -lc -lposix -lcrypt
>         ./try
> and I got the following output:
> /usr/lib/libnet.so: undefined reference to `threadedAccept'
> /usr/lib/libnet.so: undefined reference to `makeJavaString'

Are you compiling on a Red Hat Linux box?  Try removing -lnsl from the
link line.  It turns out that's actually a Java library on Red Hat, not
the Network Socket Library like Perl expects it to be.

--
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker





Fri, 26 Jan 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Trouble with perl5.004_04 on RH Linux

2. Trouble with Perl 5.004_04 on Linux

3. Per5.004_04 Compile on Win95

4. Problem compiling perl 5.004_04 with gcc 2.8.1

5. can't compile perl 5.004_04 with -ldl library

6. BSDI 3.0 and Compiling Perl5.004_04

7. trying to compile perl5.004_04 with cygwin32

8. HELP: compiling 5.004_04 under Linux problem

9. Compiling 5.004_04 for IRIX 6.4

10. Compiling perl5.004_04 for BSDI 3.1

11. Perl 5.004_04 Won't compile on SCO Openserver 5

12. problems compiling perl 5.004_04 in mklinux

 

 
Powered by phpBB® Forum Software