Re: [Firebird-devel] Build Firebird on Mac OSX Yosemite with CMake

2015-03-30 Thread Alex Peshkoff
On 03/30/15 12:44, Egor Pugin wrote: > There's no SOCK_CLOEXEC symbol on my system or it is not included. That's better than blindly use of wrong flag. I will add check to configure.ac. Same should be reflected in cmake. > On 30 March 2015 at 12:38, Alex Peshkoff wrote: >> On 03/30/15 12:23, Mic

Re: [Firebird-devel] Build Firebird on Mac OSX Yosemite with CMake

2015-03-30 Thread Egor Pugin
There's no SOCK_CLOEXEC symbol on my system or it is not included. On 30 March 2015 at 12:38, Alex Peshkoff wrote: > On 03/30/15 12:23, Michal Kubecek wrote: >> On Mon, Mar 30, 2015 at 11:37:42AM +0300, Egor Pugin wrote: >>> On 30 March 2015 at 11:26, Michal Kubecek wrote: According to my s

Re: [Firebird-devel] Build Firebird on Mac OSX Yosemite with CMake

2015-03-30 Thread Alex Peshkoff
On 03/30/15 12:23, Michal Kubecek wrote: > On Mon, Mar 30, 2015 at 11:37:42AM +0300, Egor Pugin wrote: >> On 30 March 2015 at 11:26, Michal Kubecek wrote: >>> According to my socket(2), it should be SOCK_CLOEXEC rather than >>> O_CLOEXEC (but these constants seem to be equal on most architectures)

Re: [Firebird-devel] Build Firebird on Mac OSX Yosemite with CMake

2015-03-30 Thread Michal Kubecek
On Mon, Mar 30, 2015 at 11:37:42AM +0300, Egor Pugin wrote: > On 30 March 2015 at 11:26, Michal Kubecek wrote: > > > > According to my socket(2), it should be SOCK_CLOEXEC rather than > > O_CLOEXEC (but these constants seem to be equal on most architectures). > > > I built 64-bit version of Firebi

Re: [Firebird-devel] Build Firebird on Mac OSX Yosemite with CMake

2015-03-30 Thread Egor Pugin
Don't try to guess the right flag. FD_CLOEXEC is defined as 1 which is SOCK_STREAM also. Better solution is to write ifdef for OS X near the flag or to remove the errno check at the next if statement, so the execution always tries to call second socket() without any tricky flags in case when first

Re: [Firebird-devel] Build Firebird on Mac OSX Yosemite with CMake

2015-03-30 Thread Paul Beach
<> Ahh - good - that gets rid of one possible reason for failure. Perhaps FD_CLOEXEC instead? Paul -- Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership w

Re: [Firebird-devel] Build Firebird on Mac OSX Yosemite with CMake

2015-03-30 Thread Egor Pugin
I built 64-bit version of Firebird (OS X 10.10, AppleClang 6.0.0, Xcode 6.2). The symbol O_CLOEXEC is present, but as you see it has negative effect on socket() call. By the way the build is broken on the latest trunk . I used older revision to test with Xcode (61006). Trunk build log - http://pas

Re: [Firebird-devel] Build Firebird on Mac OSX Yosemite with CMake

2015-03-30 Thread Michal Kubecek
On Mon, Mar 30, 2015 at 10:33:16AM +0300, Alex Peshkoff wrote: > On 03/29/15 21:56, Egor Pugin wrote: > > 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 no

Re: [Firebird-devel] Build Firebird on Mac OSX Yosemite with CMake

2015-03-30 Thread Paul Beach
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

Re: [Firebird-devel] Build Firebird on Mac OSX Yosemite with CMake

2015-03-30 Thread Alex Peshkoff
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

Re: [Firebird-devel] Build Firebird on Mac OSX Yosemite with CMake

2015-03-29 Thread Egor Pugin
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 othe

Re: [Firebird-devel] Build Firebird on Mac OSX Yosemite with CMake

2015-03-29 Thread Nils
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

Re: [Firebird-devel] Build Firebird on Mac OSX Yosemite with CMake

2015-03-09 Thread Nils B
Quickly tested it, built w/o problems in Xcode! Thanks! On Sunday, March 8, 2015 2:24 PM, Egor Pugin wrote: Hi, Should be fixed now. Update trunk to the latest revision and try to build it. Please note that cmake build is still an experimental feature. On 8 March 2015 at 14:59, Nil

Re: [Firebird-devel] Build Firebird on Mac OSX Yosemite with CMake

2015-03-08 Thread Egor Pugin
Hi, Should be fixed now. Update trunk to the latest revision and try to build it. Please note that cmake build is still an experimental feature. On 8 March 2015 at 14:59, Nils B wrote: > Hi there > > I tried building the trunk version of Firebird on my Mac using Cmake. I > installed the dev too

[Firebird-devel] Build Firebird on Mac OSX Yosemite with CMake

2015-03-08 Thread Nils B
Hi there I tried building the trunk version of Firebird on my Mac using Cmake. I installed the dev tools, libicu and CMake and generated an Xcode Project. When I tried to compile it on Xcode, I ended up with the following error: Ld /users/n/Develop/Firebird/build/src/Debug/bin/gpre_boot normal x8