Thanks a lot for your hard work, caritas!
The new version doesn't work on my laptop, any advice? When I try to run the pi executable directly I get the error:
Code:
bash: ./pi: cannot execute binary file
When I try the method described in the first post (. env.sh; pi_format.py chap6.conf) I get the error:
Code:
Traceback (most recent call last):
File "/home/icehand/Downloads/pi/bin/pi_format.py", line 16, in <module>
pi_lib.page_divide_all(tmpl_fn)
File "/home/icehand/Downloads/pi/bin/pi_lib.py", line 174, in page_divide_all
doc_conf.gen(file(tmpl_fn, 'r'))
File "/home/icehand/Downloads/pi/bin/pi_lib.py", line 38, in gen
page_param = get_page_param(self)
File "/home/icehand/Downloads/pi/bin/pi_lib.py", line 128, in get_page_param
page_info = get_page_info(pt_fn)
File "/home/icehand/Downloads/pi/bin/pi_lib.py", line 97, in get_page_info
p = Popen(['pi_page_info', fn], stdout = PIPE)
File "/usr/lib/python2.5/subprocess.py", line 594, in __init__
errread, errwrite)
File "/usr/lib/python2.5/subprocess.py", line 1091, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error
And finally when I try to compile the pi executable myself I get the error:
Code:
gcc -o pi -g pi.o -lnetpbm
pi.o: In function `pi_line_divide':
/home/icehand/Downloads/pi/pi/pi.c:546: undefined reference to `max'
/home/icehand/Downloads/pi/pi/pi.c:547: undefined reference to `min'
/home/icehand/Downloads/pi/pi/pi.c:561: undefined reference to `min'
pi.o: In function `pi_page_divide':
/home/icehand/Downloads/pi/pi/pi.c:824: undefined reference to `max'
/home/icehand/Downloads/pi/pi/pi.c:827: undefined reference to `min'
/home/icehand/Downloads/pi/pi/pi.c:828: undefined reference to `min'
/home/icehand/Downloads/pi/pi/pi.c:830: undefined reference to `min'
collect2: ld returned 1 exit status
make: *** [pi] Error 1