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

can't build this outside of macports - what am i missing? #9

Open
josh-m-sharpe opened this issue Apr 10, 2012 · 7 comments
Open

can't build this outside of macports - what am i missing? #9

josh-m-sharpe opened this issue Apr 10, 2012 · 7 comments

Comments

@josh-m-sharpe
Copy link

I'm using homebrew, so can't use macports (out of my control - sadface).

So I, checked out the repo, then:
$ git co -b osx origin/osx
$ ./autogen.sh
$ ./configure
$ DEFAULT_INCLUDES="-iquote ." make
$ ./htop
htop(33087) malloc: *** error for object 0x55012c0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

@zEvg
Copy link

zEvg commented Jun 27, 2012

Any update on this issue ?
I've installed htop via brew: "sudo brew install htop-osx". Installation completed successfully.
But when i tried to run it i got:
"htop(22366) malloc: *** error for object 0x10e11fbb0: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6"

I run on MacOS X 10.7.4/

@josh-m-sharpe
Copy link
Author

it kinda works inside of macports now.

The top section (bar graphs / load average, uptime, etc) all seem to work fine.
The lower table doesn't update appropriately at all. For me, everything is zeros, and i dont really trust the list of processes in the first column.

https://img.skitch.com/20120627-gfn4b4ppqa34eprxbg2qhx7rrc.jpg

@zEvg
Copy link

zEvg commented Jun 27, 2012

Oh, I have the same artefacts after I used binary grabbed from this topic (http://themainframe.ca/2011/06/29/install-htop-on-mac-os-x/)

Here what i've got:
https://dl.dropbox.com/u/1783945/tmp/htop_fails.png

I think It might has to do with mac os lion and 64 bit because when i used 10.6.8 everything worked fine for me.

Seems that the author of this fork doesn't really track issues. Hope he will.

@Arcnor
Copy link

Arcnor commented Sep 7, 2012

Just in case anyone gets this same problem, I fixed it editing the Makefile and setting DEFAULT_INCLUDES=-iquote . (and remove the DEFAULT_INCLUDES=-I. that was causing the fail)

Yeah, calling DEFAULT_INCLUDES="-iquote ." make should work, but for some reason that I didn't bother to check, it didn't for me.

Hope this helps (and SHAMELESS PLUG check my fork if you want nice memory bar with buffers and other kind of memory :)

@skull-squadron
Copy link

The problem is that DEFAULT_INCLUDES is set for process make, but it is not exported to child processes of make.

Use export DEFAULT_INCLUDES="-iquote ." make or make DEFAULT_INCLUDES="-iquote .".

Even better, I've patched Makefile.am to just set the darn thing because magical incantations waste time.

@danwit
Copy link

danwit commented Dec 5, 2012

@steakknife
works for me on OSX Lion. Thanks!

@antonmedv
Copy link

Got this error too!

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

No branches or pull requests

6 participants