By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,314 Members | 2,155 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,314 IT Pros & Developers. It's quick & easy.

Perl-1.0.0

P: n/a
I'm trying to install to php the Perl-1.0.0.tgz package (from
http://pecl.php.net/package/perl, enabling one to call perl libraries)
to a pre-existing Solaris system.

Unfortunately, the attempt fails in a rather dramatic way, spewing out
thousands of "relocation remains"... I'm somewhat lost on what to do
next, the documentation that came along with the Perl package is
somewhat sparse. Anyone have suggestions?

% uname -a
SunOS swen 5.8 Generic_117000-01 sun4u sparc SUNW,Sun-Fire-V240
% php --version
PHP 5.1.4 (cli) (built: Jun 5 2006 21:52:15) (DEBUG)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
% perl --version
This is perl, v5.8.0 built for sun4-solaris

Copyright 1987-2002, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

% make
/bin/bash /home/otto/Software/perl-1.0.0/libtool --mode=link gcc -DPHP_ATOM_INC -I/home/otto/Software/perl-1.0.0/include -I/home/otto/Software/perl-1.0.0/main -I/home/otto/Software/perl-1.0.0 -I/opt/php/include/php -I/opt/php/include/php/main -I/opt/php/include/php/TSRM -I/opt/php/include/php/Zend -I/opt/php/include/php/ext -DHAVE_CONFIG_H -g -O2 -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/lib/perl5/5.8.0/sun4-solaris/CORE -o perl.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/otto/Software/perl-1.0.0/modules -L/usr/local/lib -L/opt/local/lib /opt/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a -L/opt/local/lib/perl5/5.8.0/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm -lc php_perl.lo

*** Warning: Linking the shared library perl.la against the
*** static library /opt/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a is not portable!
gcc -shared -Wl,-h -Wl,perl.so -o .libs/perl.so .libs/php_perl.o -L/usr/local/lib -L/opt/local/lib /opt/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a -L/opt/local/lib/perl5/5.8.0/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm -lc -lc
Text relocation remains referenced
against symbol offset in file
<unknown 0x2118 /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(perl.o)
<unknown 0x211c /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(perl.o)
<unknown 0x2120 /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(perl.o)
[... several thousands of lines removed ...]
solaris/CORE/libperl.a(pp_sys.o)
__floatdidf 0x8700 /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(pp_sys.o)
__floatdidf 0x8fc8 /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(pp_sys.o)
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `perl.la'

--
/* * * Otto J. Makela <om@iki.fi* * * * * * * * * * * * * * * */
/* Phone: +358 40 765 5772, FAX: +358 42 7655772, ICBM: 60N 25E */
/* Mail: Mechelininkatu 26 B 27, FI-00100 Helsinki, FINLAND */
/* * * Computers Rule 01001111 01001011 * * * * * * * * * * * * */
Jul 7 '06 #1
Share this Question
Share on Google+
13 Replies


P: n/a
Otto J. Makela wrote:
I'm trying to install to php the Perl-1.0.0.tgz package (from
http://pecl.php.net/package/perl, enabling one to call perl libraries)
to a pre-existing Solaris system.

Unfortunately, the attempt fails in a rather dramatic way, spewing out
thousands of "relocation remains"... I'm somewhat lost on what to do
next, the documentation that came along with the Perl package is
somewhat sparse. Anyone have suggestions?

% uname -a
SunOS swen 5.8 Generic_117000-01 sun4u sparc SUNW,Sun-Fire-V240
% php --version
PHP 5.1.4 (cli) (built: Jun 5 2006 21:52:15) (DEBUG)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
% perl --version
This is perl, v5.8.0 built for sun4-solaris

Copyright 1987-2002, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

% make
/bin/bash /home/otto/Software/perl-1.0.0/libtool --mode=link gcc -DPHP_ATOM_INC -I/home/otto/Software/perl-1.0.0/include -I/home/otto/Software/perl-1.0.0/main -I/home/otto/Software/perl-1.0.0 -I/opt/php/include/php -I/opt/php/include/php/main -I/opt/php/include/php/TSRM -I/opt/php/include/php/Zend -I/opt/php/include/php/ext -DHAVE_CONFIG_H -g -O2 -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/lib/perl5/5.8.0/sun4-solaris/CORE -o perl.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/otto/Software/perl-1.0.0/modules -L/usr/local/lib -L/opt/local/lib /opt/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a -L/opt/local/lib/perl5/5.8.0/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm -lc php_perl.lo

*** Warning: Linking the shared library perl.la against the
*** static library /opt/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a is not portable!
gcc -shared -Wl,-h -Wl,perl.so -o .libs/perl.so .libs/php_perl.o -L/usr/local/lib -L/opt/local/lib /opt/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a -L/opt/local/lib/perl5/5.8.0/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm -lc -lc
Text relocation remains referenced
against symbol offset in file
<unknown 0x2118 /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(perl.o)
<unknown 0x211c /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(perl.o)
<unknown 0x2120 /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(perl.o)
[... several thousands of lines removed ...]
solaris/CORE/libperl.a(pp_sys.o)
__floatdidf 0x8700 /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(pp_sys.o)
__floatdidf 0x8fc8 /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(pp_sys.o)
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `perl.la'
So, what's your *PHP* question? Looks like you're trying to compile
Perl modules - so you should start in the Perl newsgroups.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 7 '06 #2

