Bug 275700 - textproc/redland rdf_storage_virtuoso.c:55:10: fatal error: 'sql.h' file not found
Summary: textproc/redland rdf_storage_virtuoso.c:55:10: fatal error: 'sql.h' file not ...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-11 17:52 UTC by andy
Modified: 2023-12-12 21:45 UTC (History)
4 users (show)

See Also:
jhale: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andy 2023-12-11 17:52:59 UTC
FreeBSD FBSD14 14.0-STABLE FreeBSD 14.0-STABLE #6 stable/14-2c5e87862: Sat Dec  9 21:14:44 EST 2023     root@FBSD14:/usr/obj/usr/src/amd64.amd64/sys/MYKERNEL amd64 1400501

Trying to update fails with:

/bin/sh ../libtool  --tag=CC   --mode=compile cc -DHAVE_CONFIG_H -I.   -I/usr/local/include/db5 -I../libltdl  -I/usr/local/include/db5 -I/usr/local/include/raptor2 -I/usr/local/include/rasqal -I/usr/local/include/raptor2  -DREDLAND_MODULE_PATH="\""/usr/local/lib/redland:/usr/local/lib/redland"\"" -DLIBRDF_INTERNAL=1 -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -MT librdf_storage_virtuoso_la-rdf_query_virtuoso.lo -MD -MP -MF .deps/librdf_storage_virtuoso_la-rdf_query_virtuoso.Tpo -c -o librdf_storage_virtuoso_la-rdf_query_virtuoso.lo `test -f 'rdf_query_virtuoso.c' || echo './'`rdf_query_virtuoso.c
/bin/sh ../libtool  --tag=CC   --mode=link cc -I../libltdl  -I/usr/local/include/db5 -I/usr/local/include/raptor2 -I/usr/local/include/rasqal -I/usr/local/include/raptor2  -DREDLAND_MODULE_PATH="\""/usr/local/lib/redland:/usr/local/lib/redland"\"" -DLIBRDF_INTERNAL=1 -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing  -version-info 0:0:0 -fstack-protector-strong   -L/usr/local/lib -lraptor2 -L/usr/local/lib -lrasqal -lraptor2 -L/usr/local/lib -lrasqal -lraptor2   -L/usr/local/lib -ldb-5.3 -fstack-protector-strong  -o librdf.la -rpath /usr/local/lib rdf_init.lo rdf_raptor.lo rdf_uri.lo rdf_digest.lo rdf_hash.lo rdf_hash_cursor.lo rdf_hash_memory.lo rdf_model.lo rdf_model_storage.lo rdf_iterator.lo rdf_concepts.lo rdf_list.lo rdf_storage.lo rdf_storage_sql.lo rdf_stream.lo rdf_parser.lo rdf_parser_raptor.lo rdf_heuristics.lo rdf_files.lo rdf_utf8.lo rdf_query.lo rdf_query_results.lo rdf_query_rasqal.lo rdf_serializer.lo rdf_serializer_raptor.lo rdf_log.lo rdf_node_common.lo rdf_statement_common.lo rdf_node.lo rdf_statement.lo  rdf_storage_list.lo rdf_storage_hashes.lo rdf_storage_trees.lo rdf_storage_file.lo      rdf_digest_md5.lo rdf_digest_sha1.lo  rdf_hash_bdb.lo ../libltdl/libltdlc.la -L/usr/local/lib -ldb-5.3
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I/usr/local/include/db5 -I../libltdl -I/usr/local/include/db5 -I/usr/local/include/raptor2 -I/usr/local/include/rasqal -I/usr/local/include/raptor2 -DREDLAND_MODULE_PATH=\"/usr/local/lib/redland:/usr/local/lib/redland\" -DLIBRDF_INTERNAL=1 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MT librdf_storage_virtuoso_la-rdf_storage_virtuoso.lo -MD -MP -MF .deps/librdf_storage_virtuoso_la-rdf_storage_virtuoso.Tpo -c rdf_storage_virtuoso.c  -fPIC -DPIC -o .libs/librdf_storage_virtuoso_la-rdf_storage_virtuoso.o
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I/usr/local/include/db5 -I../libltdl -I/usr/local/include/db5 -I/usr/local/include/raptor2 -I/usr/local/include/rasqal -I/usr/local/include/raptor2 -DREDLAND_MODULE_PATH=\"/usr/local/lib/redland:/usr/local/lib/redland\" -DLIBRDF_INTERNAL=1 -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -MT librdf_storage_virtuoso_la-rdf_query_virtuoso.lo -MD -MP -MF .deps/librdf_storage_virtuoso_la-rdf_query_virtuoso.Tpo -c rdf_query_virtuoso.c  -fPIC -DPIC -o .libs/librdf_storage_virtuoso_la-rdf_query_virtuoso.o
libtool: link: cc -shared  -fPIC -DPIC  .libs/rdf_init.o .libs/rdf_raptor.o .libs/rdf_uri.o .libs/rdf_digest.o .libs/rdf_hash.o .libs/rdf_hash_cursor.o .libs/rdf_hash_memory.o .libs/rdf_model.o .libs/rdf_model_storage.o .libs/rdf_iterator.o .libs/rdf_concepts.o .libs/rdf_list.o .libs/rdf_storage.o .libs/rdf_storage_sql.o .libs/rdf_stream.o .libs/rdf_parser.o .libs/rdf_parser_raptor.o .libs/rdf_heuristics.o .libs/rdf_files.o .libs/rdf_utf8.o .libs/rdf_query.o .libs/rdf_query_results.o .libs/rdf_query_rasqal.o .libs/rdf_serializer.o .libs/rdf_serializer_raptor.o .libs/rdf_log.o .libs/rdf_node_common.o .libs/rdf_statement_common.o .libs/rdf_node.o .libs/rdf_statement.o .libs/rdf_storage_list.o .libs/rdf_storage_hashes.o .libs/rdf_storage_trees.o .libs/rdf_storage_file.o .libs/rdf_digest_md5.o .libs/rdf_digest_sha1.o .libs/rdf_hash_bdb.o  -Wl,--whole-archive ../libltdl/.libs/libltdlc.a -Wl,--no-whole-archive  -Wl,-rpath -Wl,/usr/local/lib -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib -lrasqal /usr/local/lib/libraptor2.so -ldb-5.3  -O2 -fstack-protector-strong -fstack-protector-strong -fstack-protector-strong   -Wl,-soname -Wl,librdf.so.0 -o .libs/librdf.so.0.0.0
rdf_storage_virtuoso.c:55:10: fatal error: 'sql.h' file not found
#include <sql.h>
         ^~~~~~~
