You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openoffice.apache.org by Pedro Giffuni <pf...@apache.org> on 2012/01/20 15:43:58 UTC

Some errors have crept in in the BSD build.

Hi ..

We had the build mostly working with some local hacks but
lately we've seen some strange errors.

This warning should be easy to fix. When running configure
procedure:

configure: WARNING: not using cppunit
Use of uninitialized value $ENV{"TMPDIR"} in string eq at ./set_soenv line 2006.

But what is really weird is that I am getting these

____
...
Entering /usr/ports/editors/openoffice/work/ooo/main/cpputools/source/regsingleton

Making:    all_regsingleton.dpobj
In file included from /usr/local/include/libxml2/libxml/encoding.h:28:0,
                 from /usr/local/include/libxml2/libxml/parser.h:807,
                 from /usr/ports/editors/openoffice/work/ooo/main/jvmfwk/source/libxmlutil.hxx:27,
                 from /usr/ports/editors/openoffice/work/ooo/main/jvmfwk/source/libxmlutil.cxx:26:
/usr/local/include/iconv.h:114:3: error: 'mbstate_t' does not name a type

...
___________

We had already analysed this as being a C++ issue with our
version of libxml. What is strange is that this had
disappeared when updating our gbuild configuration and is
now back (apparently after Andre's changes).

Pedro.

Re: [SOURCE] CoinMP tar ball

Posted by Andre Fischer <af...@a-w-f.de>.

On 23.01.2012 10:45, Ariel Constenla-Haile wrote:
>
> Hi Andre,
>
> On Mon, Jan 23, 2012 at 09:28:53AM +0100, Andre Fischer wrote:
>> Hi Ariel,
>>
>> On 21.01.2012 14:19, Ariel Constenla-Haile wrote:
>>>
>>> Hi Andre,
>>>
>>> On Fri, Jan 20, 2012 at 05:00:31PM +0100, Andre Fischer wrote:
>>>> BTW: I just saw that I had not checked in the CoinMP tar ball, yet.
>>>> It got lost in the process of transplanting my changes from git to
>>>> svn. Now it's there.
>>>
>>> any reason why you didn't take the sources from
>>> http://www.coin-or.org/download/source/CoinMP/
>>>
>>> http://www.coin-or.org/download/source/CoinMP/CoinMP-1.6.0.tgz
>>> seems to be the official release, 4 MB smaller that the one checked in
>>> as it does not have .svn folders.
>>
>> I did not see the link to the tarball directory on
>> https://projects.coin-or.org/CoinMP until today.  The download
>> section only mentions the SVN. Which is what I put into the archive.
>
>
> it looks as they have to entry points (like the SouceForge projects):
>
> * http://www.coin-or.org/index.html
>    with http://www.coin-or.org/download.html
>
> * https://projects.coin-or.org/CoinMP
>
>> I will have to check why the tgz is smaller than the tar.bz2.
>
> I did a diff and all I got where the .svn folders.

Argh.  That explains it.

OK, I have replaced the tarball with the one from the CoinMP website.

-Andre

Re: [SOURCE] CoinMP tar ball

Posted by Ariel Constenla-Haile <ar...@apache.org>.
Hi Andre,

On Mon, Jan 23, 2012 at 09:28:53AM +0100, Andre Fischer wrote:
> Hi Ariel,
> 
> On 21.01.2012 14:19, Ariel Constenla-Haile wrote:
> >
> >Hi Andre,
> >
> >On Fri, Jan 20, 2012 at 05:00:31PM +0100, Andre Fischer wrote:
> >>BTW: I just saw that I had not checked in the CoinMP tar ball, yet.
> >>It got lost in the process of transplanting my changes from git to
> >>svn. Now it's there.
> >
> >any reason why you didn't take the sources from
> >http://www.coin-or.org/download/source/CoinMP/
> >
> >http://www.coin-or.org/download/source/CoinMP/CoinMP-1.6.0.tgz
> >seems to be the official release, 4 MB smaller that the one checked in
> >as it does not have .svn folders.
> 
> I did not see the link to the tarball directory on
> https://projects.coin-or.org/CoinMP until today.  The download
> section only mentions the SVN. Which is what I put into the archive.


it looks as they have to entry points (like the SouceForge projects):

* http://www.coin-or.org/index.html
  with http://www.coin-or.org/download.html

* https://projects.coin-or.org/CoinMP

> I will have to check why the tgz is smaller than the tar.bz2.

I did a diff and all I got where the .svn folders.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Re: [SOURCE] CoinMP tar ball

Posted by Andre Fischer <af...@a-w-f.de>.
Hi Ariel,

On 21.01.2012 14:19, Ariel Constenla-Haile wrote:
>
> Hi Andre,
>
> On Fri, Jan 20, 2012 at 05:00:31PM +0100, Andre Fischer wrote:
>> BTW: I just saw that I had not checked in the CoinMP tar ball, yet.
>> It got lost in the process of transplanting my changes from git to
>> svn. Now it's there.
>
> any reason why you didn't take the sources from
> http://www.coin-or.org/download/source/CoinMP/
>
> http://www.coin-or.org/download/source/CoinMP/CoinMP-1.6.0.tgz
> seems to be the official release, 4 MB smaller that the one checked in
> as it does not have .svn folders.

I did not see the link to the tarball directory on 
https://projects.coin-or.org/CoinMP until today.  The download section 
only mentions the SVN. Which is what I put into the archive.

I will have to check why the tgz is smaller than the tar.bz2.

Thanks for link,
Andre

R: [SOURCE] CoinMP tar ball (was: Re: Some errors have crept in in the BSD build.)

Posted by Pedro Giffuni <pf...@apache.org>.
--- Sab 21/1/12, Ariel Constenla-Haile <ar...@apache.org> ha scritto:
...
> 
...
> any reason why you didn't take the sources from
> http://www.coin-or.org/download/source/CoinMP/
> 
> http://www.coin-or.org/download/source/CoinMP/CoinMP-1.6.0.tgz
> seems to be the official release, 4 MB smaller that the one
> checked in as it does not have .svn folders.
> 

Hmm.. perhaps *that* was what Andre was asking me before.

We use that tarball for FreeBSD's package. You many need
this patch to build:
http://www.freebsd.org/cgi/cvsweb.cgi/ports/math/coinmp/files/patch-Cbc__src__CbcSolver.cpp

Pedro.


> 
> Regards
> -- 
> Ariel Constenla-Haile
> La Plata, Argentina
> 

[SOURCE] CoinMP tar ball (was: Re: Some errors have crept in in the BSD build.)

Posted by Ariel Constenla-Haile <ar...@apache.org>.
Hi Andre, 

On Fri, Jan 20, 2012 at 05:00:31PM +0100, Andre Fischer wrote:
> BTW: I just saw that I had not checked in the CoinMP tar ball, yet.
> It got lost in the process of transplanting my changes from git to
> svn. Now it's there.

any reason why you didn't take the sources from
http://www.coin-or.org/download/source/CoinMP/

http://www.coin-or.org/download/source/CoinMP/CoinMP-1.6.0.tgz
seems to be the official release, 4 MB smaller that the one checked in
as it does not have .svn folders.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Re: Some errors have crept in in the BSD build.

Posted by Pedro Giffuni <pf...@apache.org>.

--- Ven 20/1/12, Andre Fischer <af...@a-w-f.de> ha scritto:
...
> > http://people.apache.org/~pfg/build-fbsd9-log
> 
> I will see, if I can find something.  But due to my
> lacking knowledge of BSD I have not much hope.
> 

Actually BSD doesn't have anything to do with it.
libxml is linked with an externally packaged icu
in /usr/local, and the newer icu pulls in 
international support which breaks it.

But let me play a little bit more with it ;).

