Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#50795 closed defect (fixed)

mathgl doesn't pick up gsl

Reported by: annacegu@… Owned by: Schamschula (Marius Schamschula)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: mathgl

Description (last modified by mf2k (Frank Schima))

I am compiling a C++ program that uses mathgl, and I am getting the following error:

/opt/local/include/mgl2/datac_cf.h:30:8: error: definition of type 'gsl_matrix' conflicts with typedef of the same name
struct gsl_matrix;
       ^
/opt/local/include/gsl/gsl_matrix_double.h:50:3: note: 'gsl_matrix' declared here
} gsl_matrix;

Looking at data_cf.h, it seems like MGL_HAVE_GSL is switched off, so mathgl is not picking up GSL headers.

Attachments (5)

Portfile-mathgl.diff (1.2 KB) - added by Schamschula (Marius Schamschula) 9 years ago.
Portfile-mathgl.2.diff (1.2 KB) - added by Schamschula (Marius Schamschula) 9 years ago.
Portfile-mathgl.3.diff (1.2 KB) - added by Schamschula (Marius Schamschula) 9 years ago.
patch-CMakeLists.txt.diff (416 bytes) - added by Schamschula (Marius Schamschula) 9 years ago.
Portfile-mathgl.4.diff (1.3 KB) - added by Schamschula (Marius Schamschula) 9 years ago.

Download all attachments as: .zip

Change History (12)

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

Owner: changed from macports-tickets@… to mschamschula@…

In the future, please use WikiFormatting and Cc the port maintainers (port info --maintainers mathgl), if any.

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

Description: modified (diff)

Changed 9 years ago by Schamschula (Marius Schamschula)

Attachment: Portfile-mathgl.diff added

Changed 9 years ago by Schamschula (Marius Schamschula)

Attachment: Portfile-mathgl.2.diff added

comment:3 Changed 9 years ago by Schamschula (Marius Schamschula)

O.K.: A few things:

1) mathgl has since been upgraded to version 2.3.4.

2) Indeed, the cmake switches for gsl and hdf5 needed to be added.

3) As I was already running 2.3.4 locally, I accidentally rev-bumped to @2.3.4_1. Please use Portfile-mathgl.2.diff​ which gives @2.3.4_0.

Also, I'm thinking some may want qt4 or qt5 variants.

Changed 9 years ago by Schamschula (Marius Schamschula)

Attachment: Portfile-mathgl.3.diff added

Changed 9 years ago by Schamschula (Marius Schamschula)

Attachment: patch-CMakeLists.txt.diff added

comment:4 Changed 9 years ago by Schamschula (Marius Schamschula)

Well, I moved some option switches from the patch file to the Portfile. Please use Portfile-mathgl.3.diff​ and the updated patch-CMakeLists.txt.diff.

comment:5 Changed 9 years ago by annacegu@…

Thanks so much for you help. I tried installing 2.3.4 from macports but the latest I get is 2.3.2_2.

How do I get the latest version?

comment:6 Changed 9 years ago by mojca (Mojca Miklavec)

Resolution: fixed
Status: newclosed
Version: 2.3.4

Committed in r146440.

annacegu: wait for about an hour, then run selfupdate again.

Changed 9 years ago by Schamschula (Marius Schamschula)

Attachment: Portfile-mathgl.4.diff added

comment:7 Changed 9 years ago by Schamschula (Marius Schamschula)

Bizarre. The changes in Portfile-mathgl.3.diff​ did not reflect the OpenMP and threads options. Fixed in Portfile-mathgl.4.diff.

Note: See TracTickets for help on using tickets.