List:MySQL++« Previous MessageNext Message »
From:Amit k. Saha Date:July 21 2008 9:56am
Subject:Re: Error bulding MySQL++ on Solaris 10
View as plain text  
On Mon, Jul 21, 2008 at 2:48 PM, Amit k. Saha <amitsaha.in@stripped> wrote:
> On Mon, Jul 21, 2008 at 2:25 PM, Amit k. Saha <amitsaha.in@stripped> wrote:
>> On Mon, Jul 21, 2008 at 12:25 PM, Warren Young <mysqlpp@stripped>
> wrote:
>>> On Jul 21, 2008, at 12:29 AM, Amit k. Saha wrote:
>>>
>>>> ./lib/beemutex.cpp:43: error: `mutex_t' does not name a type
>>>
>>> Okay, this is the real error.  And wouldn't you know it, it is particular to
>>> beemutex.cpp: it's getting faked out by the fact that you have both synch.h
>>> on your system as well as pthreads.
>>>
>>> Lacking a Solaris machine here, I'm going to have to guess at the fix.  Try
>>> this patch, or check out the current svn version of MySQL++ and try that:
>>
>>
>> I have saved the patch in the file 'config-sol.patch' and I am trying to patch
>>
>> $ patch -p0 < config-sol.patch
>>
>> I get this:
>>
>> Looks like a unified context diff.
>> Hunk #1 failed at line 48.
>> 1 out of 1 hunks failed: saving rejects to configure.ac.rej
>>  The next patch looks like a unified context diff.
>>  I can't seem to find a patch in there anywhere.
>
> Could be a problem with the 'type' of diff- # Edit script, Context
> format or Unified format?
>

Okay, I have overcome this problem by using a SVN copy of the file.

I have run into this problem now:

./test/uds.cpp: In function `int make_socket(const char*, mode_t)':
./test/uds.cpp:56: error: `AF_LOCAL' undeclared (first use this function)
./test/uds.cpp:56: error: (Each undeclared identifier is reported only
once for each function it appears in.)
./test/uds.cpp:62: error: expected primary-expression before "struct"
./test/uds.cpp:62: error: expected `;' before "struct"
./test/uds.cpp:63: error: non-lvalue in unary `&'
./test/uds.cpp:64: error: request for member `sun_family' in `1',
which is of non-class type `int'
./test/uds.cpp:65: error: request for member `sun_path' in `1', which
is of non-class type `int'
./test/uds.cpp:65: error: request for member `sun_path' in `1', which
is of non-class type `int'
./test/uds.cpp:66: error: request for member `sun_path' in `1', which
is of non-class type `int'
./test/uds.cpp:66: error: request for member `sun_path' in `1', which
is of non-class type `int'
./test/uds.cpp:67: error: non-lvalue in unary `&'
*** Error code 1
make: Fatal error: Command failed for target `test_uds_uds.o'



-- 
Amit Kumar Saha
http://blogs.sun.com/amitsaha/
http://amitksaha.blogspot.com
Skype: amitkumarsaha
Thread
Error bulding MySQL++ on Solaris 10Amit k. Saha21 Jul
  • Re: Error bulding MySQL++ on Solaris 10Warren Young21 Jul
    • Re: Error bulding MySQL++ on Solaris 10Amit k. Saha21 Jul
      • Re: Error bulding MySQL++ on Solaris 10Warren Young21 Jul
        • Re: Error bulding MySQL++ on Solaris 10Amit k. Saha21 Jul
          • Re: Error bulding MySQL++ on Solaris 10Warren Young21 Jul
        • Re: Error bulding MySQL++ on Solaris 10Amit k. Saha21 Jul
          • Re: Error bulding MySQL++ on Solaris 10Amit k. Saha21 Jul
            • Re: Error bulding MySQL++ on Solaris 10Amit k. Saha21 Jul
              • Re: Error bulding MySQL++ on Solaris 10Warren Young21 Jul
                • Re: Error bulding MySQL++ on Solaris 10Amit k. Saha21 Jul
                  • Re: Error bulding MySQL++ on Solaris 10Amit k. Saha21 Jul
                    • Re: Error bulding MySQL++ on Solaris 10Warren Young26 Jul