Re: Problem building 9.0 Beta 3 US PDF file

Lists: pgsql-docs
From: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
To: pgsql-docs <pgsql-docs(at)postgresql(dot)org>
Subject: Problem building 9.0 Beta 3 US PDF file
Date: 2010-07-09 10:47:30
Message-ID: 1278672450.2286.30.camel@hp-laptop2.gunduz.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs

Hi,

I could build 9.0 Beta 3 A4 PDF without any issues, but I think something is broken in US PDF generation:

===============================================
$ time make -j3 postgres-US.pdf
{ \
echo "<!entity version \"9.0beta3\">"; \
echo "<!entity majorversion \"9.0\">"; \
} > version.sgml
"/usr/bin/perl" ./mk_feature_tables.pl YES ../../../src/backend/catalog/sql_feature_packages.txt ../../../src/backend/catalog/sql_features.txt > features-supported.sgml
"/usr/bin/perl" ./mk_feature_tables.pl NO ../../../src/backend/catalog/sql_feature_packages.txt ../../../src/backend/catalog/sql_features.txt > features-unsupported.sgml
openjade -wall -wno-unused-param -wno-empty -wfully-tagged -D . -D . -c /usr/share/sgml/docbook/dsssl-stylesheets/catalog -d stylesheet.dsl -t sgml -i output-html -V html-index postgres.sgml
LC_ALL=C "/usr/bin/perl" /usr/bin/collateindex.pl -f -g -i 'bookindex' -o bookindex.sgml HTML.index
Processing HTML.index...
1962 entries loaded...
0 entries ignored...
Done.
openjade -D . -D . -c /usr/share/sgml/docbook/dsssl-stylesheets/catalog -d ./stylesheet.dsl -t tex -V tex-backend -i output-print -i include-index -V texpdf-output -V '%paper-type%'=USletter -o postgres-US.tex-pdf postgres.sgml
pdfjadetex postgres-US.tex-pdf
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
! I can't find file `postgres-US.tex-pdf'.
<*> postgres-US.tex-pdf

Please type another input file name:
===============================================

A simple ls command shows that there are no files under doc/src/sgml directory at this point. This was broken between beta2 and beta3.

Regards,
--
Devrim GÜNDÜZ
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
PostgreSQL RPM Repository: http://yum.pgrpms.org
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
Cc: pgsql-docs <pgsql-docs(at)postgresql(dot)org>
Subject: Re: Problem building 9.0 Beta 3 US PDF file
Date: 2010-07-09 14:57:23
Message-ID: 19765.1278687443@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs

Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= <devrim(at)gunduz(dot)org> writes:
> I could build 9.0 Beta 3 A4 PDF without any issues, but I think something is broken in US PDF generation:
> This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
> %&-line parsing enabled.
> entering extended mode
> ! I can't find file `postgres-US.tex-pdf'.
> <*> postgres-US.tex-pdf

Hm. I'm not seeing that (on Fedora 13), but what I am seeing is that it
grinds for awhile and then fails with

[379.0.22
! pdfTeX error (ext4): \pdfendlink ended up in different nesting level than \pdfstartlink.
<to be read again>
\endgroup \set(at)typeset@protect
l.280599 {1}}
You will want to use a version of GCC subsequent to 3.3.2,
! ==> Fatal error occurred, no output PDF file produced!
Transcript written on postgres-US.log.
make: *** [postgres-US.pdf] Error 1

which is darn odd seeing that the -A4 version builds OK.

regards, tom lane


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>, "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>, pgsql-docs <pgsql-docs(at)postgresql(dot)org>
Subject: Re: Problem building 9.0 Beta 3 US PDF file
Date: 2010-07-10 03:19:11
Message-ID: 6491.1278731951@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs

I wrote:
> Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= <devrim(at)gunduz(dot)org> writes:
>> I could build 9.0 Beta 3 A4 PDF without any issues, but I think something is broken in US PDF generation:
>> This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
>> %&-line parsing enabled.
>> entering extended mode
>> ! I can't find file `postgres-US.tex-pdf'.
>> <*> postgres-US.tex-pdf

> Hm. I'm not seeing that (on Fedora 13), but what I am seeing is that it
> grinds for awhile and then fails with

> [379.0.22
> ! pdfTeX error (ext4): \pdfendlink ended up in different nesting level than \pdfstartlink.
> <to be read again>
> \endgroup \set(at)typeset@protect
> l.280599 {1}}
> You will want to use a version of GCC subsequent to 3.3.2,
> ! ==> Fatal error occurred, no output PDF file produced!
> Transcript written on postgres-US.log.
> make: *** [postgres-US.pdf] Error 1

I find that removing the AIX-fixlevels table (and the two references to
it) from installation.sgml makes the postgres-US.pdf build go through on
my F-13 box. This is pretty weird, since there's nothing obviously
wrong with that table; and if there were something wrong with it, why
doesn't it bother the postgres-A4.pdf build? Seems like we must be
looking at a strange toolchain bug.

Now, ordinarily I wouldn't suggest removing information from the manual,
but I'm not sure that that table is worth fighting the toolchain for.
It was added here
http://archives.postgresql.org/pgsql-committers/2009-06/msg00197.php
on the basis of Laurenz Albe's suggestion here
http://archives.postgresql.org/pgsql-hackers/2009-06/msg00884.php
but I don't know how carefully that was researched. I'm tempted to
propose going back to the "use the latest fixpack" wording that was
there before.

