ttyload icon indicating copy to clipboard operation
ttyload copied to clipboard

ttyload 0.5.3 does not compile (0.5.2 does)

Open sommerlaut opened this issue 12 years ago • 5 comments

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

sommerlaut avatar May 20 '13 11:05 sommerlaut

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

#include <time.h>

davenull avatar Jul 26 '13 04:07 davenull

Hi davenull,

thanks, that works for me.

Cheers, Tom

sommerlaut avatar Jul 26 '13 17:07 sommerlaut

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

davenull avatar Jul 26 '13 19:07 davenull

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

shaiguitar avatar Apr 16 '15 22:04 shaiguitar

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

NabiKAZ avatar Aug 12 '18 13:08 NabiKAZ