P: n/a
Jerry Stuckle <js*******@attglobal.netwrote:
So, what's your *PHP* question? Looks like you're trying to compile
Perl modules - so you should start in the Perl newsgroups.
Please don't post if you don't understand the question.
--
/* * * Otto J. Makela <om@iki.fi* * * * * * * * * * * * * * * */
/* Phone: +358 40 765 5772, FAX: +358 42 7655772, ICBM: 60N 25E */
/* Mail: Mechelininkatu 26 B 27, FI-00100 Helsinki, FINLAND */
/* * * Computers Rule 01001111 01001011 * * * * * * * * * * * * */
Jul 7 '06 #3

P: n/a
Otto J. Makela wrote:
Jerry Stuckle <js*******@attglobal.netwrote:

>>So, what's your *PHP* question? Looks like you're trying to compile
Perl modules - so you should start in the Perl newsgroups.


Please don't post if you don't understand the question.
I understand the question, all right. What I don't understand is why
you're posting this in a PHP newsgroup. You're trying to compile a Perl
package. Or haven't you figured out there is a difference between Perl
and PHP?

How many of us do you think have ever even tried to compile Perl packages?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 7 '06 #4

P: n/a
Rik
Jerry Stuckle wrote:
Otto J. Makela wrote:
>Jerry Stuckle <js*******@attglobal.netwrote:
>>So, what's your *PHP* question? Looks like you're trying to compile
Perl modules - so you should start in the Perl newsgroups.
Please don't post if you don't understand the question.
I understand the question, all right. What I don't understand is why
you're posting this in a PHP newsgroup. You're trying to compile a
Perl package. Or haven't you figured out there is a difference
between Perl and PHP?
Euhm, Jerry, a PECL PERL interpreter for PHP has a lot to do with PHP itself
I'd imagine... There's a good chance other PHP-users thought this a usefull
add-on and know the issues concerning installing it.
How many of us do you think have ever even tried to compile Perl
packages?
Some, not many.

The post isn't totally off-base, but I'd imagine people in for instance
c.l.perl could be of more assistance in this particular case, that's true.

Grtz,
--
Rik Wasmus
Jul 7 '06 #5

P: n/a
To make it absolutely clear: Perl-1.0.0 (note the capital P) is a
php-add-on. It makes it possible to use existing perl libraries from
php. Please see http://pecl.php.net/package/perl for more info.

"Rik" <lu************@hotmail.comwrote:

[...]
There's a good chance other PHP-users thought this a usefull add-on
and know the issues concerning installing it.
Exactly.

[...]
The post isn't totally off-base, but I'd imagine people in for instance
c.l.perl could be of more assistance in this particular case, that's true.
Please check out how I posted my original question:
Newsgroups: comp.lang.php,comp.lang.perl.misc
Followup-to: comp.lang.php

I would tend to think php users would know more about php packages
than perl users, even if the package was about running perl.
--
/* * * Otto J. Makela <om@iki.fi* * * * * * * * * * * * * * * */
/* Phone: +358 40 765 5772, FAX: +358 42 7655772, ICBM: 60N 25E */
/* Mail: Mechelininkatu 26 B 27, FI-00100 Helsinki, FINLAND */
/* * * Computers Rule 01001111 01001011 * * * * * * * * * * * * */
Jul 7 '06 #6

P: n/a
Rik
Otto J. Makela wrote:
To make it absolutely clear: Perl-1.0.0 (note the capital P) is a
php-add-on. It makes it possible to use existing perl libraries from
php. Please see http://pecl.php.net/package/perl for more info.

