AndyA / htop-osx

A port of htop to OSX
http://hexten.net/
GNU General Public License v2.0
180 stars 40 forks source link

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

Open josh-m-sharpe opened 12 years ago

josh-m-sharpe commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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 commented 12 years ago

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 commented 11 years ago

@steakknife works for me on OSX Lion. Thanks!

antonmedv commented 9 years ago

Got this error too!