Opened 12 years ago

Closed 11 years ago

Last modified 11 years ago

#37578 closed defect (fixed)

grass fails to build with tcl / tk 8.6

Reported by: petrrr Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc: g5pw (Aljaž Srebrnič), sears3@…, manuel.deljesuspe@…, cooljeanius (Eric Gallager)
Port: grass

Description

On MacOS X 10.5.8, Xcode 3.1.4.

No variants requested.

Attachments (3)

grass.main.log (5.9 MB) - added by petrrr 12 years ago.
Logfile
Portfile.diff (380 bytes) - added by kobayos 11 years ago.
patch-visualization_nviz_src-draw_c.diff (357 bytes) - added by kobayos 11 years ago.

Change History (15)

Changed 12 years ago by petrrr

Attachment: grass.main.log added

Logfile

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

Summary: grass fails to buildgrass fails to build with tcl / tk 8.6

The log says:

:info:build Undefined symbols:
:info:build   "_TkCopyAndGlobalEval", referenced from:
:info:build       _CancelFunc_Hook in draw.o
:info:build ld: symbol(s) not found

This indicates that this version of grass is incompatible with tcl and tk 8.6, to which those ports were just updated.

Here is the upstream bug report for this problem: http://trac.osgeo.org/grass/ticket/1843

comment:2 Changed 12 years ago by g5pw (Aljaž Srebrnič)

Does the patch provided in #37376 solve the problem with grass?

comment:3 Changed 12 years ago by g5pw (Aljaž Srebrnič)

Cc: g5pw@… added

Cc Me!

comment:4 Changed 12 years ago by sears3@…

Cc: sears3@… added

Cc Me!

comment:5 Changed 12 years ago by manuel.deljesuspe@…

Cc: manuel.deljesuspe@… added

Cc Me!

Changed 11 years ago by kobayos

Attachment: Portfile.diff added

Changed 11 years ago by kobayos

comment:6 Changed 11 years ago by kobayos

I experienced the same problem on Mountain Lion with MacPorts 2.1.3 and XCode 4.6.2 Although I have not checked whether it correctly works or not, I could build successfully by applying a patch that was provided at the upstream bug report : http://trac.osgeo.org/grass/ticket/1843

Please check the difference of the Portfile and the patch file.

comment:7 in reply to:  6 ; Changed 11 years ago by g5pw (Aljaž Srebrnič)

Replying to kobayos@…:

I experienced the same problem on Mountain Lion with MacPorts 2.1.3 and XCode 4.6.2 Although I have not checked whether it correctly works or not, I could build successfully by applying a patch that was provided at the upstream bug report : http://trac.osgeo.org/grass/ticket/1843

Please check the difference of the Portfile and the patch file.

Yes, that resolves the error with TkCopyAndGlobalEval, but the python errors still remain, at least on my machine.

comment:8 in reply to:  7 ; Changed 11 years ago by kobayos

Replying to g5pw@…:

Replying to kobayos@…:

I experienced the same problem on Mountain Lion with MacPorts 2.1.3 and XCode 4.6.2 Although I have not checked whether it correctly works or not, I could build successfully by applying a patch that was provided at the upstream bug report : http://trac.osgeo.org/grass/ticket/1843

Please check the difference of the Portfile and the patch file.

Yes, that resolves the error with TkCopyAndGlobalEval, but the python errors still remain, at least on my machine.

In case of my machine, the gui starts up after installing py27-wxpython30.

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

Indeed the source install documentation mentions needing python-wxGTK.

comment:10 in reply to:  8 Changed 11 years ago by g5pw (Aljaž Srebrnič)

I finally found what was the issue. py27-wxpython30 has to be installed, and python27 must be selected as python (I had python33). I'll try to coerce grass into using python27 and att py27-wxpython30 as a dependency.

comment:11 Changed 11 years ago by g5pw (Aljaž Srebrnič)

Resolution: fixed
Status: newclosed

Fixed in r106731. Thanks for the patch!

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

Cc: egall@… added

Cc Me!

Note: See TracTickets for help on using tickets.