Perl Compilation on Solaris

Perl Compilation on Solaris

Post by JABH » Sun, 27 Apr 1997 04:00:00



        I am trying to build Perl5.001 on Solaris2.4. If I son't include
        /usr/ucbinclud, cc can't find O_RDWR and other related
definitions, as they are inusrucbinclude/fcntl.h . Do I have to include
/usr/ucbinclude and /usr/include on all compilations on Solaris2.4?
        I know /usr/ucb/cc includes them by default.
        Why these values are not defined in /usr/include/fcntl.h ?
        AS I understand, compiler won't be looking at both the fcntl.h
files... correct me, if I am wrong.

Any of have experience building Perl on Solaris2.4?
Is it better to use gcc than /usr/ucb/cc ?

Also, I am getting the following error:
Undefined                       first referenced
 symbol                             in file
do_aspawn                           libperl.a(pp_sys.o)
do_spawn                            libperl.a(pp_sys.o)
ld: fatal: Symbol referencing errors. No output written to miniperl

Does that mean some header file is missing that contains these symbols?

Thanks a lot...
DILESH

 
 
 

Perl Compilation on Solaris

Post by Casper H.S. Dik - Network Security Engine » Sun, 27 Apr 1997 04:00:00



>    I am trying to build Perl5.001 on Solaris2.4. If I son't include
>    /usr/ucbinclud, cc can't find O_RDWR and other related
>definitions, as they are inusrucbinclude/fcntl.h . Do I have to include
>/usr/ucbinclude and /usr/include on all compilations on Solaris2.4?

Don't use any ucb stuff;

Restart configuring perl from scratch after changing your PATH such that:

/usr/ccs/bin, /opt/SUNWspro/bin and /usr/bin

are in your $PATH *before* /usr/ucb.

Then make sure LD_LIBRARY_PATH is not set;

then run Configure.

Quote:>definitions, as they are inusrucbinclude/fcntl.h . Do I have to include
>/usr/ucbinclude and /usr/include on all compilations on Solaris2.4?
>    I know /usr/ucb/cc includes them by default.

Don't use anythign with *ucb* in it; you best remove /usr/ucb/cc and
/usr/ucb/ld to prevent future mishaps.

Casper

--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

Perl Compilation on Solaris

Post by Andreas Borche » Mon, 28 Apr 1997 04:00:00



Quote:>    I am trying to build Perl5.001 on Solaris2.4.

You should take one of the newer versions: Either Perl5.003 or
the current beta version of Perl5.004 on your nearest CPAN site.
A large part of the libraries will no longer work with such old
versions as Perl5.001.

Quote:> If I son't include
>    /usr/ucbinclud, cc can't find O_RDWR and other related
> definitions, as they are inusrucbinclude/fcntl.h . Do I have to include
> /usr/ucbinclude and /usr/include on all compilations on Solaris2.4?
>    I know /usr/ucb/cc includes them by default.
>    Why these values are not defined in /usr/include/fcntl.h ?
>    AS I understand, compiler won't be looking at both the fcntl.h
> files... correct me, if I am wrong.

> Any of have experience building Perl on Solaris2.4?
> Is it better to use gcc than /usr/ucb/cc ?

Take /opt/SUNWspro/bin/cc or gcc but *never* /usr/ucb/cc for anything.

Andreas.

--
Andreas Borchert, Universitaet Ulm, SAI, Helmholtzstr. 18, 89069 Ulm,  Germany

WWW:    http://www.mathematik.uni-ulm.de/sai/borchert/

 
 
 

1. arrgg - Solaris 2.x & perl compilation

Hi-
        I'm about to go to beta with a project that uses perl and I just
noticed that I'm compiling with the ucblibs, which is not a good idea.  So
does some kind soul have the magic changes to perl4.036 that makes it cool
for 5.x?  I know I saw them a few weeks ago but they expired.  Sigh.  Much
thanks for hasty response.

--lm
---

2. DVI card for Linux?

3. Perl/Solaris 7 compilation problem

4. compiling with forms.h

5. UPDATE: Compiling GTK/Perl with Perl 5.004 on Solaris

6. landscape printing on HP 9000 800 series

7. Perl system() call never returns (Solaris 2.5.1, Perl 5.004_03)

8. multicasting / mroute-daemon

9. Compilation of Net::SSLeay Perl module fails - "language optional software package" -> ???

10. perl 5.003 compilation problems on Linux 2.0.0

11. perl compilation problems ?

12. perl compilation problems

13. Compilation error 1.1.83, 53c7,8xx, with Perl 5