Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Jul 2015 13:20:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 201424] graphics/cuneiform namespace error
Message-ID:  <bug-201424-13-4wrtg6rRP7@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-201424-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-201424-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201424

--- Comment #1 from Walter Schwarzenfeld <w.litter@aon.at> ---
graphics/cuneiform exits compilation in port with:

Linking CXX executable ../../cuneiform
CMakeFiles/cuneiform-cli.dir/cuneiform-cli.cpp.o: In function `main':
/usr/ports/graphics/cuneiform/work/cuneiform-linux-1.1.0/cuneiform_src/cli/cuneiform-cli.cpp:(.text+0x5de):
undefined reference to `Magick::Image::Image(std::__1::basic_string<char,
std::__1::char_traits<char>, std::__1::allocator<char> > const&)'
/usr/ports/graphics/cuneiform/work/cuneiform-linux-1.1.0/cuneiform_src/cli/cuneiform-cli.cpp:(.text+0x644):
undefined reference to `Magick::Image::write(Magick::Blob*,
std::__1::basic_string<char, std::__1::char_traits<char>,
std::__1::allocator<char> > const&)'
c++: error: linker command failed with exit code 1 (use -v to see invocation)
--- cuneiform ---
*** [cuneiform] Error code 1

but compiles with poudriere.

If I do this patch

-- cuneiform_src/cli/cuneiform-cli.cpp.orig   2015-07-08 09:26:05 UTC
+++ cuneiform_src/cli/cuneiform-cli.cpp
@@ -152,7 +152,8 @@ static string supported_formats() {
  */
static char* read_file(const char *fname);
-#ifdef USE_MAGICK
+#ifndef USE_MAGICK
+#define USE_MAGICK
#include <Magick++.h>
using namespace Magick;
@@ -337,7 +338,9 @@ int main(int argc, char **argv) {
  return 0;
  }
-#ifdef USE_MAGICK
+#ifndef USE_MAGICK
#define USE_MAGICK
+#include <Magick++.h>
+using namespace Magick;
  Magick::InitializeMagick("");
#endif

it compiles fine.


Other errors appears with gcc48, but this patch

--- cuneiform_src/Kern/hrkint/stdprt.h.orig  2015-07-08 11:24:29 UTC
+++ cuneiform_src/Kern/hrkint/stdprt.h
@@ -58,6 +58,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE
#define __STDPRT_H
#include "std.h"
+#include <cstdarg>
typedef int32_t HEvent32;
typedef struct tagStdPrtEvent

helps.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201424-13-4wrtg6rRP7>