OpenCSW Bug Tracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005024 [pm_cpan_meta] major always 2012-11-21 20:50 2012-11-26 20:27
Reporter lsiden View Status public  
Assigned To dam
Priority normal Resolution reopened  
Status feedback  
Summary 0005024: Need to modify and to get builds to work
Description I tried to install a Perl module IO::Pty that was unavailable in the dublin distro and was unable to compile anything.

First I had to modify /opt/csw/lib/perl/5.10.1/ to point to the gcc compiler instead of the one supplied by SunOS.

When trying to install again, CPAN complained that it could not run /opt/csw/gcc4/bin/gcc although I could run it fine from a shell command-line. Inspecting the compile.log file under the build directory for IO::Tty (the module it was attempting to build as a prerequisite to IO::Pty) revealed that gcc could not cope with an argument -norunpath. There are many others that the Sun version of the C/C++ compiler and ld will work with but gcc will not.

I am attaching both my modified and that allowed installs requiring compiler runs to proceed successfully.

I believe that this issue applies equally to CPAN and CPANPLUS.
Additional Information
Tags CPAN, CPANPLUS, gcc, perl
Attached Files ? file icon [^] (2,852 bytes) 2012-11-21 20:50
? file icon [^] (31,937 bytes) 2012-11-21 20:51

- Relationships

-  Notes
lsiden (reporter)
2012-11-21 20:53

I should add that hacking and this way is a hack. The true solution is to rebuild Perl using only libraries and paths supplied by OpenCSW to make it truly compatible.
dam (administrator)
2012-11-21 22:22

At the moment Sun Studio is the standard compiler for OpenCSW. You can download it free of charge from the Oracle download site. We plan to change the standard compiler to GCC 4.7 in the upcoming "bratislava" OpenCSW release. Until then you need to apply the patches you currently use.

Best regards -- Dago
lsiden (reporter)
2012-11-22 01:43

Sorry to re-open, Dagbert. I though of sending you a private e-mail but I think its better that the answer to this be recorded on this thread for others to see:
Thank you for the info, Dagbert. Would you please help me clarify? Is stlport the package that I need to install. If so, then is there an alternate and that are compatible with Oracle-Sun Studio to replace the ones I submitted with this issue to be compatible with gcc? The versions that come with the CSW Perl distro appeared to be built for the original SunOS C compiler, unless I'm missing something else.
dam (administrator)
2012-11-26 12:49

The standard SunOS C Compiler is also named Sun Studio or Solaris Studio or Oracle Studio :-) Depending on the compiler version you may need to make a link from /opt/SUNWspro to e.g. /opt/solarisstudio12.3.

I don't understand why you mention stlport as this is not related to the compiler (up to the extend that gcc sun Sun Studio both ship an stlport).

Apart from that we have the module you needed: [^]
Adding a module takes almost no time, so it is probably easiest when you just drop the modules on #opencsw or on users@.
lsiden (reporter)
2012-11-26 16:13

stlport was an error. I thought it was something else.
lsiden (reporter)
2012-11-26 16:21

The package I really needed was Net::SFTP::Foreign. I think that's only offered in the "unstable" repository. I'm using "dublin" and didn't want to mix and match.

So you are saying I should restore and to their original state and try it again?
dam (administrator)
2012-11-26 20:27

Mix and match of single CPAN modules from unstable is no issue, much better than mixing packages and self-compiled stuff. I suggest restoring these two and installing the package for the module from unstable with -t to pkgutil.

Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker