Re: cad/openscad fails to build on 9.3/i386

2015-03-28 Thread Dimitry Andric
On 27 Mar 2015, at 14:53, Andrea Venturoli m...@netfence.it wrote:
 I'm trying to upgrade OpensCAD to 2015.03, which was committed yesterday.
 However it fails to build.
...
 c++ -c -O2 -pipe -fno-strict-aliasing -frounding-math 
 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include 
 -I/usr/local/include -I/usr/local/include/harfbuzz 
 -I/usr/local/include/freetype2 -I/usr/local/include 
 -I/usr/local/include/freetype2 -pthread -D_THREAD_SAFE -Wall -W 
 -Wno-unused-local-typedefs -DOPENSCAD_VERSION=2015.03 -DOPENSCAD_YEAR=2015.0 
 -DOPENSCAD_MONTH=03.0 -DOPENSCAD_DAY=.0 -DENABLE_CGAL -DENABLE_OPENCSG 
 -DUSE_SCINTILLA_EDITOR -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB 
 -DQT_CORE_LIB -DQT_SHARED -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I. 
 -I/usr/local/include/eigen3 -I/usr/local/include/qt4/QtCore 
 -I/usr/local/include/qt4/QtGui -I/usr/local/include/qt4/QtOpenGL 
 -I/usr/local/include/qt4 -Isrc -I/usr/local/include/qt4 
 -Isrc/libtess2/Include -I/usr/local/include -Iobjects 
 -I/usr/local/include/qt4 -I/usr/local/include -o objects/scadlexer.o 
 src/scadlexer.cpp
 cc1plus: error: unrecognized command line option -Wno-unused-local-typedefs
 *** [objects/scadlexer.o] Error code 1

This is because upstream has unconditionally added the
-Wno-unused-local-typedefs flag, which is only supported by gcc 4.7 and
higher:

https://github.com/openscad/openscad/issues/757

Our base gcc is very old, so it does not have this flag.  It is probably
easiest to compile this port with lang/gcc, or with clang.

-Dimitry



signature.asc
Description: Message signed with OpenPGP using GPGMail


pkg-static: sqlite error while executing INSERT OR REPLACE INTO

2015-03-28 Thread O. Hartmann
I can not update/reinstall port textproc/clucene due to the following error 
message:

[...]
===  Installing for clucene-2.3.3.4_6
===   Registering installation for clucene-2.3.3.4_6
Installing clucene-2.3.3.4_6...
pkg-static: sqlite error while executing INSERT OR REPLACE INTO packages( 
origin, name,
version, comment, desc, message, arch, maintainer, www, prefix, flatsize, 
automatic,
licenselogic, mtree_id, time, manifestdigest)
VALUES( ?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10, ?11, ?12, ?13, (SELECT id FROM 
mtree
WHERE content = ?14), NOW(), ?15) in file pkgdb.c:1602: FOREIGN KEY constraint 
failed ***
Error code 70
[...]

It seems that the sql statement gets trapped in some inconsistent databasefile 
and I do
not know how to fix this problem.

How can I fix/repair this issue if related to a sqlite problem?

The system is
FreeBSD 11.0-CURRENT #2 r280457: Tue Mar 24 21:30:21 CET 2015 amd64,
the /usr/ports tree is at Revision: 382449, I use portmaster as the tool of 
choice.

Please CC me, do not subscribe this list.

Regards and thanks in advance,
Oliver


pgpaax1DXkRT0.pgp
Description: OpenPGP digital signature