hi, Mohit,

I download the boost 1.48.0 source code, and compile it and install it to
/usr/local/boost_1_48_0/

Then i compile drizzle as below:
Shell>./config/autorun.sh
....
autoreconf: running: /usr/bin/autoheader --force --warnings=all
autoreconf: running: automake --add-missing --copy --force-missing
--warnings=all
autoreconf: Leaving directory `.'

Shell>./configure --prefix=`pwd`/debug
--with-lib-prefix=/usr/local/boost_1_48_0/ --with-debug
....
Configuration summary for drizzle version 7.1 drizzle7.1

   * Installation prefix:       /home/louis/src/mysql/drizzle7.1/debug
   * System type:               unknown-linux-gnu
   * pandora-build version:     0.175
   * Host CPU:                  x86_64
   * C Compiler:                gcc (Ubuntu/Linaro 4.5.4-1ubuntu2) 4.5.4
   * C++ Compiler:              g++ (Ubuntu/Linaro 4.5.4-1ubuntu2) 4.5.4
   * Assertions enabled:        yes
   * Debug enabled:             yes
   * Profiling enabled:         no
   * Coverage enabled:          no
   * Warnings as failure:       yes


Shell>make
....
cc1plus: warnings being treated as errors
In file included from
/usr/local/boost_1_48_0//include/boost/unordered/unordered_map.hpp:17:0,
                 from
/usr/local/boost_1_48_0//include/boost/unordered_map.hpp:16,
                 from ./drizzled/error.h:24,
                 from drizzled/charset.cc:19:
/usr/local/boost_1_48_0//include/boost/unordered/detail/allocator_helpers.hpp:29:5:
error: "BOOST_UNORDERED_USE_ALLOCATOR_TRAITS" is not defined
/usr/local/boost_1_48_0//include/boost/unordered/detail/allocator_helpers.hpp:193:5:
error: "BOOST_UNORDERED_USE_ALLOCATOR_TRAITS" is not defined
In file included from
/usr/local/boost_1_48_0//include/boost/unordered/detail/equivalent.hpp:16:0,
                 from
/usr/local/boost_1_48_0//include/boost/unordered/unordered_map.hpp:18,
                 from
/usr/local/boost_1_48_0//include/boost/unordered_map.hpp:16,
                 from ./drizzled/error.h:24,
                 from drizzled/charset.cc:19:
.....
/usr/local/boost_1_48_0//include/boost/unordered/detail/emplace_args.hpp:133:1:
error: declaration of 'a1' shadows a member of 'this' [-Wshadow]
/usr/local/boost_1_48_0//include/boost/unordered/detail/emplace_args.hpp:133:1:
error: declaration of 'a0' shadows a member of 'this' [-Wshadow]


I got some errors and many wanrings caused by Wshadow, i don't know it's
caused by boost or drizzle? And how can i fix it?

Louis





2013/8/19 Mohit Srivastava <srivastavamohi...@gmail.com>

> Hey,
>
> sudo apt-get install ibboost1.48-all-dev libprotobuf-dev protobuf-compiler
> uuid-dev libcloog-ppl0
>
>
> On Mon, Aug 19, 2013 at 10:24 AM, Louis.hust <ouc...@gmail.com> wrote:
>
>> Hi, Mohit,
>> Thank you again ^_^
>>
>> Actually i have installed all component drizzle needed, but when i
>> compile the source code, i get many warnings related to boost.
>> The version of boost is 1.42.0, and gcc is 4.5.4.
>>
>> When i "make", i got many warnings which are treated as errors cause
>> Werror is on.
>>
>> Error message as below:
>>
>> /usr/local/boost_1_42_0//include/boost/date_time/gregorian/conversion.hpp:44:23:
>> error: missing initializer for member 'tm::tm_sec'
>> [-Wmissing-field-initializers]
>>
>> So  should i need to get a new version of boost or should i change the
>> compile options?
>>
>> Louis
>>
>>
>>
>>
>> 2013/8/19 Mohit Srivastava <srivastavamohi...@gmail.com>
>>
>>> Hey,
>>>
>>> There is no package for quantal yet.
>>> You can download for precise from
>>> http://packages.ubuntu.com/precise/drizzle-dev. And try to install it
>>> on quantal.
>>> And if you get more error after this , have a look
>>> http://mohyt.blogspot.in/2013/07/setting-up-drizzle-development-ubuntu.html
>>>
>>> OR
>>>
>>> You can manually download every dependencies.
>>>
>>> --
>>> Mohit
>>>
>>>
>>> On Mon, Aug 19, 2013 at 9:17 AM, Louis.hust <ouc...@gmail.com> wrote:
>>>
>>>> Hey Monhit:
>>>>
>>>> Thanks for your reply.
>>>> I tried "sudo apt-get install drizzle-dev", but with error : unable to
>>>> locate package drizzle-dev.
>>>>
>>>>
>>>> 2013/8/19 Mohit Srivastava <srivastavamohi...@gmail.com>
>>>>
>>>>> Hey Louis,
>>>>> Just try sudo apt-get install drizzle-dev
>>>>>
>>>>> --
>>>>> Mohit
>>>>>
>>>>>
>>>>> On Mon, Aug 19, 2013 at 9:08 AM, Louis.hust <ouc...@gmail.com> wrote:
>>>>>
>>>>>> Hi, all,
>>>>>>
>>>>>> I'd like to build the drizzle from source following
>>>>>> http://docs.drizzle.org/installing/from_source.html#dependencies
>>>>>>
>>>>>> i follow the steps on ubuntu:
>>>>>>
>>>>>> "sudo add-apt-repository ppa:drizzle-developers/ppa " execute
>>>>>> successfully,
>>>>>>
>>>>>> but when i execute "sudo add-get update", i got the following error
>>>>>> message:
>>>>>>
>>>>>> error http://ppa.launchpad.net quantal/main Sources
>>>>>>
>>>>>>   404  Not Found
>>>>>> error http://ppa.launchpad.net quantal/main amd64 Packages
>>>>>>   404  Not Found
>>>>>> erro http://ppa.launchpad.net quantal/main i386 Packages
>>>>>>   404  Not Found
>>>>>>
>>>>>> Is there anyone that can help me? Thanks a lot.
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Mailing list: https://launchpad.net/~drizzle-discuss
>>>>>> Post to     : drizzle-discuss@lists.launchpad.net
>>>>>> Unsubscribe : https://launchpad.net/~drizzle-discuss
>>>>>> More help   : https://help.launchpad.net/ListHelp
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : drizzle-discuss@lists.launchpad.net
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to