rdf_query_virtuoso.c:53:10: fatal error: 'sql.h' file not found
#include <sql.h>
         ^~~~~~~
libtool: link: (cd ".libs" && rm -f "librdf.so.0" && ln -s "librdf.so.0.0.0" "librdf.so.0")
1 error generated.
libtool: link: (cd ".libs" && rm -f "librdf.so" && ln -s "librdf.so.0.0.0" "librdf.so")
gmake[5]: *** [Makefile:917: librdf_storage_virtuoso_la-rdf_query_virtuoso.lo] Error 1
gmake[5]: *** Waiting for unfinished jobs....
1 error generated.
libtool: link: (cd .libs/librdf.lax/libltdlc.a && ar x "/usr/ports/textproc/redland/work/redland-1.0.17/src/../libltdl/.libs/libltdlc.a")
gmake[5]: *** [Makefile:910: librdf_storage_virtuoso_la-rdf_storage_virtuoso.lo] Error 1
libtool: link: ar cru .libs/librdf.a  rdf_init.o rdf_raptor.o rdf_uri.o rdf_digest.o rdf_hash.o rdf_hash_cursor.o rdf_hash_memory.o rdf_model.o rdf_model_storage.o rdf_iterator.o rdf_concepts.o rdf_list.o rdf_storage.o rdf_storage_sql.o rdf_stream.o rdf_parser.o rdf_parser_raptor.o rdf_heuristics.o rdf_files.o rdf_utf8.o rdf_query.o rdf_query_results.o rdf_query_rasqal.o rdf_serializer.o rdf_serializer_raptor.o rdf_log.o rdf_node_common.o rdf_statement_common.o rdf_node.o rdf_statement.o rdf_storage_list.o rdf_storage_hashes.o rdf_storage_trees.o rdf_storage_file.o rdf_digest_md5.o rdf_digest_sha1.o rdf_hash_bdb.o  .libs/librdf.lax/libltdlc.a/argz.o .libs/librdf.lax/libltdlc.a/dlopen.o .libs/librdf.lax/libltdlc.a/libltdlcS.o .libs/librdf.lax/libltdlc.a/libltdlc_la-lt__alloc.o .libs/librdf.lax/libltdlc.a/libltdlc_la-lt_dlloader.o .libs/librdf.lax/libltdlc.a/libltdlc_la-lt_error.o .libs/librdf.lax/libltdlc.a/libltdlc_la-ltdl.o .libs/librdf.lax/libltdlc.a/libltdlc_la-preopen.o .libs/librdf.lax/libltdlc.a/libltdlc_la-slist.o 
libtool: link: ranlib .libs/librdf.a
libtool: link: rm -fr .libs/librdf.lax
libtool: link: ( cd ".libs" && rm -f "librdf.la" && ln -s "../librdf.la" "librdf.la" )
gmake[5]: Leaving directory '/usr/ports/textproc/redland/work/redland-1.0.17/src'
gmake[4]: *** [Makefile:978: all-recursive] Error 1
gmake[4]: Leaving directory '/usr/ports/textproc/redland/work/redland-1.0.17/src'
gmake[3]: *** [Makefile:667: all] Error 2
gmake[3]: Leaving directory '/usr/ports/textproc/redland/work/redland-1.0.17/src'
gmake[2]: *** [Makefile:624: all-recursive] Error 1
gmake[2]: Leaving directory '/usr/ports/textproc/redland/work/redland-1.0.17'
===> Compilation failed unexpectedly.
Comment 1 alt2600 2023-12-12 02:19:19 UTC
same, amd64 releng 13.2p6 live system

libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../libltdl -I/usr/local/include/db5 -I/usr/local/include/raptor2 -I/usr/local/include/rasqal -I/usr/local/include/raptor2 -DPKGDATADIR=\"/usr/local/share/redland\" -I/usr/local/include/db5 -I../libltdl -I/usr/local/include/db5 -I/usr/local/include/raptor2 -I/usr/local/include/rasqal -I/usr/local/include/raptor2 -DREDLAND_MODULE_PATH=\"/usr/local/lib/redland:/usr/local/lib/redland\" -DLIBRDF_INTERNAL=1 -O2 -pipe -march=westmere -fstack-protector-strong -fno-strict-aliasing -MT rdf_storage_hashes.lo -MD -MP -MF .deps/rdf_storage_hashes.Tpo -c rdf_storage_hashes.c -o rdf_storage_hashes.o >/dev/null 2>&1
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../libltdl -I/usr/local/include/db5 -I/usr/local/include/raptor2 -I/usr/local/include/rasqal -I/usr/local/include/raptor2 -DPKGDATADIR=\"/usr/local/share/redland\" -I/usr/local/include/db5 -I../libltdl -I/usr/local/include/db5 -I/usr/local/include/raptor2 -I/usr/local/include/rasqal -I/usr/local/include/raptor2 -DREDLAND_MODULE_PATH=\"/usr/local/lib/redland:/usr/local/lib/redland\" -DLIBRDF_INTERNAL=1 -O2 -pipe -march=westmere -fstack-protector-strong -fno-strict-aliasing -MT rdf_hash_bdb.lo -MD -MP -MF .deps/rdf_hash_bdb.Tpo -c rdf_hash_bdb.c -o rdf_hash_bdb.o >/dev/null 2>&1
rdf_query_virtuoso.c:53:10: fatal error: 'sql.h' file not found
#include <sql.h>
         ^~~~~~~
1 error generated.
gmake[4]: *** [Makefile:917: librdf_storage_virtuoso_la-rdf_query_virtuoso.lo] Error 1
gmake[4]: *** Waiting for unfinished jobs....
rdf_storage_virtuoso.c:55:10: fatal error: 'sql.h' file not found
#include <sql.h>
         ^~~~~~~
mv -f .deps/rdf_storage_list.Tpo .deps/rdf_storage_list.Plo
mv -f .deps/rdf_digest_md5.Tpo .deps/rdf_digest_md5.Plo
1 error generated.
gmake[4]: *** [Makefile:910: librdf_storage_virtuoso_la-rdf_storage_virtuoso.lo] Error 1
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I../libltdl -I/usr/local/include/db5 -I/usr/local/include/raptor2 -I/usr/local/include/rasqal -I/usr/local/include/raptor2 -DPKGDATADIR=\"/usr/local/share/redland\" -I/usr/local/include/db5 -I../libltdl -I/usr/local/include/db5 -I/usr/local/include/raptor2 -I/usr/local/include/rasqal -I/usr/local/include/raptor2 -DREDLAND_MODULE_PATH=\"/usr/local/lib/redland:/usr/local/lib/redland\" -DLIBRDF_INTERNAL=1 -O2 -pipe -march=westmere -fstack-protector-strong -fno-strict-aliasing -MT rdf_digest_sha1.lo -MD -MP -MF .deps/rdf_digest_sha1.Tpo -c rdf_digest_sha1.c -o rdf_digest_sha1.o >/dev/null 2>&1
mv -f .deps/rdf_hash_bdb.Tpo .deps/rdf_hash_bdb.Plo
mv -f .deps/rdf_storage_hashes.Tpo .deps/rdf_storage_hashes.Plo
libtool: compile:  cc -DHAVE_CONFIG_H -I. -I/usr/local/include/db5 -I../libltdl -I/usr/local/include/db5 -I/usr/local/include/raptor2 -I/usr/local/include/rasqal -I/usr/local/include/raptor2 -DREDLAND_MODULE_PATH=\"/usr/local/lib/redland:/usr/local/lib/redland\" -DLIBRDF_INTERNAL=1 -O2 -pipe -march=westmere -fstack-protector-strong -fno-strict-aliasing -I/usr/local/include -I/usr/local/include/db5 -I../libltdl -I/usr/local/include/db5 -I/usr/local/include/raptor2 -I/usr/local/include/rasqal -I/usr/local/include/raptor2 -DREDLAND_MODULE_PATH=\"/usr/local/lib/redland:/usr/local/lib/redland\" -DLIBRDF_INTERNAL=1 -O2 -pipe -march=westmere -fstack-protector-strong -fno-strict-aliasing -MT librdf_storage_sqlite_la-rdf_storage_sqlite.lo -MD -MP -MF .deps/librdf_storage_sqlite_la-rdf_storage_sqlite.Tpo -c rdf_storage_sqlite.c -o librdf_storage_sqlite_la-rdf_storage_sqlite.o >/dev/null 2>&1
mv -f .deps/rdf_digest_sha1.Tpo .deps/rdf_digest_sha1.Plo
mv -f .deps/librdf_storage_sqlite_la-rdf_storage_sqlite.Tpo .deps/librdf_storage_sqlite_la-rdf_storage_sqlite.Plo
gmake[4]: Leaving directory '/usr/ports/textproc/redland/work/redland-1.0.17/src'
gmake[3]: *** [Makefile:978: all-recursive] Error 1
gmake[3]: Leaving directory '/usr/ports/textproc/redland/work/redland-1.0.17/src'
gmake[2]: *** [Makefile:667: all] Error 2
gmake[2]: Leaving directory '/usr/ports/textproc/redland/work/redland-1.0.17/src'
gmake[1]: *** [Makefile:624: all-recursive] Error 1
gmake[1]: Leaving directory '/usr/ports/textproc/redland/work/redland-1.0.17'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
Comment 2 alt2600 2023-12-12 02:29:02 UTC
BDB knob is broken, will not build, or will not build with SQLITE option enabled, not testing knee deep in 4 LLVM and a firefox build right now... 

fixed build by turning off BDB and just using SQLITE default option. also used THREADS
Comment 3 commit-hook freebsd_committer freebsd_triage 2023-12-12 20:49:06 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1c35fdc48d6ae9ff7d417ad6b5409bdf79a67511

commit 1c35fdc48d6ae9ff7d417ad6b5409bdf79a67511
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2023-12-12 20:10:37 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2023-12-12 20:41:25 +0000

    textproc/redland: Unbreak BDB option

    Before [1] we had former port devel/virtuoso explicitly disabled as a
    pseudo-option, but this configure argument was lost in that commit. The
    seemingly buggy configure script tries to use virtuoso despite its
    non-existence.

    rdf_storage_virtuoso.c:55:10: fatal error: 'sql.h' file not found

    [1] https://cgit.freebsd.org/ports/commit/?id=134cdd54850031bfdc8202d27b1a69b2839d94bb

    PR:             275700
    Reported by:    <andy@neu.net>

 textproc/redland/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 4 Jason E. Hale freebsd_committer freebsd_triage 2023-12-12 20:49:57 UTC
Should be fixed now. Thanks for the report!
Comment 5 andy 2023-12-12 21:45:57 UTC
Hi Jason:

Thanks for fixing.


--->  ** Upgrade tasks 9: 8 done, 1 ignored, 0 skipped and 1 failed
--->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
	
	+ textproc/redland (redland-1.0.17_4 -> redland-1.0.17_5)