htop-osx icon indicating copy to clipboard operation
htop-osx copied to clipboard

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

Open josh-m-sharpe opened this issue 12 years ago • 7 comments

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

josh-m-sharpe avatar Apr 10 '12 14:04 josh-m-sharpe

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/

zEvg avatar Jun 27 '12 09:06 zEvg

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

josh-m-sharpe avatar Jun 27 '12 10:06 josh-m-sharpe

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.

zEvg avatar Jun 27 '12 11:06 zEvg

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 :)

Arcnor avatar Sep 07 '12 01:09 Arcnor

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.

skull-squadron avatar Sep 22 '12 15:09 skull-squadron

@steakknife works for me on OSX Lion. Thanks!

danwit avatar Dec 05 '12 21:12 danwit

Got this error too!

antonmedv avatar May 11 '15 07:05 antonmedv