Opened 15 years ago

Closed 15 years ago

#24353 closed defect (fixed)

cannot build plplot 5.9.5 port on OSX 10.6.3

Reported by: clw2@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: plplot

Description

probably fails when building cairo.c.o I choose the default, no variant X11 has not been installed.

Attachments (2)

port_plplot_debug.txt (297.8 KB) - added by clw2@… 15 years ago.
port -d install plplot
plplot_build_no_x11.txt (2.9 KB) - added by clw2@… 15 years ago.

Download all attachments as: .zip

Change History (12)

Changed 15 years ago by clw2@…

Attachment: port_plplot_debug.txt added

port -d install plplot

comment:1 Changed 15 years ago by clw2@…

Cannot build the port of plplot I did a clean first and then ran port -d install plplot

comment:2 Changed 15 years ago by mf2k (Frank Schima)

Keywords: build failure for plplot removed
Owner: changed from macports-tickets@… to takeshi@…
Port: plplot added

comment:3 Changed 15 years ago by clw2@…

The build failure occurred because of the cairo, pango, and gtk2 variant +no_X11. X11 is required for a successful build. My wish is that there would be a way to build plplot including using the quartz backend to cairo, but I expect that this is an issue with plplot, not mac ports. Adding a variant to remove cairo and X would would permit an X11 free version, but I do not know enough about plplot internals.

comment:4 Changed 15 years ago by tenomoto (Takeshi Enomoto)

Resolution: wontfix
Status: newclosed

I look at the log. Build of cairo fails due to the lack of an X11 header.

error: cairo-xlib.h: No such file or directory

Unless plplot developer modify the source the plplot cairo driver does not support quartz. You should request the plplot team to add quartz support. If Mac's native graphics is important for you Aquaterm could be used alternatively.

comment:5 Changed 15 years ago by clw2@…

Is there anyway to build plplot without pango ? In that case cairo, and X11 would not be required.

comment:6 Changed 15 years ago by tenomoto (Takeshi Enomoto)

Resolution: wontfix
Status: closedreopened

comment:7 Changed 15 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: reopenedclosed

Added no_x11 variant in r66386 by disabling xcairo and tk.

Changed 15 years ago by clw2@…

Attachment: plplot_build_no_x11.txt added

comment:8 Changed 15 years ago by clw2@…

When installing plplot +no_X11 and error occurs during configuration due to the arch statement interpretation by Cmake. (see attachment)

comment:9 Changed 15 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: closedreopened

comment:10 Changed 15 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: reopenedclosed

This is caused by setting CMAKE_OSX_ARCHITECTURES, which I inserted to enable build for ppc64. Cmake passes -arch flags to the fortran compiler, which should not be done. g95 ignores it but gfortran fails with it. I think cmake modules should be fixed but I don't know how. As an adhoc fix CMAKE_OSX_ARCHITECTURES is skipped with gcc43 variant (default).

Note: See TracTickets for help on using tickets.