Opened 8 years ago
Closed 8 years ago
#53542 closed defect (wontfix)
highlight 3.34
Reported by: | 1-61803 | Owned by: | Schamschula (Marius Schamschula) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ballapete (Peter "Pete" Dyballa) | |
Port: | highlight |
Description
I tried updating it but it fails building. It seems a problem with the boost
library.
Attachments (5)
Change History (18)
Changed 8 years ago by 1-61803
Attachment: | log_extract.txt added |
---|
comment:1 Changed 8 years ago by Schamschula (Marius Schamschula)
Owner: | set to Schamschula |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:3 Changed 8 years ago by 1-61803
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Changed 8 years ago by Schamschula (Marius Schamschula)
Attachment: | patch-src-core-rtfgenerator.cpp.diff added |
---|
Changed 8 years ago by Schamschula (Marius Schamschula)
comment:4 Changed 8 years ago by Schamschula (Marius Schamschula)
I've attached a patch and a modified Portfile. I have no machine running OS X 10.8 (I don't see this build issue under El Capitan and Sierra), so I cannot test this.
comment:5 Changed 8 years ago by Schamschula (Marius Schamschula)
I tried building highlight 3.34 under Leopard (10.5). It gets past this particular issue, but runs into a problem as unique_ptr is not defined (c++ library is too old).
comment:6 Changed 8 years ago by ballapete (Peter "Pete" Dyballa)
Cc: | ballapete added |
---|
comment:7 Changed 8 years ago by ballapete (Peter "Pete" Dyballa)
On Snow Leopard, Mac OS X 10.6.8, the same error is presented as:
./core/rtfgenerator.cpp: In member function ‘virtual std::string highlight::RtfGenerator::maskCharacter(unsigned char)’: ./core/rtfgenerator.cpp:279: error: ‘to_string’ was not declared in this scope make[1]: *** [rtfgenerator.o] Error 1 make[1]: *** Waiting for unfinished jobs.... /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/ansigenerator.cpp ./core/rtfgenerator.cpp: In member function ‘virtual std::string highlight::RtfGenerator::maskCharacter(unsigned char)’: ./core/rtfgenerator.cpp:279: error: ‘to_string’ was not declared in this scope make[1]: *** [rtfgenerator.o] Error 1
Changed 8 years ago by 1-61803
Attachment: | main.2.log added |
---|
3rd try, problem with unique_ptr as you mentioned
comment:8 Changed 8 years ago by 1-61803
I tried your fix on 10.8.5 and ran into the same problem with unique_ptr
.
comment:9 Changed 8 years ago by ballapete (Peter "Pete" Dyballa)
With the patch applied build went with CXX="/usr/bin/llvm-g++-4.2"
a bit further:
./cli/main.cpp: In member function ‘int HLCmdLineApp::run(int, const char**)’: ./cli/main.cpp:411: error: ‘unique_ptr’ was not declared in this scope ./cli/main.cpp:411: error: expected primary-expression before ‘>’ token ./cli/main.cpp:411: error: ‘generator’ was not declared in this scope make[1]: *** [main.o] Error 1 make[1]: *** Waiting for unfinished jobs....
I also observed that some files seem to have been compiled twice (just a block from the beginning):
make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_textproc_highlight/highlight/work/highlight-3.34/src' /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/stylecolour.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/stylecolour.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/stringtools.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/stringtools.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/xhtmlgenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/xhtmlgenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/latexgenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/latexgenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/texgenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/texgenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/rtfgenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/rtfgenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/htmlgenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/htmlgenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/ansigenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/ansigenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/svggenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/svggenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/codegenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/codegenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/xterm256generator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/xterm256generator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/pangogenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/bbcodegenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/odtgenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/pangogenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/bbcodegenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/odtgenerator.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/syntaxreader.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/syntaxreader.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/elementstyle.cpp /usr/bin/llvm-g++-4.2 -Os -arch x86_64 -c -I ./include/ -I/opt/local/include ./core/elementstyle.cpp
comment:10 Changed 8 years ago by Schamschula (Marius Schamschula)
comment:11 Changed 8 years ago by 1-61803
Could this still be patched, if I correctly understood this post, with auto_ptr
?
comment:13 Changed 8 years ago by Schamschula (Marius Schamschula)
Resolution: | → wontfix |
---|---|
Status: | reopened → closed |
In bcd7d59/macports-ports: