List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:December 4 2007 2:09am
Subject:Re: Building ndb-connectors Fails.
View as plain text  
Monty Taylor wrote:

>> Also, note that in recent binary releases (5.1.22/3), libndbclient.so
>> is not included. So you have to build from source. This outputs the
>> headers and libraries into mysql/lib/mysql and mysql/include/mysql
>> subdirs. I don't think you check for them. One option would be to
>> allow users specify --with-mysql-include= and --with-mysql-lib= or to
>> check if it's a source or binary distribution and change the include
>> and lib dirs in the script.

Also thought I'd mention that I have reported this as a bug and it
should be corrected in the future.

> Ah yes, the joys of the extra mysql dir. We actually depend on
> mysql_config... so --with-mysql should verbosely be described as
> "basedir containing mysql_config"
> 
> You are right though - other than trusting mysql_config and then doing
> the libndbclient test above, we're not doing anything to attempt to
> adjust for errors, which we really need to do. Sounds like good work for
> the upcoming flight to me!
> 
>>
>>
>> Monty Taylor skrev:
>>> Also, while I'm at it...
>>>
>>> there's an outstanding bug in the devel branch (fixed in telco) with tc
>>> selection hints. The bug is that they don't work. It's fixed in telco
>>> because the mechanism for passing them in changed... I'm hoping that
>>> patch hits the mainline soon because I'm trying to wait until its there
>>> before fixing it in the devel branch so I don't have to do it twice.
>>>
>>> Everything else should work fine, though. If it doesn't, it's a bug.
>>>
>>> Monty
>>>
>>> Jim Dowling wrote:
>>>  
>>>> This was the devel branch downloaded yesterday afternoon (27 Nov,
>>>> 2007).
>>>>
>>>> Jim
>>>>
>>>> Monty Taylor wrote:
>>>>   
>>>>> Hi!
>>>>>
>>>>> It looks like you are being affected by a bug that I have fixed but
> I
>>>>> think I might not have uploaded the tarball yet...
>>>>>
>>>>> Can you tell me the version you have?
>>>>>
>>>>> Monty
>>>>>
>>>>> Hasnain Muhammad Iqbal wrote:
>>>>>  
>>>>>     
>>>>>> Hi,
>>>>>>
>>>>>> I am building ndb-connector for JAVA and the build fails. I am
>>>>>> attaching the
>>>>>> trace of the failure. I am a new to it and I was hoping that
>>>>>> someone can
>>>>>> help me out on it.
>>>>>> Thank you in anticipation.
>>>>>>
>>>>>> ./Source/Swig -I../Source/Modules -g -O2 -Wall -W -ansi -pedantic
> -MT
>>>>>> Swig/scanner.o -MD -MP -MF "$depbase.Tpo" -c -o Swig/scanner.o
>>>>>> Swig/scanner.c; \
>>>>>>         then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f
>>>>>> "$depbase.Tpo";
>>>>>> exit 1; fi
>>>>>> depbase=`echo Swig/stype.o | sed
> 's|[^/]*$|.deps/&|;s|\.o$||'`; \
>>>>>>         if gcc -DHAVE_CONFIG_H     -I../Source/Include
>>>>>> -I../Source/CParse
>>>>>> -I../Source/Include -I../Source/DOH -I../Source/CParse
>>>>>> -I../Source/Preprocessor -I../Source/Swig -I../Source/Modules -g
> -O2
>>>>>> -Wall
>>>>>> -W -ansi -pedantic -MT Swig/stype.o -MD -MP -MF "$depbase.Tpo" -c
> -o
>>>>>> Swig/stype.o Swig/stype.c; \
>>>>>>         then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f
>>>>>> "$depbase.Tpo";
>>>>>> exit 1; fi
>>>>>> depbase=`echo Swig/symbol.o | sed
> 's|[^/]*$|.deps/&|;s|\.o$||'`; \
>>>>>>         if gcc -DHAVE_CONFIG_H     -I../Source/Include
>>>>>> -I../Source/CParse
>>>>>> -I../Source/Include -I../Source/DOH -I../Source/CParse
>>>>>> -I../Source/Preprocessor -I../Source/Swig -I../Source/Modules -g
> -O2
>>>>>> -Wall
>>>>>> -W -ansi -pedantic -MT Swig/symbol.o -MD -MP -MF "$depbase.Tpo"
> -c -o
>>>>>> Swig/symbol.o Swig/symbol.c; \
>>>>>>         then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f
>>>>>> "$depbase.Tpo";
>>>>>> exit 1; fi
>>>>>> depbase=`echo Swig/tree.o | sed
> 's|[^/]*$|.deps/&|;s|\.o$||'`; \
>>>>>>         if gcc -DHAVE_CONFIG_H     -I../Source/Include
>>>>>> -I../Source/CParse
>>>>>> -I../Source/Include -I../Source/DOH -I../Source/CParse
>>>>>> -I../Source/Preprocessor -I../Source/Swig -I../Source/Modules -g
> -O2
>>>>>> -Wall
>>>>>> -W -ansi -pedantic -MT Swig/tree.o -MD -MP -MF "$depbase.Tpo" -c
> -o
>>>>>> Swig/tree.o Swig/tree.c; \
>>>>>>         then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f
>>>>>> "$depbase.Tpo";
>>>>>> exit 1; fi
>>>>>> depbase=`echo Swig/typeobj.o | sed
> 's|[^/]*$|.deps/&|;s|\.o$||'`; \
>>>>>>         if gcc -DHAVE_CONFIG_H     -I../Source/Include
>>>>>> -I../Source/CParse
>>>>>> -I../Source/Include -I../Source/DOH -I../Source/CParse
>>>>>> -I../Source/Preprocessor -I../Source/Swig -I../Source/Modules -g
> -O2
>>>>>> -Wall
>>>>>> -W -ansi -pedantic -MT Swig/typeobj.o -MD -MP -MF "$depbase.Tpo"
>>>>>> -c -o
>>>>>> Swig/typeobj.o Swig/typeobj.c; \
>>>>>>         then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f
>>>>>> "$depbase.Tpo";
>>>>>> exit 1; fi
>>>>>> depbase=`echo Swig/typemap.o | sed
> 's|[^/]*$|.deps/&|;s|\.o$||'`; \
>>>>>>         if gcc -DHAVE_CONFIG_H     -I../Source/Include
>>>>>> -I../Source/CParse
>>>>>> -I../Source/Include -I../Source/DOH -I../Source/CParse
>>>>>> -I../Source/Preprocessor -I../Source/Swig -I../Source/Modules -g
> -O2
>>>>>> -Wall
>>>>>> -W -ansi -pedantic -MT Swig/typemap.o -MD -MP -MF "$depbase.Tpo"
>>>>>> -c -o
>>>>>> Swig/typemap.o Swig/typemap.c; \
>>>>>>         then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f
>>>>>> "$depbase.Tpo";
>>>>>> exit 1; fi
>>>>>> depbase=`echo Swig/typesys.o | sed
> 's|[^/]*$|.deps/&|;s|\.o$||'`; \
>>>>>>         if gcc -DHAVE_CONFIG_H     -I../Source/Include
>>>>>> -I../Source/CParse
>>>>>> -I../Source/Include -I../Source/DOH -I../Source/CParse
>>>>>> -I../Source/Preprocessor -I../Source/Swig -I../Source/Modules -g
> -O2
>>>>>> -Wall
>>>>>> -W -ansi -pedantic -MT Swig/typesys.o -MD -MP -MF "$depbase.Tpo"
>>>>>> -c -o
>>>>>> Swig/typesys.o Swig/typesys.c; \
>>>>>>         then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f
>>>>>> "$depbase.Tpo";
>>>>>> exit 1; fi
>>>>>> depbase=`echo Swig/warn.o | sed
> 's|[^/]*$|.deps/&|;s|\.o$||'`; \
>>>>>>         if gcc -DHAVE_CONFIG_H     -I../Source/Include
>>>>>> -I../Source/CParse
>>>>>> -I../Source/Include -I../Source/DOH -I../Source/CParse
>>>>>> -I../Source/Preprocessor -I../Source/Swig -I../Source/Modules -g
> -O2
>>>>>> -Wall
>>>>>> -W -ansi -pedantic -MT Swig/warn.o -MD -MP -MF "$depbase.Tpo" -c
> -o
>>>>>> Swig/warn.o Swig/warn.c; \
>>>>>>         then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f
>>>>>> "$depbase.Tpo";
>>>>>> exit 1; fi
>>>>>> depbase=`echo Swig/wrapfunc.o | sed
> 's|[^/]*$|.deps/&|;s|\.o$||'`; \
>>>>>>         if gcc -DHAVE_CONFIG_H     -I../Source/Include
>>>>>> -I../Source/CParse
>>>>>> -I../Source/Include -I../Source/DOH -I../Source/CParse
>>>>>> -I../Source/Preprocessor -I../Source/Swig -I../Source/Modules -g
> -O2
>>>>>> -Wall
>>>>>> -W -ansi -pedantic -MT Swig/wrapfunc.o -MD -MP -MF
> "$depbase.Tpo"
>>>>>> -c -o
>>>>>> Swig/wrapfunc.o Swig/wrapfunc.c; \
>>>>>>         then mv -f "$depbase.Tpo" "$depbase.Po"; else rm -f
>>>>>> "$depbase.Tpo";
>>>>>> exit 1; fi
>>>>>> g++ -I../Source/Include -I../Source/CParse -I../Source/Include
>>>>>> -I../Source/DOH -I../Source/CParse -I../Source/Preprocessor
>>>>>> -I../Source/Swig
>>>>>> -I../Source/Modules  -g -O2 -Wall -W -ansi -pedantic   -o eswig
>>>>>> CParse/cscanner.o CParse/parser.o CParse/templ.o CParse/util.o
>>>>>> DOH/base.o
>>>>>> DOH/file.o DOH/fio.o DOH/hash.o DOH/list.o DOH/memory.o
> DOH/string.o
>>>>>> DOH/void.o Modules/allegrocl.o Modules/allocate.o
> Modules/browser.o
>>>>>> Modules/cffi.o Modules/chicken.o Modules/clisp.o
> Modules/contract.o
>>>>>> Modules/csharp.o Modules/directors.o Modules/emit.o
> Modules/guile.o
>>>>>> Modules/java.o Modules/lang.o Modules/lua.o Modules/main.o
>>>>>> Modules/modula3.o
>>>>>> Modules/module.o Modules/mzscheme.o Modules/ocaml.o
>>>>>> Modules/overload.o
>>>>>> Modules/perl5.o Modules/php4.o Modules/pike.o Modules/python.o
>>>>>> Modules/r.o
>>>>>> Modules/ruby.o Modules/s-exp.o Modules/swigmain.o Modules/tcl8.o
>>>>>> Modules/typepass.o Modules/uffi.o Modules/utils.o Modules/xml.o
>>>>>> Preprocessor/cpp.o Preprocessor/expr.o Swig/cwrap.o
> Swig/deprecate.o
>>>>>> Swig/error.o Swig/fragment.o Swig/getopt.o Swig/include.o
> Swig/misc.o
>>>>>> Swig/naming.o Swig/parms.o Swig/scanner.o Swig/stype.o
> Swig/symbol.o
>>>>>> Swig/tree.o Swig/typeobj.o Swig/typemap.o Swig/typesys.o
> Swig/warn.o
>>>>>> Swig/wrapfunc.o  -ldl
>>>>>> make[5]: *** No rule to make target `/eswig', needed by
>>>>>> `all-local'. Stop.
>>>>>> make[5]: Leaving directory
> `/home/hasnain/opt/devel/swig/SWIG/Source'
>>>>>> make[4]: *** [all] Error 2
>>>>>> make[4]: Leaving directory
> `/home/hasnain/opt/devel/swig/SWIG/Source'
>>>>>> make[3]: *** [source] Error 2
>>>>>> make[3]: Leaving directory `/home/hasnain/opt/devel/swig/SWIG'
>>>>>> make[2]: *** [all-local] Error 2
>>>>>> make[2]: Leaving directory `/home/hasnain/opt/devel/swig'
>>>>>> make[1]: *** [all-recursive] Error 1
>>>>>> make[1]: Leaving directory `/home/hasnain/opt/devel'
>>>>>> make: *** [all] Error 2
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks and Regards,
>>>>>> Hasnain M Iqbal
>>>>>> M.Sc Software Engineering in Distributed System
>>>>>> KTH - Royal Institute of Technology
>>>>>>
>>>>>> For what shall it profit a man, if he shall gain the whole world,
> and
>>>>>> lose
>>>>>> his own soul?
>>>>>>
>>>>>>             
>>>>>         
>>>>     
>>>
>>>   
>>
> 
> 

Thread
Building ndb-connectors Fails.Hasnain Muhammad Iqbal27 Nov
  • Re: Building ndb-connectors Fails.Monty Taylor28 Nov
    • Re: Building ndb-connectors Fails.Jim Dowling28 Nov
      • Re: Building ndb-connectors Fails.Monty Taylor28 Nov
      • Re: Building ndb-connectors Fails.Monty Taylor28 Nov
      • Re: Building ndb-connectors Fails.Monty Taylor28 Nov
        • Re: Building ndb-connectors Fails.Jim Dowling28 Nov
          • Re: Building ndb-connectors Fails.Monty Taylor28 Nov
            • Re: Building ndb-connectors Fails.Monty Taylor4 Dec