> >
> > BTW: I didn't enable CoinMP: it would be really nice
> if
> > there were a way to use the prepackaged library. I
> made
> > the BSD package specifically for AOO.
> 
> You use the prepackaged library to avoid the inclusion of
> cat-B source 
> code?  Do you have a link to that library?

FreeBSD's CoinMP binary package will install these
files in /usr/local:


bin/cbc
bin/clp
include/coin/CbcBranchAllDifferent.hpp
include/coin/CbcBranchDecision.hpp
include/coin/CbcBranchDefaultDecision.hpp
include/coin/CbcBranchToFixLots.hpp
include/coin/CbcBranchingObject.hpp
include/coin/CbcClique.hpp
include/coin/CbcCompare.hpp
include/coin/CbcCompareDefault.hpp
include/coin/CbcCompareDepth.hpp
include/coin/CbcCompareEstimate.hpp
include/coin/CbcCompareObjective.hpp
include/coin/CbcConsequence.hpp
include/coin/CbcCutModifier.hpp
include/coin/CbcCutSubsetModifier.hpp
include/coin/CbcDummyBranchingObject.hpp
include/coin/CbcFixVariable.hpp
include/coin/CbcFollowOn.hpp
include/coin/CbcFullNodeInfo.hpp
include/coin/CbcGeneral.hpp
include/coin/CbcGeneralDepth.hpp
include/coin/CbcHeuristicDINS.hpp
include/coin/CbcHeuristicRENS.hpp
include/coin/CbcHeuristicVND.hpp
include/coin/CbcNWay.hpp
include/coin/CbcNodeInfo.hpp
include/coin/CbcObject.hpp
include/coin/CbcObjectUpdateData.hpp
include/coin/CbcOrClpParam.cpp
include/coin/CbcOrClpParam.hpp
include/coin/CbcPartialNodeInfo.hpp
include/coin/CbcSOS.hpp
include/coin/CbcSimpleInteger.hpp
include/coin/CbcSimpleIntegerDynamicPseudoCost.hpp
include/coin/CbcSimpleIntegerPseudoCost.hpp
include/coin/CbcSubProblem.hpp
include/coin/ClpConfig.h
include/coin/Clp_C_Interface.h
include/coin/ClpCholeskyBase.hpp
include/coin/ClpCholeskyDense.hpp
include/coin/ClpConstraint.hpp
include/coin/ClpConstraintLinear.hpp
include/coin/ClpConstraintQuadratic.hpp
include/coin/ClpNode.hpp
include/coin/ClpDualRowDantzig.hpp
include/coin/ClpDualRowPivot.hpp
include/coin/ClpDualRowSteepest.hpp
include/coin/ClpDummyMatrix.hpp
include/coin/ClpDynamicExampleMatrix.hpp
include/coin/ClpDynamicMatrix.hpp
include/coin/ClpEventHandler.hpp
include/coin/ClpFactorization.hpp
include/coin/ClpGubDynamicMatrix.hpp
include/coin/ClpGubMatrix.hpp
include/coin/ClpInterior.hpp
include/coin/ClpLinearObjective.hpp
include/coin/ClpMatrixBase.hpp
include/coin/ClpMessage.hpp
include/coin/ClpModel.hpp
include/coin/ClpNetworkMatrix.hpp
include/coin/ClpNonLinearCost.hpp
include/coin/ClpObjective.hpp
include/coin/ClpPackedMatrix.hpp
include/coin/ClpPdcoBase.hpp
include/coin/ClpPlusMinusOneMatrix.hpp
include/coin/ClpParameters.hpp
include/coin/ClpPresolve.hpp
include/coin/ClpPrimalColumnDantzig.hpp
include/coin/ClpPrimalColumnPivot.hpp
include/coin/ClpPrimalColumnSteepest.hpp
include/coin/ClpQuadraticObjective.hpp
include/coin/ClpSimplex.hpp
include/coin/ClpSimplexNonlinear.hpp
include/coin/ClpSimplexOther.hpp
include/coin/ClpSimplexPrimal.hpp
include/coin/ClpSolve.hpp
include/coin/CoinAlloc.hpp
include/coin/CoinUtilsConfig.h
include/coin/Coin_C_defines.h
include/coin/CoinBuild.hpp
include/coin/CoinDenseVector.hpp
include/coin/CoinDistance.hpp
include/coin/CoinError.hpp
include/coin/CoinFactorization.hpp
include/coin/CoinSimpFactorization.hpp
include/coin/CoinDenseFactorization.hpp
include/coin/CoinFileIO.hpp
include/coin/CoinFinite.hpp
include/coin/CoinFloatEqual.hpp
include/coin/CoinHelperFunctions.hpp
include/coin/CoinIndexedVector.hpp
include/coin/CoinLpIO.hpp
include/coin/CoinMessage.hpp
include/coin/CoinMessageHandler.hpp
include/coin/CoinModel.hpp
include/coin/CoinStructuredModel.hpp
include/coin/CoinModelUseful.hpp
include/coin/CoinMpsIO.hpp
include/coin/CoinOslFactorization.hpp
include/coin/CoinPackedMatrix.hpp
include/coin/CoinPackedVector.hpp
include/coin/CoinPackedVectorBase.hpp
include/coin/CoinParam.hpp
include/coin/CoinPragma.hpp
include/coin/CoinPresolveDoubleton.hpp
include/coin/CoinPresolveDual.hpp
include/coin/CoinPresolveDupcol.hpp
include/coin/CoinPresolveEmpty.hpp
include/coin/CoinPresolveFixed.hpp
include/coin/CoinPresolveForcing.hpp
include/coin/CoinPresolveImpliedFree.hpp
include/coin/CoinPresolveIsolated.hpp
include/coin/CoinPresolveMatrix.hpp
include/coin/CoinPresolvePsdebug.hpp
include/coin/CoinPresolveSingleton.hpp
include/coin/CoinPresolveSubst.hpp
include/coin/CoinPresolveTighten.hpp
include/coin/CoinPresolveTripleton.hpp
include/coin/CoinPresolveUseless.hpp
include/coin/CoinPresolveZeros.hpp
include/coin/CoinSearchTree.hpp
include/coin/CoinShallowPackedVector.hpp
include/coin/CoinSignal.hpp
include/coin/CoinSmartPtr.hpp
include/coin/CoinSnapshot.hpp
include/coin/CoinSort.hpp
include/coin/CoinTime.hpp
include/coin/CoinTypes.hpp
include/coin/CoinUtility.hpp
include/coin/CoinWarmStart.hpp
include/coin/CoinWarmStartBasis.hpp
include/coin/CoinWarmStartVector.hpp
include/coin/CoinWarmStartDual.hpp
include/coin/CoinWarmStartPrimalDual.hpp
include/coin/Idiot.hpp
include/coin/OsiConfig.h
include/coin/OsiAuxInfo.hpp
include/coin/OsiBranchingObject.hpp
include/coin/OsiChooseVariable.hpp
include/coin/OsiColCut.hpp
include/coin/OsiCollections.hpp
include/coin/OsiCut.hpp
include/coin/OsiCuts.hpp
include/coin/OsiPresolve.hpp
include/coin/OsiSolverBranch.hpp
include/coin/OsiSolverInterface.hpp
include/coin/OsiSolverParameters.hpp
include/coin/OsiRowCut.hpp
include/coin/OsiRowCutDebugger.hpp
include/coin/OsiCbcSolverInterface.hpp
include/coin/OsiClpSolverInterface.hpp
include/coin/OsiUnitTests.hpp
include/coin/CglClique.hpp
include/coin/CglMixedIntegerRounding.hpp
include/coin/CglDuplicateRow.hpp
include/coin/CglMixedIntegerRounding2.hpp
include/coin/CglTwomir.hpp
include/coin/CglKnapsackCover.hpp
include/coin/CglSimpleRounding.hpp
include/coin/CglLiftAndProject.hpp
include/coin/CglFlowCover.hpp
include/coin/CglPreProcess.hpp
include/coin/CglLandP.hpp
include/coin/CglLandPValidator.hpp
include/coin/CglProbing.hpp
include/coin/CglOddHole.hpp
include/coin/CglGomory.hpp
include/coin/CglAllDifferent.hpp
include/coin/CglResidualCapacity.hpp
include/coin/CglRedSplit.hpp
include/coin/CglRedSplitParam.hpp
include/coin/CglConfig.h
include/coin/CglCutGenerator.hpp
include/coin/CglMessage.hpp
include/coin/CglStored.hpp
include/coin/CglParam.hpp
include/coin/CglTreeInfo.hpp
include/coin/CbcConfig.h
include/coin/Cbc_C_Interface.h
include/coin/CbcBranchActual.hpp
include/coin/CbcBranchBase.hpp
include/coin/CbcBranchDynamic.hpp
include/coin/CbcBranchLotsize.hpp
include/coin/CbcBranchCut.hpp
include/coin/CbcCompareActual.hpp
include/coin/CbcCompareBase.hpp
include/coin/CbcCutGenerator.hpp
include/coin/CbcFathom.hpp
include/coin/CbcEventHandler.hpp
include/coin/CbcFeasibilityBase.hpp
include/coin/CbcHeuristic.hpp
include/coin/CbcHeuristicDive.hpp
include/coin/CbcHeuristicDiveCoefficient.hpp
include/coin/CbcHeuristicDiveFractional.hpp
include/coin/CbcHeuristicDiveGuided.hpp
include/coin/CbcHeuristicDiveLineSearch.hpp
include/coin/CbcHeuristicDivePseudoCost.hpp
include/coin/CbcHeuristicDiveVectorLength.hpp
include/coin/CbcHeuristicFPump.hpp
include/coin/CbcHeuristicGreedy.hpp
include/coin/CbcHeuristicLocal.hpp
include/coin/CbcHeuristicPivotAndFix.hpp
include/coin/CbcHeuristicRandRound.hpp
include/coin/CbcHeuristicRINS.hpp
include/coin/CbcMessage.hpp
include/coin/CbcModel.hpp
include/coin/CbcNode.hpp
include/coin/CbcStrategy.hpp
include/coin/CbcSolver.hpp
include/coin/CbcTree.hpp
include/coin/CbcLinked.hpp
include/coin/CbcTreeLocal.hpp
include/coin/ClpConstraintAmpl.hpp
include/coin/ClpAmplObjective.hpp
include/coin/CoinMPConfig.h
include/coin/CoinMP.h
lib/libCbc.la
lib/libCbc.so
lib/libCbc.so.10
lib/libCbcSolver.la
lib/libCbcSolver.so
lib/libCbcSolver.so.10
lib/libCgl.la
lib/libCgl.so
lib/libCgl.so.8
lib/libClp.la
lib/libClp.so
lib/libClp.so.12
lib/libCoinMP.la
lib/libCoinMP.so
lib/libCoinMP.so.7
lib/libCoinUtils.la
lib/libCoinUtils.so
lib/libCoinUtils.so.11
lib/libOsi.la
lib/libOsi.so
lib/libOsi.so.11
lib/libOsiCbc.la
lib/libOsiCbc.so
lib/libOsiCbc.so.10
lib/libOsiClp.la
lib/libOsiClp.so
lib/libOsiClp.so.12
lib/libOsiCommonTests.la
lib/libOsiCommonTests.so
lib/libOsiCommonTests.so.11

