Bug 45765 - [FIX BENTO] print/cpp2latex on -current
Summary: [FIX BENTO] print/cpp2latex on -current
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-26 18:50 UTC by Stefan Farfeleder
Modified: 2002-11-26 19:40 UTC (History)
1 user (show)

See Also:


Attachments
cpp2latex.diff (819 bytes, patch)
2002-11-26 18:50 UTC, Stefan Farfeleder
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Farfeleder 2002-11-26 18:50:07 UTC
cpp2latex uses some rather old/dubious C++ code which is rejected by GCC
3.X.  From the Bento error log:

Making all in cpp2latex
c++ -DHAVE_CONFIG_H -I. -I. -I..     -O -pipe -mcpu=pentiumpro -c
main.cpp
main.cpp:29: 'string' is used as a type, but is not defined as a type.
main.cpp:30: 'string' is used as a type, but is not defined as a type.
main.cpp:33: 'vector' is used as a type, but is not defined as a type.
main.cpp:34: `ifstream' was not declared in this scope
main.cpp:34: `src' was not declared in this scope
main.cpp:34: syntax error before `*' token
main.cpp:34: 'string' is used as a type, but is not defined as a type.
main.cpp:37: `ifstream' was not declared in this scope
main.cpp:37: `src' was not declared in this scope
main.cpp:37: `bool satzzeichen' redeclared as different kind of symbol
main.cpp:36: previous declaration of `bool satzzeichen(char)'
main.cpp: In function `int main(int, char**)':
main.cpp:58: syntax error before `=' token
main.cpp:82: `cerr' undeclared (first use this function)
main.cpp:82: (Each undeclared identifier is reported only once for each 
   function it appears in.)
main.cpp:82: `endl' undeclared (first use this function)
main.cpp:83: syntax error before `;' token
main.cpp:84: `file' undeclared (first use this function)
main.cpp:97: `tab' undeclared (first use this function)
main.cpp:107: syntax error before `=' token
main.cpp:117: `out' undeclared (first use this function)
main.cpp:117: `syntax' undeclared (first use this function)
main.cpp:194: `satzzeichen' cannot be used as a function
main.cpp:203: syntax error before `=' token
main.cpp:204: `tmp' undeclared (first use this function)
main.cpp:220: `cout' undeclared (first use this function)
main.cpp: At global scope:
main.cpp:255: `ifstream' was not declared in this scope
main.cpp:255: `src' was not declared in this scope
main.cpp:255: syntax error before `*' token
main.cpp:259: syntax error before `for'
*** Error code 1

How-To-Repeat: portinstall cpp2latex
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2002-11-26 19:40:06 UTC
State Changed
From-To: open->closed

Committed, thanks