[CWB] [ cwb-Bugs-3066695 ] CWB::CL: too few arguments to function cl_string_canonical

SourceForge.net noreply at sourceforge.net
Mon Aug 1 00:53:42 CEST 2011


Bugs item #3066695, was opened at 2010-09-15 09:06
Message generated for change (Settings changed) made by andrewhardie
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=722303&aid=3066695&group_id=131809

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: CWB/Perl interface
>Group: TODO-3.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: peter ljunglöf (heatherleaf)
>Assigned to: Stefan Evert (schtepf)
Summary: CWB::CL: too few arguments to function cl_string_canonical

Initial Comment:
Function call on line 302 in .../perl/trunk/CWB-CL/CL.xs:

  cl_string_canonical(s_norm, flags);

But the definition of the function, on line 714 in .../cwb/trunk/cl/cl.h, requires 3 arguments:

  void cl_string_canonical(char *s, CorpusCharset charset, int flags);

A quick-and-dirty solution which gets CWB::CL to compile is to add any charset to the call, e.g.:

  cl_string_canonical(s_norm, utf8, flags);

I guess it's a bit more complicated than that, but at least I got it to compile this way...


----------------------------------------------------------------------

Comment By: peter ljunglöf (heatherleaf)
Date: 2010-09-15 09:20

Message:
My quick solution doesn't work - something with the dynloader:

Can't load
'/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/CWB/CL/CL.bundle' for
module CWB::CL:
dlopen(/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/CWB/CL/CL.bundle,
1): Symbol not found: _g_utf8_skip
  Referenced from:
/Library/Perl/5.10.0/darwin-thread-multi-2level/auto/CWB/CL/CL.bundle
  Expected in: flat namespace
 in /Library/Perl/5.10.0/darwin-thread-multi-2level/auto/CWB/CL/CL.bundle
at /System/Library/Perl/5.10.0/darwin-thread-multi-2level/DynaLoader.pm
line 207.
 at -e line 1
Compilation failed in require at -e line 1.
BEGIN failed--compilation aborted at -e line 1.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=722303&aid=3066695&group_id=131809


More information about the CWB mailing list