Opened 12 years ago

Closed 10 years ago

#38435 closed defect (worksforme)

p5.12-pdl: Cannot compile test program: #include <plplot.h>

Reported by: bs@… Owned by: tim@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: p5-pdl

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Doing a "port install p5-pdl" on a fresh install of MacPorts 2.1.3 on Mac OS X v10.6.8 Snow Leopard fails. This seems not to be a duplicate of the PDL-related tickets I've found in the database. I've tried the various suggestions discussed in these tickets, however without success.

The full error message is:

:info:configure ERROR from evaluation of /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-pdl/p5.12-pdl/work/PDL-2.4.6/Graphics/Makefile.PL: ERROR from evaluation of /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-pdl/p5.12-pdl/work/PDL-2.4.6/Graphics/PLplot/Makefile.PL: Cannot compile test program: #include <plplot.h>
:info:configure main () {  printf  ("%d", sizeof (PLFLT)); }

I don't understand this. The main.log file is attached. Any help would be greatly appreciated.

Attachments (2)

main.log (7.3 KB) - added by bs@… 12 years ago.
portfiles-for-pdl.tar.bz2 (2.2 KB) - added by bs@… 12 years ago.
Portfiles for Proj 4.7, Devel::CheckLib 0.98, and PDL 2.4.11

Download all attachments as: .zip

Change History (10)

Changed 12 years ago by bs@…

Attachment: main.log added

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to tim@…
Port: p5.12-pdl added
Summary: p5.12-pdl:info:configure Cannot compile test programp5.12-pdl: Cannot compile test program: #include <plplot.h>

What version of Xcode do you have?

I wonder if updating the port, as requested in #32031, would help.

comment:2 Changed 12 years ago by cooljeanius (Eric Gallager)

Also what does port installed plplot* return for you?

comment:3 in reply to:  1 Changed 12 years ago by bs@…

Replying to ryandesign@…:

What version of Xcode do you have?

"xcodebuild -version" tells me Xcode 4.2 Build version 4C199

I wonder if updating the port, as requested in #32031, would help.

I will comment on that.

comment:4 in reply to:  2 Changed 12 years ago by bs@…

Replying to egall@…:

Also what does port installed plplot* return for you?

The following ports are currently installed:

plplot @5.9.9_12+aquaterm+x11 (active)

comment:5 Changed 12 years ago 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
/opt/local/lib/perl5/5.12.4/darwin-thread-multi-2level/Config_heavy.pl
/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.

Changed 12 years ago by bs@…

Attachment: portfiles-for-pdl.tar.bz2 added

Portfiles for Proj 4.7, Devel::CheckLib 0.98, and PDL 2.4.11

comment:6 Changed 11 years ago by mf2k (Frank Schima)

Port: p5-pdl added; p5.12-pdl removed

Is this still a problem with version 2.7.0?

comment:7 Changed 10 years ago by bs@…

I did a "port install p5-pdl" on a clean MacPorts installation. This worked without problems, however with two differences to my original ticket:

(a) Lacking a Snow Leopard machine with Xcode 4.2, I did the installation under OS X v10.9 Mavericks with Xcode 5.1.1.

(b) The prefix "p5" meanwhile maps onto "p5.16", not onto "p5.12".

All three issues mentioned in #comment:5 are resolved in this way.

Best regards, Burkhard.

comment:8 Changed 10 years ago by mf2k (Frank Schima)

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.