I guess anything you need is there? :)

See, the nice thing of having this packaged externally is
that I get many eyes looking at the code and constant
testing.

cheers,

Pedro.

Re: Some errors have crept in in the BSD build.

Posted by Andre Fischer <af...@a-w-f.de>.
On 20.01.2012 16:27, Pedro Giffuni wrote:
>
>
> --- Ven 20/1/12, Andre Fischer ha scritto:
>
[...]
>> Sorry.  I am not away of any changes I made that could
>> influence the building of libxml2.
>
> No problem, I was considering this could resurface anytime.
> I reopenend BZ 118574 which explains the problem.
>
>> Is there anything I can do to help?
>>
> Any insight would be good.
>
> I have produced a log here:
>
> http://people.apache.org/~pfg/build-fbsd9-log

I will see, if I can find something.  But due to my lacking knowledge of 
BSD I have not much hope.

>
> BTW: I didn't enable CoinMP: it would be really nice if
> there were a way to use the prepackaged library. I made
> the BSD package specifically for AOO.

You use the prepackaged library to avoid the inclusion of cat-B source 
code?  Do you have a link to that library?  I am asking to understand 
what options there are to make a small hack to use it.  Something along 
the lines of:
- change main/ooo.lst to load the prepackaged CoinMP instead of its 
source tar ball.
- turn off building in ext_libraries/coinmp
- but still do the deploy step in ext_libraries/coinmp


BTW: I just saw that I had not checked in the CoinMP tar ball, yet.  It 
got lost in the process of transplanting my changes from git to svn. 
Now it's there.

-Andre

Re: Some errors have crept in in the BSD build.

Posted by Pedro Giffuni <pf...@apache.org>.

--- Ven 20/1/12, Andre Fischer ha scritto:

> Data: Venerdì 20 gennaio 2012, 10:11
> Hi,
> 
> 
> On 20.01.2012 15:43, Pedro Giffuni wrote:
> > Hi ..
> >
> > We had the build mostly working with some local hacks
> but
> > lately we've seen some strange errors.
> >
> > This warning should be easy to fix. When running
> configure
> > procedure:
> >
> > configure: WARNING: not using cppunit
> > Use of uninitialized value $ENV{"TMPDIR"} in string eq
> at ./set_soenv line 2006.
> 
> Maybe something like:
> 

I'll check this soon. I am generating a complete log now.

> 
> Sorry.  I am not away of any changes I made that could
> influence the building of libxml2.

No problem, I was considering this could resurface anytime.
I reopenend BZ 118574 which explains the problem. 

> Is there anything I can do to help?
> 
Any insight would be good.

I have produced a log here:

http://people.apache.org/~pfg/build-fbsd9-log

BTW: I didn't enable CoinMP: it would be really nice if
there were a way to use the prepackaged library. I made
the BSD package specifically for AOO.