"Rik" <lu************@hotmail.comwrote:

[...]
>There's a good chance other PHP-users thought this a usefull add-on
and know the issues concerning installing it.

Exactly.

[...]
>The post isn't totally off-base, but I'd imagine people in for
instance c.l.perl could be of more assistance in this particular
case, that's true.

Please check out how I posted my original question:
Newsgroups: comp.lang.php,comp.lang.perl.misc
Followup-to: comp.lang.php
Ah, didn't check the original post, my bad.
I would tend to think php users would know more about php packages
than perl users, even if the package was about running perl.
Mwoah:
*** Warning: Linking the shared library perl.la against the
*** static library
/opt/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a is not
portable!

That would not be a PHP error, but a problem linking with perl I'd imagine.
I know nothing about perl, but I suspect perl users would know more about
this particular error.

Hope you get an answer,
--
Rik Wasmus
Jul 7 '06 #7

P: n/a
Otto J. Makela wrote:
I'm trying to install to php the Perl-1.0.0.tgz package (from
http://pecl.php.net/package/perl, enabling one to call perl libraries)
to a pre-existing Solaris system.
% uname -a
SunOS swen 5.8 Generic_117000-01 sun4u sparc SUNW,Sun-Fire-V240
% php --version
PHP 5.1.4 (cli) (built: Jun 5 2006 21:52:15) (DEBUG)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
% perl --version
This is perl, v5.8.0 built for sun4-solaris

Copyright 1987-2002, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'. If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

% make
/bin/bash /home/otto/Software/perl-1.0.0/libtool --mode=link gcc -DPHP_ATOM_INC -I/home/otto/Software/perl-1.0.0/include -I/home/otto/Software/perl-1.0.0/main -I/home/otto/Software/perl-1.0.0 -I/opt/php/include/php -I/opt/php/include/php/main -I/opt/php/include/php/TSRM -I/opt/php/include/php/Zend -I/opt/php/include/php/ext -DHAVE_CONFIG_H -g -O2 -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/lib/perl5/5.8.0/sun4-solaris/CORE -o perl.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/otto/Software/perl-1.0.0/modules -L/usr/local/lib -L/opt/local/lib /opt/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a -L/opt/local/lib/perl5/5.8.0/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm -lc php_perl.lo

*** Warning: Linking the shared library perl.la against the
*** static library /opt/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a is not portable!
gcc -shared -Wl,-h -Wl,perl.so -o .libs/perl.so .libs/php_perl.o -L/usr/local/lib -L/opt/local/lib /opt/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a -L/opt/local/lib/perl5/5.8.0/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm -lc -lc
Text relocation remains referenced
against symbol offset in file
<unknown 0x2118 /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(perl.o)
<unknown 0x211c /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(perl.o)
Otto, this is a rather old version of Perl. Try getting newer version
from ActiveState and then linking PECL extension.
Jul 7 '06 #8

P: n/a
Jerry Stuckle wrote:
I understand the question, all right. What I don't understand is why
you're posting this in a PHP newsgroup. You're trying to compile a Perl
package. Or haven't you figured out there is a difference between Perl
and PHP?
Actually, he's trying to compile PECL extension allowing him to use Perl
from PHP. You can take a look at the extension at:
http://pecl.php.net/package/perl
Jul 7 '06 #9

P: n/a
"Rik" <lu************@hotmail.comwrote:
*** Warning: Linking the shared library perl.la against the
*** static library
/opt/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a is not
portable!

That would not be a PHP error, but a problem linking with perl I'd
imagine. I know nothing about perl, but I suspect perl users would
know more about this particular error.
This is actually mentioned in the TODO in the Perl package, so it is
a known problem and is probably not the root cause of my problem.
--
/* * * Otto J. Makela <om@iki.fi* * * * * * * * * * * * * * * */
/* Phone: +358 40 765 5772, FAX: +358 42 7655772, ICBM: 60N 25E */
/* Mail: Mechelininkatu 26 B 27, FI-00100 Helsinki, FINLAND */
/* * * Computers Rule 01001111 01001011 * * * * * * * * * * * * */
Jul 7 '06 #10

P: n/a
Otto J. Makela wrote:
I'm trying to install to php the Perl-1.0.0.tgz package (from
http://pecl.php.net/package/perl, enabling one to call perl libraries)
to a pre-existing Solaris system.

Unfortunately, the attempt fails in a rather dramatic way, spewing out
thousands of "relocation remains"... I'm somewhat lost on what to do
next, the documentation that came along with the Perl package is
somewhat sparse.
<snip>

