Opened 19 years ago
Closed 18 years ago
#8814 closed defect (fixed)
install html2text fails
Reported by: | windholtz@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.2 |
Keywords: | Cc: | markd@…, windholtz@… | |
Port: |
Description
I am using gcc version 3.3 but I also switched to gcc 4.0 and got the same messages OSX is ver 10.4.6 DarwinPorts base version 1.211
sudo port install html2text ---> Building html2text with target all Error: Target com.apple.build returned: shell command "cd "/opt/local/var/db/dports/build/_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dports_textproc_html2text/work/html2text-1.3.2a" && make all" returned error 2 Command output: html.h:577: error: parse error before `>' token html.h:585: error: 'auto_ptr' is used as a type, but is not defined as a type. html.h:586: error: `auto_ptr' was not declared in this scope html.h:586: error: parse error before `>' token html.h:602: error: `auto_ptr' was not declared in this scope html.h:602: error: parse error before `>' token html.h:609: error: `auto_ptr' was not declared in this scope html.h:609: error: parse error before `>' token html.h:616: error: 'auto_ptr' is used as a type, but is not defined as a type. html.h:617: error: `auto_ptr' was not declared in this scope html.h:617: error: parse error before `>' token html.h:618: error: `auto_ptr' was not declared in this scope html.h:618: error: parse error before `>' token In file included from HTMLControl.h:40,
from html2text.C:43:
HTMLParser.y:72: error: `auto_ptr' was not declared in this scope HTMLParser.y:72: error: parse error before `>' token HTMLParser.y:77: error: `auto_ptr' was not declared in this scope HTMLParser.y:77: error: parse error before `>' token HTMLParser.y:78: error: `auto_ptr' was not declared in this scope HTMLParser.y:78: error: parse error before `>' token HTMLParser.y:80: error: `auto_ptr' was not declared in this scope HTMLParser.y:80: error: parse error before `>' token HTMLParser.y:83: error: `auto_ptr' was not declared in this scope HTMLParser.y:83: error: parse error before `>' token HTMLParser.y:86: error: `auto_ptr' was not declared in this scope HTMLParser.y:86: error: parse error before `>' token HTMLParser.y:91: error: `auto_ptr' was not declared in this scope HTMLParser.y:91: error: parse error before `>' token make: * [html2text.o] Error 1
Error: /opt/local/bin/port: Status 1 encountered during processing.
Attachments (2)
Change History (9)
comment:1 Changed 19 years ago by windholtz@…
Cc: | windholtz@… added |
---|
comment:2 Changed 18 years ago by markd@…
Cc: | markd@… added |
---|
comment:3 Changed 18 years ago by markd@…
Resolution: | → worksforme |
---|---|
Status: | new → closed |
If it is still a problem or if you have further details you may reopen this.
comment:4 Changed 18 years ago by oksmith77
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
I've reproduced the problem described in the original bug.
I've made a variant to work around the problem. See Portfile that I accidentally attached twice.
(These Trac forms need DELETE and CANCEL buttons.)
Please consider updating the Portfile with the one I've attached.
Thanks.
comment:5 Changed 18 years ago by markd@…
Cc: | markd@… added; markd@… removed |
---|
I see that when I tested it on 10.3 I had gcc4 installed so I see the problem too now. But this needs to be done using a compiler flag. But I'm not having luck using compiler flags with -DAUTO_PTR_BROKEN. Is is set to a value? Please give details.
comment:6 Changed 18 years ago by oksmith77
The hack in the Portfile causes -DAUTO_PTR_BROKEN to always be set if you use the variant. It was the easiest way I could find to do things without having to rebuilt the patch file.
It's not pretty but neither is the original configuration script.
Try it. Convince yourself it works.
comment:7 Changed 18 years ago by markd@…
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
I made a patchfile that sets -DAUTO_PTR_BROKEN for 10.3. No variant is needed. Committed as revision 3 of the port. Thanks!
It works fine for me on 10.4.6. Do you have an up-to-date Xcode 2.x from Apple's site? Anything else unusual about your Mac? Do you have non-DawinPorts (manually compiled apps) installed also?