Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id C6DF51337B6E for ; Fri, 28 Jan 2011 00:38:46 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 52608-03 for ; Fri, 28 Jan 2011 04:38:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qy0-f174.google.com (mail-qy0-f174.google.com [209.85.216.174]) by mail.postgresql.org (Postfix) with ESMTP id 91A151337B4F for ; Fri, 28 Jan 2011 00:38:34 -0400 (AST) Received: by qyj19 with SMTP id 19so433765qyj.19 for ; Thu, 27 Jan 2011 20:38:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=snIiDMADOtQdQl+/Rw6OgC2usdQF7hqAtCMNawX7+oE=; b=JfR5yhUZapEw/T9WMghenMVQYv7t9l/vrlhUg41c1QjTW/TcP35N2YsAwd9DYS9qjZ YaJQLkCclTPC9DTw8ImHMIdAJuGVNZLnWGOKpE3GyxrkxYongDhitm8rux0GuqpzhK7T Gv3FJxtKnwLd5aqDKeWBc6NgWHMYEjM0K58OA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=f0EOkLTWPpm3Cyn8jbXceiMIV6WpcpmfQwa2uQ9nhrcS8KUEnyIeT/8ip6xjArLmKa bhhgKBLlAyLoayKOToIbxbrsozXTvvmaUtQQItbxMf3yQ0R+mnG8AitcMuMHCic0Gna/ VijzK52aCGcGHVC2O1TRyL4/+96YWRCbcWgAY= Received: by 10.229.95.193 with SMTP id e1mr2290469qcn.171.1296189513477; Thu, 27 Jan 2011 20:38:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.220.202 with HTTP; Thu, 27 Jan 2011 20:38:13 -0800 (PST) In-Reply-To: <9473.1296172647@sss.pgh.pa.us> References: <9473.1296172647@sss.pgh.pa.us> From: Josh Kupershmidt Date: Thu, 27 Jan 2011 23:38:13 -0500 Message-ID: Subject: Re: Building PDFs error: \pdfendlink ended up in different nesting level than \pd To: Tom Lane Cc: pgsql-docs Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201101/49 X-Sequence-Number: 6341 On Thu, Jan 27, 2011 at 6:57 PM, Tom Lane wrote: > Josh Kupershmidt writes: >> How did you figure out that the problem was coming from that spot in >> installation.sgml? I'd be interested to see whether another hack would >> work in lieu of an actual fix in pdftex. > > If you look at the mentioned line number in the tex-pdf file, you can > figure out where you are in the document, assuming your eyes don't glaze > over from the incredibly verbose TeX macros first. > > (Note: if you just do "make postgres-A4.pdf", make will unhelpfully > throw away the tex-pdf intermediate file upon error. =A0What I have done > when I needed to look is to explicitly "make postgres-A4.tex-pdf" and > then "make postgres-A4.pdf", which keeps make from discarding the > tex-pdf file when the second step fails. =A0I wonder though if we could > tweak the makefile to make this less inconvenient.) Thanks for looking into this further. Both the -US and -A4 PDFs are still failing for me on a recent git checkout including your change to catalog.sgml. I tried the two-step make process you suggested. The second step of building postgres-US.pdf failed like so: Overfull \hbox (1.19998pt too wide) in alignment at lines 1390237--1390679 [] [] Package longtable Warning: Column widths have changed (longtable) in table 287 on input line 1390679. [3987.0.6 ! pdfTeX error (ext4): \pdfendlink ended up in different nesting level than= \pd fstartlink. I looked around line 1390679 of postgres-US.tex-pdf, where I saw this snippet from seg.sgml: (spaces around the range operator are ignored) so I'm guessing some link around that spot is to blame. Perhaps trying to hack up all these problem spots in the SGML source is a lost cause, at least for my build environment. I might try pestering folks on the pdftex mailing list next. Josh