This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Building lib.pdf fails on MacOSX
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: fdrake Nosy List: fdrake, jackjansen
Priority: normal Keywords:

Created on 2003-04-14 15:09 by jackjansen, last changed 2022-04-10 16:08 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
lib.how jackjansen, 2003-04-14 15:09
fink-texmf.cnf jackjansen, 2003-04-17 19:12
Messages (6)
msg15452 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-04-14 15:09
I can't build lib.pdf on MacOSX anymore. I tried both a4 and letter.
The pdflatex call fails with

Error: pdflatex: buffer overflow [125000 bytes]

The whole lib.how is attached (if I don't forget to check the 
checkmark:-).

pdflatex -version prints

pdfTeX (Web2C 7.3.3.1) 3.14159-0.14h-released-20010417

which seems to be newer than what the README lists as the minimal 
requirement.
msg15453 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2003-04-17 16:36
Logged In: YES 
user_id=3066

TeX systems tend to be a little weird about how memory is
allocated.
Most current distributions use a semi-static allocation
mechanism: Some large buffers are allocated once, and
everything happens within those.  The sizes are usually
configurable using a config file.

On my RedHat Linux box, which uses the "teTeX" TeX system,
there's a config file:

    /usr/share/texmf/web2c/texmf.cnf

This contains the following settings for pdfLaTeX:

TEXINPUTS.pdflatex = .;$TEXMF/{pdftex,tex}/{latex,generic,}//
main_memory.pdflatex = 1500000
hash_extra.pdflatex = 25000
pool_size.pdflatex = 750000
string_vacancies.pdflatex = 45000
max_strings.pdflatex = 55000
pool_free.pdflatex = 47500
nest_size.pdflatex = 500
param_size.pdflatex = 3000
save_size.pdflatex = 5000
stack_size.pdflatex = 3000

If you can locate the corresponding config file for your
system, please check the sizes configured and let me know
what differs. I may need to add some documentation about
this, mentioning that the Library Reference may take more
resources than are typically allocated.

Thanks!
msg15454 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-04-17 19:12
Logged In: YES 
user_id=45365

My texmf.cnf looks completely different. There doesn't seem to be a .pdflatex section, only the one TEXINPUTS line mentions pdflatex.

I've attached the file (name set to fink-texmf.cnf), maybe you understand it.
msg15455 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2003-04-17 19:25
Logged In: YES 
user_id=3066

Where a setting isn't specified but there is a "base"
variable (for example, main_memory is set, but not
main_memory.pdflatex), you can add the .pdflatex version if
the number is higher in the settings I included.  The
".pdflatex" suffix means that that setting applies to
pdflatex only; if such a suffixed version isn't set, the
bare "base" variable is used.
msg15456 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2003-04-22 13:49
Logged In: YES 
user_id=45365

That seems to work. I added the configuration lines to the end of /sw/share/
texmf/web2c/texmf.cnf and everything proceeds smoothly.

Could you add a note to the documentation readme file? The "/sw" location 
is specific to people who have installed the whole TeX circus with fink, but I 
assume that will be the common case for MacOS users.
msg15457 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2004-01-13 23:56
Logged In: YES 
user_id=3066

Added note about dealing with this memory consumption
setting in Doc/README revision 1.54.
History
Date User Action Args
2022-04-10 16:08:08adminsetgithub: 38301
2003-04-14 15:09:08jackjansencreate