RE: [SOGo] SOGo fails to start on fresh installation after reboot

2015-07-27 Thread Peter Trifonov
Hello,


 2015-07-23 15:27:54.346 sogod[5522] File NSData.m: 1436. In -[NSData
 writeToFile:options:error:] Open (/var/run/sogo/sogo.pid) failed - No such
 file or directory Jul 23 15:27:54 sogod [5522]: [ERROR]
 0x0x7f6ab8ebb0a0[NSUserDefaults]
 unable to open pid file: /var/run/sogo/sogo.pid
 Has anyone experienced this?

I have the same problem on FreeBSD 9.1.   In my case it helps to run
touch /var/run/sogo/sogo.pid ; chown sogo /var/run/sogo/sogo.pid

before starting sogod.  I am still looking for a better solution.


With best regards,
P. Trifonov

-- 
users@sogo.nu
https://inverse.ca/sogo/lists


[SOGo] Cannot create sogo.pid

2015-07-19 Thread Peter Trifonov
Dear all,

I am trying to build and run sogo 2.3.0 on FreeBSD.  


When I try to start sogod as user sogo, it fails and prints the following
message in the log file (/var/log/sogo/sogo.log):
File NSData.m: 1593. In -[NSData writeToFile:options:error:] Open
(/var/run/sogo/sogo.pid) failed - Permission denied

The permissions on /var/run/sogo are as follows:
drwxrwxrwx   2 sogo  sogo   512 Jul 14 12:18 sogo

However, if I manually create an empty /var/run/sogo/sogo.pid file , sogod
deletes it, but starts and seems to work properly.

What can be the reason for such odd behaviour?
I have seen some posts on fopen issues on iOS, where it does not allow write
access other than to files located in your applications Documents
directory.
Is there something like this on other platforms? Can this be configured?




With best regards,
P. Trifonov



-- 
users@sogo.nu
https://inverse.ca/sogo/lists


[SOGo] Compiling sogo 2.3 and openchange on FreeBSD

2015-07-13 Thread Peter Trifonov
Dear all,

I am trying to compile SOGo-2.3.0 on FreeBSD.  After fixing numerous problems,  
I have managed to run successfully gmake install in SOGo-2.3.0 directory, as 
well as compile OpenChange 2.3.
Now I am trying to build OpenChange plugin. However, running gmake in 
SOGO-2.3.0/OpenChange  results in the following error:

(echo  Compiling file MAPIStorePropertySelectors.m ...;/usr/local/bin/clang34 
MAPIStorePropertySelectors.m -c \
  -MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 
-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -fexceptions 
-fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS -fobjc-nonfragile-abi 
-D_NONFRAGILE_ABI -pthread -fPIC -g -DDEBUG -fno-omit-frame-pointer -Wall 
-DGSWARN -DGSDIAGNOSE -Wno-import -pipe -fstack-protector -fno-strict-aliasing 
-O2 -pipe -fstack-protector -fno-strict-aliasing -Wno-import 
-I/usr/local/include -fgnu-runtime -fconstant-string-class=NSConstantString 
-Wall -DSAMBA_PRIVATE_DIR=@\/var/db/samba4/private\ -D_GNU_SOURCE=1 
-I/usr/local/include/samba4 -DHAVE_IMMEDIATE_STRUCTURES=1 -I/usr/local/include 
-D_GNU_SOURCE=1 -I/usr/local/include/samba4 -DHAVE_IMMEDIATE_STRUCTURES=1 
-I/usr/local/include -DSAMBA_PREFIX=\/usr/local\ -I../SoObjects -I../SOPE 
-DBACKEND_BUNDLE_NAME=@\SOGoBackend.MAPIStore\ 
-DSOGO_BUNDLES_DIR=@\/usr/local/GNUstep/Local/Library/SOGo\ -I. 
-I/root/GNUstep/Library/Headers -I/usr/local/GNUstep/Local/Library/Headers 
-I/usr/local/GNUstep/System/Library/Headers -I/usr/local/include \
   -o obj/SOGoBackend.obj/MAPIStorePropertySelectors.m.o)
 Compiling file MAPIStorePropertySelectors.m ...
In file included from MAPIStorePropertySelectors.m:6:
In file included from ./MAPIStorePropertySelectors.h:11:
In file included from /usr/local/include/gen_ndr/exchange.h:11:
/usr/local/include/samba4/util/debug.h:177:9: warning: 'DEBUG' macro redefined
#define DEBUG( level, body ) \
^
command line:8:9: note: previous definition is here
#define DEBUG 1
^
In file included from MAPIStorePropertySelectors.m:6:
In file included from ./MAPIStorePropertySelectors.h:19:
./MAPIStoreObject.h:71:32: warning: declaration of 'struct 
mapistore_property_data' will not be visible outside of this
  function [-Wvisibility]
- (int) getProperties: (struct mapistore_property_data *) data
   ^
MAPIStorePropertySelectors.m:66518:55: error: initializer element is not a 
compile-time constant
static const SEL MAPIStorePropertyGetterSelectors[] = {
  ^

How can this be fixed?

With best regards,
P. Trifonov



-- 
users@sogo.nu
https://inverse.ca/sogo/lists