SUMMARY: Re: Help need to compile Perl5.005_02

From: Zion_Huang@focusppo.com
Date: Fri May 07 1999 - 14:44:09 CDT


Sorry about the late Summary.

Thanks to Scott W. Adkins. His answer solved my problem. Here is his
suggestion to me:

>What is your PATH and LD_LIBRARY_PATH set to? Do you have FSFMake
installed
>as well? I would recommend it. If you do, make sure /usr/local/bin is in
>your path *before* /usr/ccs/bin is... that way, you get the right version
of
>make. Another alternative, which is what I did, is to grab the LWPerl pkg
>from the www.sunfreeware.com web site. It is easier to do that than to
spend
>your time compiling your own.

The key is to use /usr/local/bin in the path *BEFORE* /usr/ccs/bin.

I also tried the majority suggestion to download the LWPerl pkg from
www.sunfreeware.com. And it works painless as well.

For using sybperl, the pre-compiled package does not work with it though.
Perl will have to rebuild to make it work.

Many thanks to the following people:

Scott W. Adkins
Stacy Lindberg
Mohd Fared Bin Abdul Khir
Tom Mornini
Rachel Polanskis
Ray Trzaska
Elvio Prattico

Zion Huang

Here is the original question:
---------------------------------------------
To All Helpers:

The platform is Solaris 2.6

Gcc info:
# pkginfo -l | grep gcc
   PKGINST: FSFgcc
      NAME: gcc
# pkginfo -l FSFgcc
   PKGINST: FSFgcc
      NAME: gcc
  CATEGORY: application
      ARCH: sparc
   VERSION: 2.8.1
   BASEDIR: /usr/local
    VENDOR: Free Software Foundation
    PSTAMP: Steve Christensen
  INSTDATE: May 03 1999 14:06
     EMAIL: gnu@PREP.AI.MIT.EDU
    STATUS: completely installed
     FILES: 183 installed pathnames
                 5 shared pathnames
                 2 linked files
                14 directories
                 9 executables
             52247 blocks used (approx)

Problem:
I run sh Configure -Dcc=gcc to compile the Perl and configure and make
depentent run fine, but make failed.

# make
make: Warning: Both `makefile' and `Makefile' exist
gcc -L/usr/local/lib -o miniperl miniperlmain.o libperl.a -lsocket -lnsl
-ldl -
lm -lc -lcrypt
Undefined first referenced
 symbol in file
PL_thrsv libperl.a(malloc.o)
PL_malloc_mutex libperl.a(malloc.o)
PL_thr_key libperl.a(malloc.o)
PL_threadnum libperl.a(malloc.o)
ld: fatal: Symbol referencing errors. No output written to miniperl
*** Error code 1
make: Fatal error: Command failed for target `miniperl'

Any help will be appreciated. I have checked the archive and have not
found any related tip yet.

Zion



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:19 CDT