Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 53310 - perlcc fails on a "hello world" program -- undefined symbol
perlcc fails on a "hello world" program -- undefined symbol
Product: Red Hat Raw Hide
Classification: Retired
Component: perl (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Chip Turner
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2001-09-06 09:34 EDT by Bill Crawford
Modified: 2007-04-18 12:36 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-12-06 16:24:00 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Input file to perlcc (32 bytes, text/plain)
2001-09-06 09:36 EDT, Bill Crawford
no flags Details
(Standard error) output from "perlcc hello.pl" -- there is no stdout (1.47 KB, text/plain)
2001-09-06 09:38 EDT, Bill Crawford
no flags Details

  None (edit)
Description Bill Crawford 2001-09-06 09:34:50 EDT
Description of Problem:
perlcc is not always linking against all necessary libraries.  Specifically
I'm seeing an error

	/tmp/ccTI6P75.o: In function `xs_init':
	/tmp/ccTI6P75.o(.text+0x3409): undefined reference to `boot_DynaLoader'

or something similar for every attempt.  Basically it's failing to link


Version-Release number of selected component (if applicable):
[bill@fraser bill]$ rpm -q perl

How Reproducible:

[bill@fraser bill]$ perlcc hello.pl 

Compiling hello.pl:
Making C(hello.pl.c) for hello.pl!
gcc -fno-strict-aliasing -I/usr/local/include 
-I/usr/lib/perl5/5.6.0/i386-linux/CORE -o hello hello.pl.c  
-L/usr/local/lib -L/usr/lib/perl5/5.6.0/i386-linux/CORE -lperl -lnsl -ldl
-lm -lc -lcrypt /usr/lib/perl5/5.6.0/i386-linux/auto/IO/IO.so
/tmp/ccHrUMvk.o: In function `xs_init':
/tmp/ccHrUMvk.o(.text+0x3409): undefined reference to `boot_DynaLoader'
collect2: ld returned 1 exit status
ERROR: In compiling code for hello.pl.c !

Expected Results:

A working executable ;o)

Additional Information:
Will attach input and output.

Fixed compilation by running instead:

	[bill@fraser bill]$ gcc -fno-strict-aliasing -I/usr/local/include 
-I/usr/lib/perl5/5.6.0/i386-linux/CORE -o hello hello.pl.c  
-L/usr/local/lib -L/usr/lib/perl5/5.6.0/i386-linux/CORE
/usr/lib/perl5/5.6.0/i386-linux/auto/DynaLoader/DynaLoader.a -lperl -lnsl
-ldl -lm -lc -lcrypt /usr/lib/perl5/5.6.0/i386-linux/auto/IO/IO.so
Comment 1 Bill Crawford 2001-09-06 09:36:14 EDT
Created attachment 31074 [details]
Input file to perlcc
Comment 2 Bill Crawford 2001-09-06 09:38:00 EDT
Created attachment 31075 [details]
(Standard error) output from "perlcc hello.pl" -- there is no stdout
Comment 3 Bill Crawford 2002-01-13 12:24:00 EST
It's working with the current Raw Hide version of perl.

Note You need to log in before you can comment on or make changes to this bug.