#38435: p5.12-pdl: Cannot compile test program: #include <plplot.h> ------------------------+------------------- Reporter: bs@… | Owner: tim@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Resolution: | Keywords: Port: p5.12-pdl | ------------------------+------------------- Comment (by bs@…): Meanwhile I was successful installing the current version 2.4.11 of the PDL with MacPorts. However there were some issues to resolve: (1) When doing a port install perl5.12 a binary archive is downloaded and installed. The configuration files /opt/local/lib/perl5/5.12.4/darwin-thread-multi-2level/Config.pm[[BR]] /opt/local/lib/perl5/5.12.4/darwin-thread-multi- 2level/Config_heavy.pl[[BR]] /opt/local/lib/perl5/5.12.4/darwin-thread-multi-2level/CORE/config.h installed in this way contain a wrong C compiler pathname in the $cc variable used by perl: cc => '/usr/bin/gcc-4.2' This is hard-coded and cannot simply be overridden with the CC shell variable or a configure.compiler option. However there is no /usr/bin/gcc-4.2 when Xcode 4.2 is installed. I guess this comes from a different version of Xcode. installing Perl 5.12 instead from source with port -s install perl5.12 sets this variable to cc => '/usr/bin/clang' which works as long as Apple doesn't introduce yet another default C compiler :-) (2) Also the current PDL is still incompatible with Proj v4.8. Instead, Proj v4.7 has to be installed. (3) The PDL 2.4.11 requires another Perl module which does not (yet) have a Portfile, called Devel::CheckLib I have created corresponding Portfiles for Proj 4.7, Devel::CheckLib 0.98, and PDL 2.4.11. Attached please find a TAR archive with these. With kind regards, Burkhard. -- Ticket URL: <https://trac.macports.org/ticket/38435#comment:5> MacPorts <http://www.macports.org/> Ports system for OS X