From alonghi@ptc.com Wed Nov 01 11:31:51 2000
Received: from poster.ptc.com ([12.11.148.30] helo=mxrelay1.ptc.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13r0nn-0007zw-00
	for <help-cpp2html@gnu.org>; Wed, 01 Nov 2000 11:31:51 -0500
Received: from int-mail.ptc.com (int-mail3.ptc.com [132.253.108.33])
	by mxrelay1.ptc.com (8.9.0/8.9.0) with ESMTP id LAA12468
	for <help-cpp2html@gnu.org>; Wed, 1 Nov 2000 11:31:51 -0500 (EST)
Received: from ptc.com ([132.253.103.50]) by int-mail.ptc.com
          (Netscape Messaging Server 3.6)  with ESMTP id AAA17F1
          for <help-cpp2html@gnu.org>; Wed, 1 Nov 2000 11:31:49 -0500
Message-ID: <3A00455F.251C80A8@ptc.com>
Date: Wed, 01 Nov 2000 11:31:27 -0500
From: "Aldo D. Longhi" <alonghi@ptc.com>
Organization: PTC Open Systems Services
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: help-cpp2html@gnu.org
Subject: Re: Help-cpp2html -- confirmation of subscription -- request 976828
References: <E13r0nV-0007zu-00@fencepost.gnu.org>
Content-Type: multipart/mixed;
 boundary="------------FA366910B54D0FE57A55D110"
Sender: help-cpp2html-admin@gnu.org
Errors-To: help-cpp2html-admin@gnu.org
X-BeenThere: help-cpp2html@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
Reply-To: help-cpp2html@gnu.org
List-Help: <mailto:help-cpp2html-request@gnu.org?subject=help>
List-Post: <mailto:help-cpp2html@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-cpp2html>, <mailto:help-cpp2html-request@gnu.org?subject=subscribe>
List-Id: Users mailing list for cpp2html <help-cpp2html.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-cpp2html>, <mailto:help-cpp2html-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/help-cpp2html/

This is a multi-part message in MIME format.
--------------FA366910B54D0FE57A55D110
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit



--------------FA366910B54D0FE57A55D110
Content-Type: text/x-vcard; charset=us-ascii;
 name="alonghi.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Aldo D. Longhi
Content-Disposition: attachment;
 filename="alonghi.vcf"

begin:vcard 
n:Longhi;Aldo D
tel;fax:781-398-5720
tel;work:781-398-6191
x-mozilla-html:TRUE
url:http://www.ptc.com
org:PTC;Open Systems Services
adr:;;128 Technology Drive;Waltham;MA;02453;USA
version:2.1
email;internet:alonghi@ptc.com
title:Consultant
note;quoted-printable:eFax: 425.955.6599=0D=0A
fn:Aldo D Longhi
end:vcard

--------------FA366910B54D0FE57A55D110--



From alonghi@ptc.com Wed Nov 01 16:36:42 2000
Received: from poster.ptc.com ([12.11.148.30] helo=mxrelay1.ptc.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13r5Yo-0007Gg-00
	for <help-cpp2html@gnu.org>; Wed, 01 Nov 2000 16:36:42 -0500
Received: from int-mail.ptc.com (int-mail3.ptc.com [132.253.108.33])
	by mxrelay1.ptc.com (8.9.0/8.9.0) with ESMTP id QAA14766
	for <help-cpp2html@gnu.org>; Wed, 1 Nov 2000 16:36:37 -0500 (EST)
Received: from ptc.com ([132.253.103.50]) by int-mail.ptc.com
          (Netscape Messaging Server 3.6)  with ESMTP id AAA589A
          for <help-cpp2html@gnu.org>; Wed, 1 Nov 2000 16:36:34 -0500
Message-ID: <3A008CC8.84E660E2@ptc.com>
Date: Wed, 01 Nov 2000 16:36:09 -0500
From: "Aldo D. Longhi" <alonghi@ptc.com>
Organization: PTC Open Systems Services
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: help-cpp2html@gnu.org
Subject: Compile problems on HP-UX 10.20
Content-Type: multipart/mixed;
 boundary="------------6A0C7A94C74AF82A60CC1FE6"
Sender: help-cpp2html-admin@gnu.org
Errors-To: help-cpp2html-admin@gnu.org
X-BeenThere: help-cpp2html@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
Reply-To: help-cpp2html@gnu.org
List-Help: <mailto:help-cpp2html-request@gnu.org?subject=help>
List-Post: <mailto:help-cpp2html@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-cpp2html>, <mailto:help-cpp2html-request@gnu.org?subject=subscribe>
List-Id: Users mailing list for cpp2html <help-cpp2html.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-cpp2html>, <mailto:help-cpp2html-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/help-cpp2html/

This is a multi-part message in MIME format.
--------------6A0C7A94C74AF82A60CC1FE6
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Has the latest version of cpp2html been compiled and
tested on HP-UX 10.20?  I am having compilation
problems on my HP machine.

>From the commands that appear when running "make,"
it looks like "cc" is being used instead of "CC" for
"cmdline.c" and several errors appear because "cmdline.h"
contains several C++ comments ("//") and also because the
"-Aa" (ANSI C) flag is not used with the "cc" command.

Any ideas on this?  Is there any way to tweak "configure"
to always use CC as the compiler instead of switching back
and forth?  That might take care of my problems...

Thanks in advance...


--
Aldo D. Longhi
Consultant
PTC Open Systems Services

Phone: 781.398.6191     Email: alonghi@ptc.com
Fax:   781.398.5720     eFax:  425.955.6599


--------------6A0C7A94C74AF82A60CC1FE6
Content-Type: text/x-vcard; charset=us-ascii;
 name="alonghi.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Aldo D. Longhi
Content-Disposition: attachment;
 filename="alonghi.vcf"

begin:vcard 
n:Longhi;Aldo D
tel;fax:781-398-5720
tel;work:781-398-6191
x-mozilla-html:TRUE
url:http://www.ptc.com
org:PTC;Open Systems Services
adr:;;128 Technology Drive;Waltham;MA;02453;USA
version:2.1
email;internet:alonghi@ptc.com
title:Consultant
note;quoted-printable:eFax: 425.955.6599=0D=0A
fn:Aldo D Longhi
end:vcard

--------------6A0C7A94C74AF82A60CC1FE6--



From bettini@gdn.dsi.unifi.it Thu Nov 02 02:49:06 2000
Received: from gnim.dsi.unifi.it ([150.217.14.18])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13rF7R-0003Xs-00
	for <help-cpp2html@gnu.org>; Thu, 02 Nov 2000 02:49:05 -0500
Received: from gdn.dsi.unifi.it (prog.dsi.unifi.it [150.217.14.182])
	by gnim.dsi.unifi.it (8.9.1b+Sun/8.9.1) with ESMTP id IAA03527
	for <help-cpp2html@gnu.org>; Thu, 2 Nov 2000 08:38:30 +0100 (MET)
Message-ID: <3A011C7C.61886A34@gdn.dsi.unifi.it>
Date: Thu, 02 Nov 2000 08:49:16 +0100
From: Lorenzo Bettini <bettini@gdn.dsi.unifi.it>
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: help-cpp2html@gnu.org
References: <3A008CC8.84E660E2@ptc.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: [help-cpp2html]Re: Compile problems on HP-UX 10.20
Sender: help-cpp2html-admin@gnu.org
Errors-To: help-cpp2html-admin@gnu.org
X-BeenThere: help-cpp2html@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
Reply-To: help-cpp2html@gnu.org
List-Help: <mailto:help-cpp2html-request@gnu.org?subject=help>
List-Post: <mailto:help-cpp2html@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-cpp2html>, <mailto:help-cpp2html-request@gnu.org?subject=subscribe>
List-Id: Users mailing list for cpp2html <help-cpp2html.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-cpp2html>, <mailto:help-cpp2html-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/help-cpp2html/

"Aldo D. Longhi" wrote:
> 
> Has the latest version of cpp2html been compiled and
> tested on HP-UX 10.20?  I am having compilation
> problems on my HP machine.

No actually I don't have such a machine.

> 
> >From the commands that appear when running "make,"
> it looks like "cc" is being used instead of "CC" for

mhh... I don't understand this: what do you mean?
On my systme for instance it is compiled with the following line:

gcc -DHAVE_CONFIG_H -I. -I. -I..     -g -O2 -c cmdline.c

> "cmdline.c" and several errors appear because "cmdline.h"
> contains several C++ comments ("//") and also because the
> "-Aa" (ANSI C) flag is not used with the "cc" command.

You're right about the comments: I hadn't noticed that; sorry about
that.

Have you tried to erase those comments?

Actually the next release of cpp2html will take care of that (there's
also another bug fixed).

It should be out very soon.

> 
> Any ideas on this?  Is there any way to tweak "configure"
> to always use CC as the compiler instead of switching back
> and forth?  That might take care of my problems...

Could you please send me the configure file, and configure's logs, in
order to try to understand what happened? If they are big please send it
to me instead of to the list, or compress it.

see you soon
	Lorenzo

-- 
+-----------------------------------------------------+
|  Lorenzo Bettini          ICQ# lbetto, 16080134     |
|  PhD student in Computer Science                    |
|  Florence - Italy         (Linux User # 158233)     |
|  Home Page        : http://w3.newnet.it/bettini     |
|           http://infostud.dsi.unifi.it/~bettini     |
|  Mail Home        : lorenzo.bettini@penteres.it     |
|  Mail University  : bettini@dsi.unifi.it            |
|  http://www.mokabyte.it       Java on line journal  |
|  http://music.dsi.unifi.it         XKlaim language  |
|  http://www.gnu.org/software/java2html & cpp2html   |
+-----------------------------------------------------+


From bettini@dsi.unifi.it Sat Nov 04 05:06:46 2000
Received: from gnim.dsi.unifi.it ([150.217.14.18])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13s0Dm-0003mZ-00
	for <help-cpp2html@gnu.org>; Sat, 04 Nov 2000 05:06:46 -0500
Received: from dsi.unifi.it (prog.dsi.unifi.it [150.217.14.182])
	by gnim.dsi.unifi.it (8.9.1b+Sun/8.9.1) with ESMTP id KAA05495
	for <help-cpp2html@gnu.org>; Sat, 4 Nov 2000 10:56:04 +0100 (MET)
Message-ID: <3A03DFC6.27480CF3@dsi.unifi.it>
Date: Sat, 04 Nov 2000 11:07:02 +0100
From: Lorenzo Bettini <bettini@dsi.unifi.it>
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: help-cpp2html@gnu.org
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: [help-cpp2html]Re: Output from "configure" on HP for cpp2html
Sender: help-cpp2html-admin@gnu.org
Errors-To: help-cpp2html-admin@gnu.org
X-BeenThere: help-cpp2html@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
Reply-To: help-cpp2html@gnu.org
List-Help: <mailto:help-cpp2html-request@gnu.org?subject=help>
List-Post: <mailto:help-cpp2html@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-cpp2html>, <mailto:help-cpp2html-request@gnu.org?subject=subscribe>
List-Id: Users mailing list for cpp2html <help-cpp2html.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-cpp2html>, <mailto:help-cpp2html-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/help-cpp2html/

Ciao Aldo :-)

> checking whether we are using GNU C... no

OK, this actually shows that you're not using a GNU compiler, but this
shouldn't be a problem

> miami:user [3]
> miami:user [3]
> miami:user [3]
> miami:user [3] exit
> miami:user [4]

I don't understand these lines, but maybe these are due to your version
of make program

> script done on Fri Nov  3 18:22:30 2000
> 
>   ------------------------------------------------------------------------
> Script started on Fri Nov  3 18:25:41 2000
> miami:user [1] pwd
> /home/revs/cpp2html-1.0
> miami:user [2] find . -type f -newer README
> ./src/Makefile
> ./doc/Makefile
> ./config.log
> ./config.h
> ./config.cache
> ./config.status
> ./stamp-h
> ./Makefile
> ./txtc.sh
> ./script_newer.txt
> ./script_config.txt

mhh... I don't know these two scripts... could you post them to me,
please?

> Script started on Fri Nov  3 18:30:42 2000
> miami:user [1] pwd
> /home/revs/cpp2html-1.0
> miami:user [2] make
> No suffix list.
>         cd . && /home/revs/cpp2html-1.0/missing aclocal
> WARNING: `aclocal' is missing on your system.  You should only need it if
>          you modified `acinclude.m4' or `configure.in'.  You might want
>          to install the `Automake' and `Perl' packages.  Grab them from
>          any GNU archive site.
>         cd . && /home/revs/cpp2html-1.0/missing autoheader
> WARNING: `autoheader' is missing on your system.  You should only need it if
>          you modified `acconfig.h' or `configure.in'.  You might want
>          to install the `Autoconf' and `GNU m4' packages.  Grab them
>          from any GNU archive site.
>         cd . \
>           && CONFIG_FILES= CONFIG_HEADERS=config.h \
>              /bin/sh ./config.status

I don't like the above WARNINGS: they refer to the fact that you don't
have aclocal and autoheader (programs used by autoconf and automake),
and this is not a problem: you would need them only if you wanted to
develop with autoconf (which creates the configure script): otherwise
the configure script is self contained and it can do without them.

It looks like make tries to rebuild some files, that actually don't need
to be rebuilt!

> WARNING: `automake' is missing on your system.  You should only need it if
>          you modified `Makefile.am', `acinclude.m4' or `configure.in'.
>          You might want to install the `Automake' and `Perl' packages.
>          Grab them from any GNU archive site.

the same with this: automake shouldn't be called!

>         cd .. \
>           && CONFIG_FILES=src/Makefile CONFIG_HEADERS= /bin/sh ./config.status
> creating src/Makefile
>         /bin/sh ../txtc.sh copyright.text
>         /bin/sh ../txtc.sh helptext.text
>         CC -DHAVE_CONFIG_H -I. -I. -I..     -DCPP2HTML_DATA_DIR=\"/home/revs/cpp2html/share/cpp2html\" -g -c main.cc
>         CC -DHAVE_CONFIG_H -I. -I. -I..     -DCPP2HTML_DATA_DIR=\"/home/revs/cpp2html/share/cpp2html\" -g -c generators.cc
>         CC -DHAVE_CONFIG_H -I. -I. -I..     -DCPP2HTML_DATA_DIR=\"/home/revs/cpp2html/share/cpp2html\" -g -c tags.cc
>         CC -DHAVE_CONFIG_H -I. -I. -I..     -DCPP2HTML_DATA_DIR=\"/home/revs/cpp2html/share/cpp2html\" -g -c messages.cc
>         yacc  -d -l optparser.yy && mv y.tab.c optparser.cc
>         if test -f y.tab.h; then \
>         if cmp -s y.tab.h optparser.h; then rm -f y.tab.h; else mv y.tab.h optparser.h; fi; \
>         else :; fi
>         CC -DHAVE_CONFIG_H -I. -I. -I..     
and once again yacc shouldn't be called because the grammar file hasn't
been modified

-DCPP2HTML_DATA_DIR=\"/home/revs/cpp2html/share/cpp2html\" -g -c
optparser.cc
> CC: "/opt/CC/include/CC/yacc.h", line 9: warning: yyparse() declared extern after being declared static (101)
> CC: "/opt/CC/include/CC/yacc.h", line 9: error: inconsistent linkage specifications for yyparse() (1100)
> CC: "optparser.cc", line 321: warning: statement after goto not reached (105)
> CC: "optparser.cc", line 331: warning: label yynewstate not used (115)
> CC: "optparser.cc", line 521: warning: label yyerrlab not used (115)
> *** Error exit code 1

these errors are due to the file generated by yacc, but once again yacc
shouldn't have been called, because the grammar file wasn't modified.

Indeed I used bison instead of yacc, and there are some differences
between these two tools; this is way one should always provide directly
the file generated by bison (optparser.cc) apart from the grammar file
(optparser.yy): so that the user just compiles the generated file.

a conjecture that I might try is that there are some problems with the
date and the time of these files: it looks like optparser.yy (the yacc
grammar file) is more recent than optparser.cc (created automatically by
yacc), while it should be the contrary! Actually I checked in the
.tar.gz downloaded from ftp.gnu.org and actually the dates and times are
as they should be. So make shouldn't regenerate optparser.cc from
optparser.yy (as it shouldn't call aclocal, automake, and so on...)

Is the date and the time of your system correct?

could you check, after a brand new configure run, on a new untarred
directory, before running make, if the dates and times of these files
are correct, please?

So optparser.cc should be more recent than optparser.yy

thanks for you help :-)

see you soon
	Lorenzo

-- 
+-----------------------------------------------------+
|  Lorenzo Bettini          ICQ# lbetto, 16080134     |
|  PhD student in Computer Science                    |
|  Florence - Italy         (Linux User # 158233)     |
|  Home Page        : http://w3.newnet.it/bettini     |
|           http://infostud.dsi.unifi.it/~bettini     |
|  Mail Home        : lorenzo.bettini@penteres.it     |
|  Mail University  : bettini@dsi.unifi.it            |
|  http://www.mokabyte.it       Java on line journal  |
|  http://music.dsi.unifi.it         XKlaim language  |
|  http://www.gnu.org/software/java2html & cpp2html   |
+-----------------------------------------------------+


From alonghi@ptc.com Mon Nov 06 13:04:42 2000
Received: from poster.ptc.com ([12.11.148.30] helo=mxrelay1.ptc.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13sqdO-0004E5-00
	for <help-cpp2html@gnu.org>; Mon, 06 Nov 2000 13:04:42 -0500
Received: from int-mail.ptc.com (int-mail3.ptc.com [132.253.108.33])
	by mxrelay1.ptc.com (8.9.0/8.9.0) with ESMTP id NAA02750
	for <help-cpp2html@gnu.org>; Mon, 6 Nov 2000 13:04:29 -0500 (EST)
Received: from ptc.com ([132.253.103.50]) by int-mail.ptc.com
          (Netscape Messaging Server 3.6)  with ESMTP id AAA24CA;
          Mon, 6 Nov 2000 13:04:26 -0500
Message-ID: <3A06F291.31294D56@ptc.com>
Date: Mon, 06 Nov 2000 13:04:01 -0500
From: "Aldo D. Longhi" <alonghi@ptc.com>
Organization: PTC Open Systems Services
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Lorenzo Bettini <bettini@dsi.unifi.it>, help-cpp2html@gnu.org
References: <3A008CC8.84E660E2@ptc.com> <3A011C7C.61886A34@gdn.dsi.unifi.it> <3A018267.DC150F7F@ptc.com> <3A0192C4.18664B92@dsi.unifi.it> <3A01C06A.47D8B6F0@ptc.com> <3A03DF31.481F8BA8@dsi.unifi.it>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: [help-cpp2html]Re: Compile problems on HP-UX 10.20
Sender: help-cpp2html-admin@gnu.org
Errors-To: help-cpp2html-admin@gnu.org
X-BeenThere: help-cpp2html@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
Reply-To: help-cpp2html@gnu.org
List-Help: <mailto:help-cpp2html-request@gnu.org?subject=help>
List-Post: <mailto:help-cpp2html@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-cpp2html>, <mailto:help-cpp2html-request@gnu.org?subject=subscribe>
List-Id: Users mailing list for cpp2html <help-cpp2html.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-cpp2html>, <mailto:help-cpp2html-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/help-cpp2html/

Lorenzo,

    I tried again, and after I fixed the comments in "cmdline.h" and added
"-Aa" to the CFLAGS macro in ./src/Makefile, I only had one other
problem: the "alloca()" function (used in "getopt.c" and "optparser.cc").
I could not find any way to successfully link to any library that contained
this function.  Therefore I hacked the two files containing alloca() to use
malloc() instead and finally got it to link (I'm not sure my modifications
to these files are actually correct... we'll see).  The program now works,
and I am playing with it to see all the features, etc.
    So, I suppose you have two options for the "standard distribution":
1) Replace the alloca() calls with something else
2) Find a way to successfully link with alloca() on HP

Let me know if I can help with anything!

- Aldo

--
Aldo D. Longhi
Consultant
PTC Open Systems Services

Phone: 781.398.6191     Email: alonghi@ptc.com
Fax:   781.398.5720     eFax:  425.955.6599




From alonghi@ptc.com Mon Nov 06 16:36:09 2000
Received: from poster.ptc.com ([12.11.148.30] helo=mxrelay1.ptc.com)
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13stw1-0001GR-00
	for <help-cpp2html@gnu.org>; Mon, 06 Nov 2000 16:36:09 -0500
Received: from int-mail.ptc.com (int-mail3.ptc.com [132.253.108.33])
	by mxrelay1.ptc.com (8.9.0/8.9.0) with ESMTP id QAA09630
	for <help-cpp2html@gnu.org>; Mon, 6 Nov 2000 16:36:04 -0500 (EST)
Received: from ptc.com ([132.253.103.50]) by int-mail.ptc.com
          (Netscape Messaging Server 3.6)  with ESMTP id AAA726
          for <help-cpp2html@gnu.org>; Mon, 6 Nov 2000 16:36:04 -0500
Message-ID: <3A072429.31418F7E@ptc.com>
Date: Mon, 06 Nov 2000 16:35:37 -0500
From: "Aldo D. Longhi" <alonghi@ptc.com>
Organization: PTC Open Systems Services
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: help-cpp2html@gnu.org
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: [help-cpp2html]BUG: optparser.cc refers to JAVA2HTML_DATA_DIR
Sender: help-cpp2html-admin@gnu.org
Errors-To: help-cpp2html-admin@gnu.org
X-BeenThere: help-cpp2html@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
Reply-To: help-cpp2html@gnu.org
List-Help: <mailto:help-cpp2html-request@gnu.org?subject=help>
List-Post: <mailto:help-cpp2html@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-cpp2html>, <mailto:help-cpp2html-request@gnu.org?subject=subscribe>
List-Id: Users mailing list for cpp2html <help-cpp2html.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-cpp2html>, <mailto:help-cpp2html-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/help-cpp2html/

BUG REPORT:

optparser.cc refers to JAVA2HTML_DATA_DIR instead of
CPP2HTML_DATA_DIR

I was having trouble using the "tags.j2h" file and so I started looking
at the code to see how/where it was used.  I found that the file
optparser.cc refers to the defined symbol "JAVA2HTML_DATA_DIR"
in several places to determine where to look for the "tags.j2h" file.
The comments in the code indicate that this value should be passed
by the compiler, but I could not find this symbol in either of the
Makefiles.  I *did* find the symbol "CPP2HTML_DATA_DIR,"
which seemed to be pointing to the correct directory, so I changed
the contents of optparser.cc to use that symbol instead.  Now
I am able to modify the file "tags.j2h" to configure the colors of
my output.

Feel free to contact me if you have any questions.

--
Aldo D. Longhi
Consultant
PTC Open Systems Services

Phone: 781.398.6191     Email: alonghi@ptc.com
Fax:   781.398.5720     eFax:  425.955.6599




From bettini@dsi.unifi.it Tue Nov 07 02:36:21 2000
Received: from gnim.dsi.unifi.it ([150.217.14.18])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13t3Ir-0005w2-00
	for <help-cpp2html@gnu.org>; Tue, 07 Nov 2000 02:36:21 -0500
Received: from dsi.unifi.it (prog.dsi.unifi.it [150.217.14.182])
	by gnim.dsi.unifi.it (8.9.1b+Sun/8.9.1) with ESMTP id IAA09474
	for <help-cpp2html@gnu.org>; Tue, 7 Nov 2000 08:25:32 +0100 (MET)
Message-ID: <3A07B10D.25A892D0@dsi.unifi.it>
Date: Tue, 07 Nov 2000 08:36:45 +0100
From: Lorenzo Bettini <bettini@dsi.unifi.it>
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: help-cpp2html@gnu.org
Subject: Re: [help-cpp2html]BUG: optparser.cc refers to JAVA2HTML_DATA_DIR
References: <3A072429.31418F7E@ptc.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: help-cpp2html-admin@gnu.org
Errors-To: help-cpp2html-admin@gnu.org
X-BeenThere: help-cpp2html@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
Reply-To: help-cpp2html@gnu.org
List-Help: <mailto:help-cpp2html-request@gnu.org?subject=help>
List-Post: <mailto:help-cpp2html@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-cpp2html>, <mailto:help-cpp2html-request@gnu.org?subject=subscribe>
List-Id: Users mailing list for cpp2html <help-cpp2html.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-cpp2html>, <mailto:help-cpp2html-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/help-cpp2html/

"Aldo D. Longhi" wrote:
> 
> BUG REPORT:
> 
> optparser.cc refers to JAVA2HTML_DATA_DIR instead of
> CPP2HTML_DATA_DIR
> 

Hi
	You're right: this was a bug (which I fixed in the next release which
should be out soon). It is due to the fact I copied that file from
java2html program, but forgot to change that name... bad copy & past :-)

thank you
	Lorenzo

-- 
+-----------------------------------------------------+
|  Lorenzo Bettini          ICQ# lbetto, 16080134     |
|  PhD student in Computer Science                    |
|  Florence - Italy         (Linux User # 158233)     |
|  Home Page        : http://w3.newnet.it/bettini     |
|           http://infostud.dsi.unifi.it/~bettini     |
|  Mail Home        : lorenzo.bettini@penteres.it     |
|  Mail University  : bettini@dsi.unifi.it            |
|  http://www.mokabyte.it       Java on line journal  |
|  http://music.dsi.unifi.it         XKlaim language  |
|  http://www.gnu.org/software/java2html & cpp2html   |
+-----------------------------------------------------+


From bettini@dsi.unifi.it Tue Nov 07 10:39:25 2000
Received: from gnim.dsi.unifi.it ([150.217.14.18])
	by fencepost.gnu.org with esmtp (Exim 3.16 #1 (Debian))
	id 13tAqK-0003qk-00
	for <help-cpp2html@gnu.org>; Tue, 07 Nov 2000 10:39:25 -0500
Received: from dsi.unifi.it (prog.dsi.unifi.it [150.217.14.182])
	by gnim.dsi.unifi.it (8.9.1b+Sun/8.9.1) with ESMTP id QAA11607
	for <help-cpp2html@gnu.org>; Tue, 7 Nov 2000 16:28:16 +0100 (MET)
Message-ID: <3A082233.5F2DF491@dsi.unifi.it>
Date: Tue, 07 Nov 2000 16:39:31 +0100
From: Lorenzo Bettini <bettini@dsi.unifi.it>
X-Mailer: Mozilla 4.7 [en] (WinNT; I)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: help-cpp2html@gnu.org
Subject: Re: [help-cpp2html]Re: Compile problems on HP-UX 10.20
References: <3A008CC8.84E660E2@ptc.com> <3A011C7C.61886A34@gdn.dsi.unifi.it> <3A018267.DC150F7F@ptc.com> <3A0192C4.18664B92@dsi.unifi.it> <3A01C06A.47D8B6F0@ptc.com> <3A03DF31.481F8BA8@dsi.unifi.it> <3A06F291.31294D56@ptc.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: help-cpp2html-admin@gnu.org
Errors-To: help-cpp2html-admin@gnu.org
X-BeenThere: help-cpp2html@gnu.org
X-Mailman-Version: 2.0beta6
Precedence: bulk
Reply-To: help-cpp2html@gnu.org
List-Help: <mailto:help-cpp2html-request@gnu.org?subject=help>
List-Post: <mailto:help-cpp2html@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-cpp2html>, <mailto:help-cpp2html-request@gnu.org?subject=subscribe>
List-Id: Users mailing list for cpp2html <help-cpp2html.gnu.org>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-cpp2html>, <mailto:help-cpp2html-request@gnu.org?subject=unsubscribe>
List-Archive: http://mail.gnu.org/pipermail/help-cpp2html/

"Aldo D. Longhi" wrote:
> 
> Lorenzo,
> 
>     I tried again, and after I fixed the comments in "cmdline.h" and added
> "-Aa" to the CFLAGS macro in ./src/Makefile, I only had one other

if you remove -aA flag what is the problem?

> problem: the "alloca()" function (used in "getopt.c" and "optparser.cc").
> I could not find any way to successfully link to any library that contained
> this function.  Therefore I hacked the two files containing alloca() to use
> malloc() instead and finally got it to link (I'm not sure my modifications
> to these files are actually correct... we'll see).  The program now works,

I think I can work something out for the alloca function in the
configure file (autoconf should be able to handle it).

> and I am playing with it to see all the features, etc.
>     So, I suppose you have two options for the "standard distribution":
> 1) Replace the alloca() calls with something else
> 2) Find a way to successfully link with alloca() on HP

I think your solution (replace it with malloc) should be fine: I think I
can automatizate it through configure script.

> 
> Let me know if I can help with anything!

thank you, you already helped a lot with your feedback :-)

I'd just need to know what the problems are without the -Aa flag.

As soon as I added some features for the alloca I can e-mail the beta
release to you, so that you can test it on your machine :-)

see you soon
	Lorenzo

-- 
+-----------------------------------------------------+
|  Lorenzo Bettini          ICQ# lbetto, 16080134     |
|  PhD student in Computer Science                    |
|  Florence - Italy         (Linux User # 158233)     |
|  Home Page        : http://w3.newnet.it/bettini     |
|           http://infostud.dsi.unifi.it/~bettini     |
|  Mail Home        : lorenzo.bettini@penteres.it     |
|  Mail University  : bettini@dsi.unifi.it            |
|  http://www.mokabyte.it       Java on line journal  |
|  http://music.dsi.unifi.it         XKlaim language  |
|  http://www.gnu.org/software/java2html & cpp2html   |
+-----------------------------------------------------+