As I see, the author of this package is Dmitry Stogov and he is
now working with Zend, IIRC. Projects he worked like Turck MMCache are
orphaned and got forked. By looking at the comments of the original
article <http://www.zend.com/php5/articles/php5-perl.php>, I think the
package is not quite stable. If you could tell what are you really want
to achieve, there might be better alternative than this interface to
Perl.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Jul 7 '06 #11

P: n/a
"R. Rajesh Jeba Anbiah" <ng**********@rediffmail.comwrote:
If you could tell what are you really want to achieve, there might
be better alternative than this interface to Perl.
We have a rather large perl library of subroutines for network
management etc. (quite specialized tasks) which we'd prefer not
to have to port over to php, at least not as our first project.
However, our new website frontend is in php so as to better
integrate into the corporate network.

Having the perl libraries available from php would make life
significantly easier.
--
/* * * Otto J. Makela <om@iki.fi* * * * * * * * * * * * * * * */
/* Phone: +358 40 765 5772, FAX: +358 42 7655772, ICBM: 60N 25E */
/* Mail: Mechelininkatu 26 B 27, FI-00100 Helsinki, FINLAND */
/* * * Computers Rule 01001111 01001011 * * * * * * * * * * * * */
Jul 7 '06 #12

P: n/a
Mladen Gogala wrote:
Jerry Stuckle wrote:
>I understand the question, all right. What I don't understand is why
you're posting this in a PHP newsgroup. You're trying to compile a
Perl package. Or haven't you figured out there is a difference
between Perl and PHP?


Actually, he's trying to compile PECL extension allowing him to use Perl
from PHP. You can take a look at the extension at:
http://pecl.php.net/package/perl
Yes, I understand that. And if you look at the errors he's getting,
they have to do with the Perl libraries.

I doubt many people here know much about the internals of Perl.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 7 '06 #13

P: n/a
Otto J. Makela wrote:
I'm trying to install to php the Perl-1.0.0.tgz package (from
http://pecl.php.net/package/perl, enabling one to call perl libraries)
to a pre-existing Solaris system.

Unfortunately, the attempt fails in a rather dramatic way, spewing out
thousands of "relocation remains"... I'm somewhat lost on what to do
next, the documentation that came along with the Perl package is
somewhat sparse. Anyone have suggestions?
[...]
% make
/bin/bash /home/otto/Software/perl-1.0.0/libtool --mode=link gcc -DPHP_ATOM_INC -I/home/otto/Software/perl-1.0.0/include -I/home/otto/Software/perl-1.0.0/main -I/home/otto/Software/perl-1.0.0 -I/opt/php/include/php -I/opt/php/include/php/main -I/opt/php/include/php/TSRM -I/opt/php/include/php/Zend -I/opt/php/include/php/ext -DHAVE_CONFIG_H -g -O2 -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/opt/local/lib/perl5/5.8.0/sun4-solaris/CORE -o perl.la -export-dynamic -avoid-version -prefer-pic -module -rpath /home/otto/Software/perl-1.0.0/modules -L/usr/local/lib -L/opt/local/lib /opt/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a -L/opt/local/lib/perl5/5.8.0/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm -lc php_perl.lo

*** Warning: Linking the shared library perl.la against the
*** static library /opt/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a is not portable!
gcc -shared -Wl,-h -Wl,perl.so -o .libs/perl.so .libs/php_perl.o -L/usr/local/lib -L/opt/local/lib /opt/local/lib/perl5/5.8.0/sun4-solaris/auto/DynaLoader/DynaLoader.a -L/opt/local/lib/perl5/5.8.0/sun4-solaris/CORE -lperl -lsocket -lnsl -ldl -lm -lc -lc
Text relocation remains referenced
against symbol offset in file
<unknown 0x2118 /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(perl.o)
<unknown 0x211c /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(perl.o)
<unknown 0x2120 /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(perl.o)
[... several thousands of lines removed ...]
solaris/CORE/libperl.a(pp_sys.o)
__floatdidf 0x8700 /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(pp_sys.o)
__floatdidf 0x8fc8 /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(pp_sys.o)
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `perl.la'
You could try your favorite Internet search engine searching for
'"Text relocation remains" libperl' and seeing if others have seen
anything similar. One possible problem seems to be using
different versions of gcc.
Jul 7 '06 #14

This discussion thread is closed

Replies have been disabled for this discussion.