perl compile problems on solaris

Z

zrnaqvi

I am trying to install perl 5.6.1 (to keep compatibility with the
production environment) on a Solaris 2.8 box and ran into the following
error. Google searches do not reveal anything to resolve this.

Any help is appreciated.

root@hostname > sh Configure -Dcc='gcc -B/usr/ccs/bin/'

Beginning of configuration questions for perl5.

Checking echo to see how to suppress newlines...
....using \c
The star should be here-->*

First let's make sure your kit is complete. Checking...
Looks good...

Would you like to see the instructions? [n]

Locating common programs...
awk is in /usr/bin/awk.
cat is in /usr/bin/cat.
comm is in /usr/bin/comm.
cp is in /usr/bin/cp.
echo is in /usr/bin/echo.
expr is in /usr/bin/expr.
grep is in /usr/bin/grep.
ls is in /usr/bin/ls.
make is in /usr/ccs/bin/make.
mkdir is in /usr/bin/mkdir.
rm is in /usr/bin/rm.
sed is in /usr/bin/sed.
sort is in /usr/bin/sort.
touch is in /usr/bin/touch.
tr is in /usr/bin/tr.
uniq is in /usr/bin/uniq.

Don't worry if any of the following aren't found...
I don't see Mcc out there, offhand.
ar is in /usr/ccs/bin/ar.
I don't see bison out there, either.
I don't see byacc out there, either.
cpp is in /usr/local/bin/cpp.
csh is in /usr/bin/csh.
date is in /usr/bin/date.
egrep is in /usr/bin/egrep.
gzip is in /usr/bin/gzip.
less is in /usr/bin/less.
ln is in /usr/bin/ln.
more is in /usr/bin/more.
nm is in /usr/ccs/bin/nm.
nroff is in /usr/bin/nroff.
pg is in /usr/bin/pg.
test is in /usr/bin/test.
uname is in /usr/bin/uname.
zip is in /usr/bin/zip.
Using the test built into your sh.
Using the test built into your sh.

Checking compatibility between /usr/bin/echo and builtin echo (if
any)...
They are compatible. In fact, they may be identical.

Symbolic links are supported.

Checking how to test for symbolic links...
You can test for symbolic links with 'test -h'.

Good, your tr supports [:lower:] and [:upper:] to convert case.
Using [:upper:] and [:lower:] to convert case.
gcc: installation problem, cannot exec `cc1': No such file or directory
Uh-oh, the C compiler 'gcc -B/usr/ccs/bin/' doesn't seem to be working.
You need to find a working C compiler.
Either (purchase and) install the C compiler supplied by your OS
vendor,
or for a free C compiler try http://gcc.gnu.org/
I cannot continue any further, aborting.
root@hostname >
 
P

Paul Lalli

I am trying to install perl 5.6.1 (to keep compatibility with the
production environment) on a Solaris 2.8 box and ran into the following
error. Google searches do not reveal anything to resolve this.

Any help is appreciated.

gcc: installation problem, cannot exec `cc1': No such file or directory
Uh-oh, the C compiler 'gcc -B/usr/ccs/bin/' doesn't seem to be working.
You need to find a working C compiler.
Either (purchase and) install the C compiler supplied by your OS
vendor,
or for a free C compiler try http://gcc.gnu.org/
I cannot continue any further, aborting.
root@hostname >

The error message is very explicit about what the problem is. Did you
attempt to install a working C compiler, as suggested by the error
message?

Paul Lalli
 
Z

zrnaqvi

I saw that error, but I just downloaded gcc 3.3.2 from sunfreeware.com
and am using that as the compiler.

Suspecting with the -B/usr/ccs/bin flag I ran the configure without any
options, i.e. sh Configure. It completed without any errors, next I ran
make had errors, so I ran a make clean first followed by a make. Here's
the output. Acouple of things stand out: why a makefile and a Makefile
both are created by Configure, and the fatal error at the bottom.