Pedro.



Re: Some errors have crept in in the BSD build.

Posted by Andre Fischer <af...@a-w-f.de>.
Hi,


On 20.01.2012 15:43, Pedro Giffuni wrote:
> Hi ..
>
> We had the build mostly working with some local hacks but
> lately we've seen some strange errors.
>
> This warning should be easy to fix. When running configure
> procedure:
>
> configure: WARNING: not using cppunit
> Use of uninitialized value $ENV{"TMPDIR"} in string eq at ./set_soenv line 2006.

Maybe something like:

diff --git a/main/set_soenv.in b/main/set_soenv.in
old mode 100644
new mode 100755
index 0011cce..d4d9ebf
--- a/main/set_soenv.in
+++ b/main/set_soenv.in
@@ -2003,7 +2003,7 @@ ToFile( "XAU_LIBS",          "@XAU_LIBS@", 
  "e" );
  ToFile( "GXX_INCLUDE_PATH",  PathFormat("@GXX_INCLUDE_PATH@"), "e" );
  ToFile( "COMMON_BUILD_TOOLS",$COMMON_BUILD_TOOLS,  "e" );
  if ($platform !~ m/cygwin|os2/) {
-   if ( $ENV{"TMPDIR"} eq "" ) {
+   if ( !defined $ENV{"TMPDIR"} || $ENV{"TMPDIR"} eq "" ) {
        ToFile( "TMPDIR",      "/tmp",               "e" );
     } else {
        ToFile( "TMPDIR",      "$ENV{'TMPDIR'}",     "e" );

>
> But what is really weird is that I am getting these
>
> ____
> ...
> Entering /usr/ports/editors/openoffice/work/ooo/main/cpputools/source/regsingleton
>
> Making:    all_regsingleton.dpobj
> In file included from /usr/local/include/libxml2/libxml/encoding.h:28:0,
>                   from /usr/local/include/libxml2/libxml/parser.h:807,
>                   from /usr/ports/editors/openoffice/work/ooo/main/jvmfwk/source/libxmlutil.hxx:27,
>                   from /usr/ports/editors/openoffice/work/ooo/main/jvmfwk/source/libxmlutil.cxx:26:
> /usr/local/include/iconv.h:114:3: error: 'mbstate_t' does not name a type
>
> ...
> ___________
>
> We had already analysed this as being a C++ issue with our
> version of libxml. What is strange is that this had
> disappeared when updating our gbuild configuration and is
> now back (apparently after Andre's changes).

Sorry.  I am not away of any changes I made that could influence the 
building of libxml2.
Is there anything I can do to help?

-Andre

>
> Pedro.