Comments? Can anyone else reproduce the behavior I'm seeing?

regards, tom lane


From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Tom Lane *EXTERN*" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>, "pgsql-docs" <pgsql-docs(at)postgresql(dot)org>
Subject: Re: Problem building 9.0 Beta 3 US PDF file
Date: 2010-07-16 09:58:55
Message-ID: D960CB61B694CF459DCFB4B0128514C2049FCDCD@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs

Tom Lane wrote:
> I find that removing the AIX-fixlevels table (and the two references to
> it) from installation.sgml makes the postgres-US.pdf build go through on
> my F-13 box. This is pretty weird, since there's nothing obviously
> wrong with that table; and if there were something wrong with it, why
> doesn't it bother the postgres-A4.pdf build? Seems like we must be
> looking at a strange toolchain bug.
>
> Now, ordinarily I wouldn't suggest removing information from the manual,
> but I'm not sure that that table is worth fighting the toolchain for.
> It was added here
> http://archives.postgresql.org/pgsql-committers/2009-06/msg00197.php
> on the basis of Laurenz Albe's suggestion here
> http://archives.postgresql.org/pgsql-hackers/2009-06/msg00884.php
> but I don't know how carefully that was researched. I'm tempted to
> propose going back to the "use the latest fixpack" wording that was
> there before.
>
> Comments? Can anyone else reproduce the behavior I'm seeing?

I created the table based on known AIX bugs that affect getaddrinfo,
and it's more than random numbers.

Maybe the problem would go away if the information were not in a table,
but in some other format, say, an unordered list.

But I also see no big problem with returning to "use the latest fixpack".
It is certainly a safe wording, although it will urge people to undergo
the painful procedure of an upgrade even if that is unnecessary.

Yours,
Laurenz Albe


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
Cc: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>, "pgsql-docs" <pgsql-docs(at)postgresql(dot)org>
Subject: Re: Problem building 9.0 Beta 3 US PDF file
Date: 2010-07-29 18:33:43
Message-ID: 1594.1280428423@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs

"Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at> writes:
> Tom Lane wrote:
>> I find that removing the AIX-fixlevels table (and the two references to
>> it) from installation.sgml makes the postgres-US.pdf build go through on
>> my F-13 box.

> Maybe the problem would go away if the information were not in a table,
> but in some other format, say, an unordered list.

Great idea --- I find that it works after transforming the table to
a <variablelist>. I've committed a patch for that. Devrim, do you
have time to see if CVS branch tip builds the PDFs ok for you?

I've filed a complaint about the problem here:
https://bugzilla.redhat.com/show_bug.cgi?id=619481
though I'm unsure whether Red Hat's maintainers will be able to help.

regards, tom lane


From: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>, pgsql-docs <pgsql-docs(at)postgresql(dot)org>
Subject: Re: Problem building 9.0 Beta 3 US PDF file
Date: 2010-07-29 20:11:30
Message-ID: 1280434290.2705.3.camel@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs

On Thu, 2010-07-29 at 14:33 -0400, Tom Lane wrote:
> Devrim, do you have time to see if CVS branch tip builds the PDFs ok
> for you?

Sure, working on it.
--
Devrim GÜNDÜZ
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
PostgreSQL RPM Repository: http://yum.pgrpms.org
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz


From: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>, pgsql-docs <pgsql-docs(at)postgresql(dot)org>
Subject: Re: Problem building 9.0 Beta 3 US PDF file
Date: 2010-07-29 20:45:12
Message-ID: 1280436312.2705.4.camel@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs

On Thu, 2010-07-29 at 14:33 -0400, Tom Lane wrote:
> Devrim, do you have time to see if CVS branch tip builds the PDFs ok
> for you?

It built fine on 9.0 CVS tip.

Regards,
--
Devrim GÜNDÜZ
PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer
PostgreSQL RPM Repository: http://yum.pgrpms.org
Community: devrim~PostgreSQL.org, devrim.gunduz~linux.org.tr
http://www.gunduz.org Twitter: http://twitter.com/devrimgunduz


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>
Cc: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>, pgsql-docs <pgsql-docs(at)postgresql(dot)org>
Subject: Re: Problem building 9.0 Beta 3 US PDF file
Date: 2010-07-29 21:04:24
Message-ID: 19504.1280437464@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs

Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= <devrim(at)gunduz(dot)org> writes:
> On Thu, 2010-07-29 at 14:33 -0400, Tom Lane wrote:
>> Devrim, do you have time to see if CVS branch tip builds the PDFs ok
>> for you?

> It built fine on 9.0 CVS tip.

Excellent, thanks for checking.

regards, tom lane


From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Tom Lane *EXTERN*" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Devrim GÜNDÜZ <devrim(at)gunduz(dot)org>, "pgsql-docs" <pgsql-docs(at)postgresql(dot)org>
Subject: Re: Problem building 9.0 Beta 3 US PDF file
Date: 2010-07-30 04:22:05
Message-ID: D960CB61B694CF459DCFB4B0128514C2049FCDD3@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-docs

Tom Lane wrote:
>>> I find that removing the AIX-fixlevels table (and the two references to
>>> it) from installation.sgml makes the postgres-US.pdf build go through on
>>> my F-13 box.
>>
>> Maybe the problem would go away if the information were not in a table,
>> but in some other format, say, an unordered list.
>
> Great idea --- I find that it works after transforming the table to
> a <variablelist>. I've committed a patch for that.

Thank you, Tom.

Yours,
Laurenz Albe