Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hg_sage.commit() Error on OS X 10.5.5. Conflict in libPng.dylib? #4678

Closed
tjl opened this issue Dec 2, 2008 · 4 comments
Closed

hg_sage.commit() Error on OS X 10.5.5. Conflict in libPng.dylib? #4678

tjl opened this issue Dec 2, 2008 · 4 comments
Assignees

Comments

@tjl
Copy link

tjl commented Dec 2, 2008

When trying hg_sage.commit() on OS X 10.5.5. I get the following error

sage: hg_sage.commit()
cd "/Users/tjlahey/sage/devel/sage" && hg diff  | less
cd "/Users/tjlahey/sage/devel/sage" && hg commit  
dyld: Symbol not found: __cg_png_create_info_struct
  Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /Users/tjlahey/sage/local/lib//libPng.dylib

transaction abort!
rollback completed
abort: edit failed: mate killed by signal 5

So, for some reason, there is a conflict with the system frameworks. Unfortunately, this can't be commented out like Macports or Fink.

Component: misc

Keywords: hg, libpng

Issue created by migration from https://trac.sagemath.org/ticket/4678

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Dec 2, 2008

comment:1

Can you supply some more info, i.e. how did you build Sage, i.e. is this a FrameWork build for example. What is EDITOR set to in your environment.

In general do not open tickets unless it is clear what the bug is. This case is clearly such a case since we will need some discussion what is wrong and trac is the wrong place to do that. For that you should use sage-support instead.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin added this to the sage-3.2.2 milestone Dec 2, 2008
@tjl
Copy link
Author

tjl commented Dec 2, 2008

comment:2

This is just a regular build of Sage on OS X 10.5.5 (using make) after moving /opt out of the way. EDITOR is set to:

EDITOR=mate -w

which calls TextMate, but it is crashing before then. If I use a Macports build of mercurial, I can run hg commit just fine (which is what I did after this crashed).

I'll keep your statements about tickets in mind for the future. Sorry.

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Dec 2, 2008

comment:3

Yep, mate crahes since when mercurial executes EDITOR for some stupid reason when applying patches it picks up the libpng.dylib provided by Sage. There are two solutions here:

  • patch hg to use sage-native-execute
  • you add a dummy script into $SAGE_LOCAL/bin called mate that passes all options to the real mate, but set DYLD_LIBRARY_PATH to the original.

This should be discussed on sage-devel if we want to patch hg to use sage-native-execute for its EDITOR command, but this ticket is closed as wontfix.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin added r: wontfix and removed p: major / 3 labels Dec 2, 2008
@sagetrac-mabshoff sagetrac-mabshoff mannequin closed this as completed Dec 2, 2008
@sagetrac-mabshoff sagetrac-mabshoff mannequin removed this from the sage-3.2.2 milestone Dec 2, 2008
@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Dec 2, 2008

comment:4

Sorry I forgot: In case we decide to patch hg this would be a new ticket.

Cheers,

Michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant