Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190682 - dev-libs/redland-1.0.6 fails compilation on g/fbsd
Summary: dev-libs/redland-1.0.6 fails compilation on g/fbsd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: FreeBSD (show other bugs)
Hardware: All FreeBSD
: High normal (vote)
Assignee: Christian Heim (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-29 18:38 UTC by MT
Modified: 2007-09-03 15:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
redland-1.0.6-fbsd.patch (redland-1.0.6-fbsd.patch,322 bytes, patch)
2007-08-29 18:38 UTC, MT
Details | Diff
redland-1.0.6.ebuild.patch (redland-1.0.6.ebuild.patch,227 bytes, patch)
2007-08-29 18:39 UTC, MT
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description MT 2007-08-29 18:38:29 UTC
on gfbsd redland fails compilation:

 i686-gentoo-freebsd6.2-gcc -DHAVE_CONFIG_H -I. -I. -I. -DPKGDATADIR=\"/usr/share/redland\" -DLIBRDF_INTERNAL=1 -march=athlon64 -pipe -O2 -mfpmath=sse -msse2 -MT rdf_node.lo -MD -MP -MF .deps/rdf_node.Tpo -c rdf_node.c  -fPIC -DPIC -o .libs/rdf_node.o
In file included from ./rdf_init.h:32,
                 from ./librdf.h:275,
                 from ./redland.h:42,
                 from rdf_node.c:42:
./rdf_init_internal.h:94: error: expected specifier-qualifier-list before 'pthread_mutex_t'
rdf_node.c: In function 'librdf_new_node_from_uri_string_or_uri':
rdf_node.c:173: error: 'librdf_world' has no member named 'nodes_mutex'
rdf_node.c:226: error: 'librdf_world' has no member named 'nodes_mutex'
rdf_node.c: In function 'librdf_new_node_from_typed_counted_literal':
rdf_node.c:444: error: 'librdf_world' has no member named 'nodes_mutex'
rdf_node.c:552: error: 'librdf_world' has no member named 'nodes_mutex' i686-gentoo-freebsd6.2-gcc -DHAVE_CONFIG_H -I. -I. -I. -DPKGDATADIR=\"/usr/share/redland\" -DLIBRDF_INTERNAL=1 -march=athlon64 -pipe -O2 -mfpmath=sse -msse2 -MT rdf_statement.lo -MD -MP -MF .deps/rdf_statement.Tpo -c rdf_statement.c  -fPIC -DPIC -o .libs/rdf_statement.o

rdf_node.c: In function 'librdf_new_node_from_blank_identifier':
rdf_node.c:619: error: 'librdf_world' has no member named 'nodes_mutex'
rdf_node.c:680: error: 'librdf_world' has no member named 'nodes_mutex'
rdf_node.c: In function 'librdf_free_node':
rdf_node.c:724: error: 'librdf_world' has no member named 'nodes_mutex'
rdf_node.c:736: error: 'librdf_world' has no member named 'nodes_mutex'
rdf_node.c:788: error: 'librdf_world' has no member named 'nodes_mutex'
In file included from ./rdf_init.h:32,
                 from ./librdf.h:275,
                 from ./redland.h:42,
                 from rdf_statement.c:42:
./rdf_init_internal.h:94: error: expected specifier-qualifier-list before 'pthread_mutex_t'
rdf_statement.c: In function 'librdf_free_statement':
rdf_statement.c:262: error: 'librdf_world' has no member named 'statements_mutex'
rdf_statement.c:268: error: 'librdf_world' has no member named 'statements_mutex'
gmake[3]: *** [rdf_node.lo] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: *** [rdf_statement.lo] Error 1
gmake[2]: *** [all-recursive] Error 1
gmake[1]: *** [all] Error 2
gmake: *** [all-recursive] Error 1


this problem is due to a missing #include pthread.h into the file 'rdf_init_internal.h', without it all the librdf/rdf_*.c files fails the compilation as previously reported.

attached there are the patch that fix the problem and the ebuild patch.

NOTE: this package is required by KDE4, so fixing this issue now will save time in the future when KDE4 will be an ~arch package.

Reproducible: Always
Comment 1 MT 2007-08-29 18:38:56 UTC
Created attachment 129568 [details, diff]
redland-1.0.6-fbsd.patch
Comment 2 MT 2007-08-29 18:39:12 UTC
Created attachment 129570 [details, diff]
redland-1.0.6.ebuild.patch
Comment 3 MT 2007-08-29 18:41:52 UTC
NOTE: as AT i have tested the patchset both on Gentoo/Linux and Gentoo/FreeBSD and the package compile and work correctly. i'm not sure if my fix is the proper solution at the problem, so it must be sended upstream?
Comment 4 Roy Marples (RETIRED) gentoo-dev 2007-08-30 12:31:29 UTC
inherit db-use eutils flag-o-matic
append-cppflags -I$(db_includedir)

We need that for berkdb support, aside from that everything looks good.

Have you sent the patch upstream?
Comment 5 Christian Heim (RETIRED) gentoo-dev 2007-09-01 09:16:46 UTC
(In reply to comment #3)
> NOTE: as AT i have tested the patchset both on Gentoo/Linux and Gentoo/FreeBSD
> and the package compile and work correctly. i'm not sure if my fix is the
> proper solution at the problem, so it must be sended upstream?

Yup, I really think this should be sent upstream. Wanna do me a favor and do that ? If not, no problem.
Comment 6 Christian Heim (RETIRED) gentoo-dev 2007-09-01 09:27:49 UTC
(In reply to comment #4)
> inherit db-use eutils flag-o-matic
> append-cppflags -I$(db_includedir)
> 
> We need that for berkdb support, aside from that everything looks good.

If I do that, we have to rip of the check in configure, as its also including db-4.3 (at least here).

--

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include/db4.5 -I/usr/include/db4.3 -DPKGDATADIR=\"/usr/share/redland\" -I/usr/include/db4.5 -I/usr/include/db4.3 -DLIBRDF_INTERNAL=1 -O2 -pipe -march=i686 -g -ggdb2 -MT rdf_parser_raptor.lo -MD -MP -MF .deps/rdf_parser_raptor.Tpo -c rdf_parser_raptor.c -o rdf_parser_raptor.o >/dev/null 2>&1
Comment 7 Christian Heim (RETIRED) gentoo-dev 2007-09-01 09:34:28 UTC
(In reply to comment #6)
> (In reply to comment #4)
> > inherit db-use eutils flag-o-matic
> > append-cppflags -I$(db_includedir)
> > 
> > We need that for berkdb support, aside from that everything looks good.
> 
> If I do that, we have to rip of the check in configure, as its also including
> db-4.3 (at least here).

Actually it looks like its failing w/ db-4.5, at least when looking at the config.log. Gonna file a separate bug for that.
Comment 8 Roy Marples (RETIRED) gentoo-dev 2007-09-01 09:36:06 UTC
That should not matter - as long as the right include dir is first.
Comment 9 Christian Heim (RETIRED) gentoo-dev 2007-09-01 09:41:59 UTC
OK, the initial fbsd issue should be fixed in CVS now.
Comment 10 MT 2007-09-01 10:18:24 UTC
(In reply to comment #5)
> Yup, I really think this should be sent upstream. Wanna do me a favor and do
> that ? If not, no problem.

sure, i'll do today and than i link here the bugreport.

Comment 11 MT 2007-09-03 15:32:35 UTC
here the upstream bugreport:
http://bugs.librdf.org/mantis/view.php?id=230