lindes / ttyload

ttyload -- "graphical" tracking of UNIX load average in a terminal ("tty")
http://www.daveltd.com/src/util/ttyload/
Other
82 stars 8 forks source link

ttyload 0.5.3 does not compile (0.5.2 does) #2

Open sommerlaut opened 11 years ago

sommerlaut commented 11 years ago

Hi there,

ttyload 0.5.3 seems not to compile anymore (at least on Debian 6 and 7):


root@debian:~/ttyload-0.5.3# make ln -s FreeBSD arch/Darwin ln -s FreeBSD arch/Isilon-OneFS ln -s uname -s | sed -e 's/ /-/g' arch/thisarch make archtest ttyload ARCH=uname -s | sed -e 's/ /-/g' make[1]: Entering directory /root/ttyload-0.5.3' gcc -pedantic -Wall -Werror -I${PWD:-.} -I${PWD:-.}/arch/Linux -I${PWD:-.}/arch/ default -g -DVERSION='"'cat Version'"' -o arch/Linux/getload.o -c arch/Linux/ getload.c In file included from arch/Linux/getload.c:7:0: /root/ttyload-0.5.3/ttyload.h:34:9: error: unknown type name ‘time_t’ make[1]: *** [arch/Linux/getload.o] Error 1 make[1]: Leaving directory/root/ttyload-0.5.3' make: *\ [archbuild] Error 2 root@debian:~/ttyload-0.5.3#


ttyload 0.5.2 compiles without errors on the same system:


root@debian:~/ttyload-0.5.2# make ln -s FreeBSD arch/Darwin ln -s FreeBSD arch/Isilon-OneFS ln -s uname -s | sed -e 's/ /-/g' arch/thisarch make archtest ttyload ARCH=uname -s | sed -e 's/ /-/g' make[1]: Entering directory /root/ttyload-0.5.2' gcc -pedantic -Wall -Werror -I${PWD:-.} -I${PWD:-.}/arch/Linux -I${PWD:-.}/arch/ default -g -DVERSION='"'cat Version'"' -o arch/Linux/getload.o -c arch/Linux/ getload.c gcc -pedantic -Wall -Werror -I${PWD:-.} -I${PWD:-.}/arch/Linux -I${PWD:-.}/arch/ default -g -DVERSION='"'cat Version'"' -o arch/Linux/terminfo.o -c arch/Linux /terminfo.c gcc -pedantic -Wall -Werror -I${PWD:-.} -I${PWD:-.}/arch/Linux -I${PWD:-.}/arch/ default -g -DVERSION='"'cat Version'"' -o archtest.o -c archtest.c gcc -pedantic -Wall -Werror./ldflags-o archtest arch/Linux/getload.o arch/Li nux/terminfo.o archtest.o gcc -pedantic -Wall -Werror -I${PWD:-.} -I${PWD:-.}/arch/Linux -I${PWD:-.}/arch/ default -g -DVERSION='"'cat Version'"' -o ttyload.o -c ttyload.c gcc -pedantic -Wall -Werror./ldflags-o ttyload arch/Linux/getload.o arch/Lin ux/terminfo.o ttyload.o make[1]: Leaving directory/root/ttyload-0.5.2' root@debian:~/ttyload-0.5.2#


Thanks in advance for any solution or any hint.

Cheers, Tom

davenull commented 11 years ago

This issue can be resolved by adding the following to ttyload.h

include

sommerlaut commented 11 years ago

Hi davenull,

thanks, that works for me.

Cheers, Tom

davenull commented 11 years ago

I have also issued a pull request for this fix, once it's merged the build issue will be resolved.

shaiguitar commented 9 years ago

Looks like @lindes fixed this in master but I suppose a new version wasn't cut out.

https://github.com/lindes/ttyload/commit/f9495372801ce4b4dad98ad854203e694c31c1eb

Also once that is out, this PR for getting this package into homebrew should be updated (or changed to a different one, either way).

https://github.com/Homebrew/homebrew/pull/22372

NabiKAZ commented 6 years ago

Please release next version with included time for fixed ttyload.h