473,748 Members | 2,353 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Perl-1.0.0

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_SOU RCE -D_FILE_OFFSET_B ITS=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_sy s.o)
__floatdidf 0x8700 /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(pp_sy s.o)
__floatdidf 0x8fc8 /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(pp_sy s.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
13 3261
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_SOU RCE -D_FILE_OFFSET_B ITS=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_sy s.o)
__floatdidf 0x8700 /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(pp_sy s.o)
__floatdidf 0x8fc8 /opt/local/lib/perl5/5.8.0/sun4-solaris/CORE/libperl.a(pp_sy s.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*******@attgl obal.net
=============== ===
Jul 7 '06 #2
Jerry Stuckle <js*******@attg lobal.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
Otto J. Makela wrote:
Jerry Stuckle <js*******@attg lobal.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*******@attgl obal.net
=============== ===
Jul 7 '06 #4
Rik
Jerry Stuckle wrote:
Otto J. Makela wrote:
>Jerry Stuckle <js*******@attg lobal.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
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.comwro te:

[...]
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,c omp.lang.perl.m isc
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
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.comwro te:

[...]
>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,c omp.lang.perl.m isc
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
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_SOU RCE -D_FILE_OFFSET_B ITS=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
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
"Rik" <lu************ @hotmail.comwro te:
*** 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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
8134
by: Mark Wilson CPU | last post by:
This must be easy, but I'm missing something... I want to execute a Perl script, and capture ALL its output into a PHP variable. Here are my 2 files: ------------------------------------- test3.pl ------------------------------------- print "PERL Hello from Perl! (plain print)<br>\n"; print STDERR "PERL This is text sent to STDERR<br>\n"; $output="PERL Some output:<br>\n"; for ($i=0; $i<5; $i++) {
31
4801
by: surfunbear | last post by:
I've read some posts on Perl versus Python and studied a bit of my Python book. I'm a software engineer, familiar with C++ objected oriented development, but have been using Perl because it is great for pattern matching, text processing, and automated testing. Our company is really fixated on risk managnemt and the only way I can do enough testing without working overtime (which some people have ended up doing) is by automating my...
0
9744
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile. I need it to be compiled with threads. Anyone have any wisdom on how best to do this? Here's a transcript of my latest attempt. It's long; you might want to skip to the bottom, where I try "make" and the fatal errors start happening.
6
3011
by: surfivor | last post by:
I may be involved in a data migration project involving databases and creating XML feeds. Our site is PHP based, so I imagine the team might suggest PHP, but I had a look at the PHP documentation for one of the Pear modules for creating XML and it didn't look like much. I've used Perl XML:Twig and I have the impression that there is more Perl stuff available as well as the Perl stuff being well documented as I have a Perl DBI book, a Perl...
4
3706
by: billb | last post by:
I installed a perl extension for PHP to use some perl inside my php primarily because I have perl working with oracle and not php and oracle. So I want to use my old perl scripts, and use the functionality of php. The extension uses the '$perl->eval' function. i am kind of stuck with the syntax or how to put the php variable into the perl script. I have a form where the user puts in a grid reference. Then a php script that gets the...
21
34432
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most obvious of which is the sharing of files. For example, you upload images to a server to share them with other people over the Internet. Perl comes ready equipped for uploading files via the CGI.pm module, which has long been a core module and allows users...
1
47476
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click on a link and after a moment or two a file download dialog box pops-up in your web browser and prompts you for some instructions, such as “open” or “save“. I’m going to show you how to do that using a perl script. What You Need Any recent...
0
9376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9326
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8245
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4877
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.