root@hostname:/home/znaqvi/perl-5.6.1> make
make: Warning: Both `makefile' and `Makefile' exist
`sh cflags libperl.a miniperlmain.o` miniperlmain.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a perl.o` perl.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a malloc.o` malloc.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a gv.o` gv.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a toke.o` toke.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a perly.o` perly.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a op.o` op.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a regcomp.o` regcomp.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a dump.o` dump.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a util.o` util.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a mg.o` mg.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a hv.o` hv.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a av.o` av.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a run.o` run.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a pp_hot.o` pp_hot.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a sv.o` sv.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a pp.o` pp.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a scope.o` scope.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a pp_ctl.o` pp_ctl.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a pp_sys.o` pp_sys.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a doop.o` doop.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a doio.o` doio.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=
64 -O
`sh cflags libperl.a regexec.o` regexec.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
`sh cflags libperl.a utf8.o` utf8.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
`sh cflags libperl.a taint.o` taint.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
`sh cflags libperl.a deb.o` deb.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
`sh cflags libperl.a universal.o` universal.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
`sh cflags libperl.a xsutils.o` xsutils.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
`sh cflags libperl.a globals.o` globals.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
`sh cflags libperl.a perlio.o` perlio.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
`sh cflags libperl.a perlapi.o` perlapi.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
rm -f libperl.a
/usr/ccs/bin/ar rcu libperl.a perl.o malloc.o gv.o toke.o perly.o op.o
regcomp.o dump.o util.o mg.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o
pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o
universal.o xsutils.o globals.o perlio.o perlapi.o
rm -f opmini.c
cp op.c opmini.c
`sh cflags libperl.a opmini.o` -DPERL_EXTERNAL_GLOB opmini.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
rm -f opmini.c
gcc -L/usr/local/lib -o miniperl \
miniperlmain.o opmini.o libperl.a -lsocket -lnsl -ldl -lm -lc
-liconv
../miniperl -w -Ilib -MExporter -e '<?>' || make minitest
*** Error code 1 (ignored)
rm -f lib/re.pm
cat ext/re/re.pm > lib/re.pm
../miniperl configpm configpm.tmp
sh mv-if-diff configpm.tmp lib/Config.pm
AutoSplitting perl library
../miniperl -Ilib -e 'use AutoSplit; \
autosplit_lib_modules(@ARGV)' lib/*.pm lib/*/*.pm
AutoSplitting lib/Getopt/Long.pm (lib/auto/Getopt/Long)
../miniperl minimod.pl > minimod.tmp
sh mv-if-diff minimod.tmp lib/ExtUtils/Miniperl.pm
sh writemain lib/auto/DynaLoader/DynaLoader.a > writemain.tmp
sh mv-if-diff writemain.tmp perlmain.c
`sh cflags libperl.a perlmain.o` perlmain.c
CCCMD = gcc -DPERL_CORE -c -fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O

Making DynaLoader (static)
Writing Makefile for DynaLoader
.../../miniperl -I../../lib -I../../lib -I../../lib -I../../lib
DynaLoader_pm.PL DynaLoader.pm
.../../miniperl -I../../lib -I../../lib -I../../lib -I../../lib
XSLoader_pm.PL XSLoader.pm
cp XSLoader.pm ../../lib/XSLoader.pm
cp DynaLoader.pm ../../lib/DynaLoader.pm
AutoSplitting ../../lib/DynaLoader.pm (../../lib/auto/DynaLoader)
rm -f DynaLoader.xs
cp dl_dlopen.xs DynaLoader.xs
.../../miniperl -I../../lib -I../../lib ../../lib/ExtUtils/xsubpp
-noprototypes -typemap ../../lib/ExtUtils/typemap DynaLoader.xs >
DynaLoader.xsc && mv DynaLoader.xsc DynaLoader.c
gcc -c -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O -DVERSION=\"1.04\" -DXS_VERSION=\"1.04\"
-I../.. -DPERL_CORE -DLIBC="" DynaLoader.c
rm -rf ../../lib/auto/DynaLoader/DynaLoader.a
/usr/ccs/bin/ar cr ../../lib/auto/DynaLoader/DynaLoader.a DynaLoader.o
&& : ../../lib/auto/DynaLoader/DynaLoader.a
chmod 755 ../../lib/auto/DynaLoader/DynaLoader.a
gcc -o perl -L/usr/local/lib perlmain.o
lib/auto/DynaLoader/DynaLoader.a libperl.a `cat ext.libs` -lsocket
-lnsl -ldl -lm -lc -liconv
../miniperl -Ilib pod/pod2html.PL
Extracting pod2html (with variable substitutions)
../miniperl -Ilib pod/pod2latex.PL
Extracting pod2latex (with variable substitutions)
../miniperl -Ilib pod/pod2man.PL
Extracting pod2man (with variable substitutions)
../miniperl -Ilib pod/pod2text.PL
Extracting pod2text (with variable substitutions)
../miniperl -Ilib pod/pod2usage.PL
Extracting pod2usage (with variable substitutions)
../miniperl -Ilib pod/podchecker.PL
Extracting podchecker (with variable substitutions)
../miniperl -Ilib pod/podselect.PL
Extracting podselect (with variable substitutions)
../miniperl -Ilib pod/buildtoc.PL
Extracting buildtoc (with variable substitutions)

Making utilities
.../miniperl -I../lib c2ph.PL
Extracting c2ph (with variable substitutions)
Linking c2ph to pstruct.
.../miniperl -I../lib h2ph.PL
Extracting h2ph (with variable substitutions)
.../miniperl -I../lib h2xs.PL
Extracting h2xs (with variable substitutions)
.../miniperl -I../lib perlbug.PL
Extracting perlbug (with variable substitutions)
.../miniperl -I../lib perldoc.PL
Extracting perldoc (with variable substitutions)
.../miniperl -I../lib pl2pm.PL
Extracting pl2pm (with variable substitutions)
.../miniperl -I../lib splain.PL
Extracting splain (with variable substitutions)
.../miniperl -I../lib perlcc.PL
Extracting perlcc (with variable substitutions)
.../miniperl -I../lib dprofpp.PL
Extracting dprofpp (with variable substitutions)

Making x2p stuff
make: Warning: Both `makefile' and `Makefile' exist
Current working directory /u01/home/znaqvi/perl-5.6.1/x2p
make: Fatal error: Don't know how to make target `<built-in>'
Current working directory /u01/home/znaqvi/perl-5.6.1/x2p
*** Error code 1
make: Fatal error: Command failed for target `translators'
root@hostname:/home/znaqvi/perl-5.6.1>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,480
Members
44,900
Latest member
Nell636132

Latest Threads

Top