Opened 9 years ago

Closed 5 years ago

#47932 closed defect (invalid)

Missing components for Plplot 5.10.0

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

Description (last modified by mf2k (Frank Schima))

I have recently installed the Plplot graphics port on my Mac running OS 10.10.3. I extensively use Plplot from Fortran codes to make plots. Looking at where Macports installed the Plplot libraries, and based on previous experience I attempted to link Plplot in using a line like:

ifort -o executable code.f `PKG_CONFIG_PATH=/opt/local/lib/pkgconfig pkg-config --cflags --libs plplotd-f95`

However, this doesn't find the plplotd-f95 package (see results below). Where does Macports put this package and how do I modify the compile instructions to find it? If it's not produced during the install, how do I get the port installer to create it?

+ ifort -c new_tae_plotter.f
++ PKG_CONFIG_PATH=/opt/local/lib/pkgconfig
++ pkg-config --cflags --libs plplotd-f95
Package plplotd-f95 was not found in the pkg-config search path.
Perhaps you should add the directory containing `plplotd-f95.pc'
to the PKG_CONFIG_PATH environment variable
No package 'plplotd-f95' found
+ ifort -o xplot_egn_nw new_tae_plotter.o
Undefined symbols for architecture x86_64:
  "_plcol_", referenced from:
      _MAIN__ in new_tae_plotter.o
  "_plend_", referenced from:
      _MAIN__ in new_tae_plotter.o
  "_plenv_", referenced from:
      _MAIN__ in new_tae_plotter.o
  "_plfont_", referenced from:
      _MAIN__ in new_tae_plotter.o
  "_plinit_", referenced from:
      _MAIN__ in new_tae_plotter.o
  "_pllab_", referenced from:
      _MAIN__ in new_tae_plotter.o
  "_plline_", referenced from:
      _MAIN__ in new_tae_plotter.o
  "_pllsty_", referenced from:
      _MAIN__ in new_tae_plotter.o
  "_plmtex_", referenced from:
      _MAIN__ in new_tae_plotter.o
  "_plscol0_", referenced from:
      _MAIN__ in new_tae_plotter.o
  "_plscolbg_", referenced from:
      _MAIN__ in new_tae_plotter.o
  "_plssub_", referenced from:
      _MAIN__ in new_tae_plotter.o
  "_plwid_", referenced from:
      _MAIN__ in new_tae_plotter.o
ld: symbol(s) not found for architecture x86_64

Change History (3)

comment:1 Changed 9 years ago by mf2k (Frank Schima)

Cc: takeshi removed
Keywords: Fortran-95 removed
Owner: changed from macports-tickets@… to takeshi@…
Port: plplot added; Plplot removed

In the future, please use WikiFormatting and note that Trac requires complete email addresses.

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

Description: modified (diff)

comment:3 Changed 5 years ago by tenomoto (Takeshi Enomoto)

Resolution: invalid
Status: newclosed

I am sorry for overlooking this ticket. It works with gfortran in gcc ports (e.g. gcc9). Try compiling ${prefix}/share/plplot*/examples/fortran.

Use plplot-fortran instead of plplotd-f95.

However, I will not work with ifort because modules are incompatible among fortran compilers. plplot should be built with ifort.

Note: See TracTickets for help on using tickets.