Opened 2 years ago

Closed 2 years ago

#1104 closed Bug Report (fixed)

Latest lilv fails to build

Reported by: falkTX Owned by: dave
Priority: major Component: Lilv
Keywords: Cc:

Description

Using r5800.
Here's the full build log:

[ 1/22] Compiling lilv.pc.in
[ 2/22] Compiling src/collections.c
[ 3/22] Compiling src/instance.c
[ 4/22] Compiling src/lib.c
[ 5/22] Compiling src/node.c
[ 6/22] Compiling src/plugin.c
../src/plugin.c: In function ‘lilv_plugin_get_author_property’:
../src/plugin.c:876:3: warning: pointer targets in passing argument 2 of ‘sord_new_uri’ differ in signedness [-Wpointer-sign]
   SordNode*  pred   = sord_new_uri(sworld, uri);
   ^
In file included from ../src/lilv_internal.h:53:0,
                 from ../src/plugin.c:28:
/opt/kxstudio/include/sord-0/sord/sord.h:185:1: note: expected ‘const uint8_t *’ but argument is of type ‘const char *’
 sord_new_uri(SordWorld* world, const uint8_t* uri);
 ^
../src/plugin.c: In function ‘lilv_plugin_get_author_name’:
../src/plugin.c:887:2: warning: pointer targets in passing argument 2 of ‘lilv_plugin_get_author_property’ differ in signedness [-Wpointer-sign]
  return lilv_plugin_get_author_property(plugin, NS_FOAF "name");
  ^
../src/plugin.c:871:1: note: expected ‘const char *’ but argument is of type ‘const uint8_t *’
 lilv_plugin_get_author_property(const LilvPlugin* plugin, const char* uri)
 ^
../src/plugin.c: In function ‘lilv_plugin_get_author_email’:
../src/plugin.c:893:2: warning: pointer targets in passing argument 2 of ‘lilv_plugin_get_author_property’ differ in signedness [-Wpointer-sign]
  return lilv_plugin_get_author_property(plugin, NS_FOAF "mbox");
  ^
../src/plugin.c:871:1: note: expected ‘const char *’ but argument is of type ‘const uint8_t *’
 lilv_plugin_get_author_property(const LilvPlugin* plugin, const char* uri)
 ^
../src/plugin.c: In function ‘lilv_plugin_get_author_homepage’:
../src/plugin.c:899:2: warning: pointer targets in passing argument 2 of ‘lilv_plugin_get_author_property’ differ in signedness [-Wpointer-sign]
  return lilv_plugin_get_author_property(plugin, NS_FOAF "homepage");
  ^
../src/plugin.c:871:1: note: expected ‘const char *’ but argument is of type ‘const uint8_t *’
 lilv_plugin_get_author_property(const LilvPlugin* plugin, const char* uri)
 ^

[ 7/22] Compiling src/pluginclass.c
[ 8/22] Compiling src/port.c
[ 9/22] Compiling src/query.c
[10/22] Compiling src/scalepoint.c
[11/22] Compiling src/state.c
../src/state.c: In function ‘new_state_from_model’:
../src/state.c:567:39: error: ‘pred’ undeclared (first use in this function)
    prop.key   = map->map(map->handle, pred);
                                       ^
../src/state.c:567:39: note: each undeclared identifier is reported only once for each function it appears in
../src/state.c:556:20: warning: unused variable ‘key’ [-Wunused-variable]
    const char*     key = (const char*)sord_node_get_string(p);
                    ^

Waf: Leaving directory `/Shared/Personal/FOSS/Repo/Debian-Libs/lilv/build'
Build failed

You can see some other warnings too.

Change History (2)

comment:1 Changed 2 years ago by falkTX

I guess 'pred' should be 'key' instead.

--- lilv-static-0.22.1+svn5800.orig/src/state.c
+++ lilv-static-0.22.1+svn5800/src/state.c
@@ -564,7 +564,7 @@ new_state_from_model(LilvWorld*       wo
 			uint32_t        flags = LV2_STATE_IS_POD|LV2_STATE_IS_PORTABLE;
 			Property        prop  = { NULL, 0, 0, 0, flags };
 
-			prop.key   = map->map(map->handle, pred);
+			prop.key   = map->map(map->handle, key);
 			prop.type  = atom->type;
 			prop.size  = atom->size;
 			prop.value = malloc(atom->size);

comment:2 Changed 2 years ago by dave

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in r5801

Note: See TracTickets for help on using tickets.