Opened 9 years ago

Closed 9 years ago

#49096 closed defect (fixed)

grib_api @1.13.1 +gcc49 +python27 build error

Reported by: luomo1138@… Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: haspatch Cc: pgf, bucky.prof@…, iskren.y.g@…, glenda.denicolo@…, ryandesign (Ryan Carsten Schmidt)
Port: grib_api

Description

Hello,

I cannot install grib_api 1.13.1 with +gcc49 +python27.

--->  Building grib_api
Error: org.macports.build for port grib_api returned: command execution failed
Please see the log file for port grib_api for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_grib_api/grib_api/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port grib_api failed

There seems to be an error related to openjpeg.

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_grib_api/grib_api/work/grib_api-1.13.1/src/grib_openjpeg_encoding.c:47:2: error: use of undeclared identifier 'opj_event_mgr_t'
:info:build         opj_event_mgr_t event_mgr = {0,};               /* event manager */
:info:build         ^

I have

  openjpeg @2.1.0_0 (active)
  openjpeg15 @1.5.1_0 (active)

installed.

I have attached the main.log file.

Do you have any suggestions?

Thanks.

Attachments (2)

main.log (390.7 KB) - added by luomo1138@… 9 years ago.
main.log
Portfile-grib_api.diff (1.3 KB) - added by pgf 9 years ago.
Portfile Patchfile

Download all attachments as: .zip

Change History (10)

Changed 9 years ago by luomo1138@…

Attachment: main.log added

main.log

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

Owner: changed from macports-tickets@… to takeshi@…
Port: grib_api added

comment:2 Changed 9 years ago by pgf

Cc: piergiuseppe.fogli@… added

Cc Me!

comment:3 Changed 9 years ago by pgf

The undeclared identifiers causing the problem are not found in /opt/local/include/openjpeg-2.1 but are present in /opt/local/include/openjpeg-1.5 .
I tested a modified Portfile in my local repository where I changed the dependency from openjpeg to openjpeg15 and it worked.

Changed 9 years ago by pgf

Attachment: Portfile-grib_api.diff added

Portfile Patchfile

comment:4 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: bucky.prof@… iskren.y.g@… added
Keywords: haspatch added

Has duplicates #49377 and #49414.

comment:5 in reply to:  3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to piergiuseppe.fogli@…:

The undeclared identifiers causing the problem are not found in /opt/local/include/openjpeg-2.1 but are present in /opt/local/include/openjpeg-1.5 .
I tested a modified Portfile in my local repository where I changed the dependency from openjpeg to openjpeg15 and it worked.

Strange: grib_api was deliberately changed to use openjpeg 2 in r137865 and r137868, back in June. Curious that we would now all of a sudden be getting build failures 4 months later.

comment:6 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: glenda.denicolo@… added

Has duplicate #49480.

comment:7 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

I've filed a bug report with the developers: https://software.ecmwf.int/issues/browse/SUP-1438

comment:8 in reply to:  3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

Replying to piergiuseppe.fogli@…:

The undeclared identifiers causing the problem are not found in /opt/local/include/openjpeg-2.1 but are present in /opt/local/include/openjpeg-1.5 .
I tested a modified Portfile in my local repository where I changed the dependency from openjpeg to openjpeg15 and it worked.

For now I'm changing the port back to using openjpeg15 in r141804. Thanks for the patch.

Note: See TracTickets for help on using tickets.