On Mon, Jul 21, 2008 at 3:36 PM, Warren Young <mysqlpp@stripped> wrote:
> On Jul 21, 2008, at 3:56 AM, Amit k. Saha wrote:
>
>> ./test/uds.cpp:56: error: `AF_LOCAL' undeclared (first use this function)
>
> Can you find out which header defines that on Solaris?
>
> Changing it to AF_UNIX may also work, but it'd be better to use the newer
> name.
I changed it to AF_UNIX and now it complains of:
./test/uds.cpp: In function `int make_socket(const char*, mode_t)':
./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'
>
>> ./test/uds.cpp:62: error: expected primary-expression before "struct"
>
> I'll also need to find out where sockaddr_un is defined. There's a fair
> chance that the same header defines both this and AF_LOCAL.
Let me see if I can find sockaddr_un.
-Amit
--
Amit Kumar Saha
http://blogs.sun.com/amitsaha/
http://amitksaha.blogspot.com
Skype: amitkumarsaha