On 03/29/15 21:56, Egor Pugin wrote:
> Hi,
>
> Actually I didn't try to run Firebird on OS X before, but...
> I ran fbserver from Xcode and the standard socket() function cannot
> create socket.
> remote/inet.cpp:3060
> fd = ::socket(domain, type | O_CLOEXEC, protocol);
> (The execution does not go into the next if statement. It seems errno
> has other value than specified in the condition.)
>
> Without the 'O_CLOEXEC' flag the server starts well.
> fd = ::socket(domain, type, protocol);
>
> You can ask core developers about this issue.
>
> On 29 March 2015 at 19:32, Nils <mrnightlifelo...@yahoo.com> wrote:
>> However today I tried to actually use it on my Mac. And I guess the schemes
>> in Xcode are not ready to simply start it from the ide. So in the build
>> directory I tried to start it using fbguard:
>>
>> sudo bin/fbguard -daemon
>>
>> Which failed with the following entries in the Firebird.log file:
>>
>> macbook.local   Sun Mar 29 18:27:05 2015
>>      socket: error creating socket (family 2, socktype 1, protocol 6
>>
>>
>> macbook.local   Sun Mar 29 18:27:05 2015
>>      startup:INET_connect:
>>      Unable to complete network request to host "127.0.0.1".
>>      Error while listening for an incoming connection.
>>
>>
>> I set the address to 127.0.0.1 in the Firebird.conf:
>>
>> RemoteBindAddress = 127.0.0.1
>>
>> Also for testing I turned off the Firewall completely, but still was unable
>> to start it. I assume that the client/server communicate via tcp/ip but what
>> about UNIX sockets? Where can I set which method should be used? I also
>> seems that both fail.
>>

O_CLOEXEC was added in FB3 in order to better support fork() in user code.
If OS/X does not support it (not too big surprise telling true) we 
should add some ifdefs around.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to