View Issue Details

IDProjectCategoryView StatusLast Update
0000921SOGoSOPEpublic2011-06-17 12:28
Reportermossroy Assigned Toludovic  
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSDebian 
Product Version1.3.3 
Target Version1.3.8Fixed in Version1.3.8 
Summary0000921: SOPE does not compile on Debian ARM platform
Description

I made a Debian Squeeze ARM virtual machine with QEMU.
I followed the instructions on http://www.sogo.nu/english/nc/support/faq/article/how-do-i-compile-sogo-2.html

The compilation failed because it did not find a file :

Compiling file NGBase64Stream.m ...
In file included from NGBase64Stream.m:24:
common.h:31:20: error: config.h: Aucun fichier ou dossier de ce type
make[5]: [obj/libNGStreams.obj/NGBase64Stream.m.o] Erreur 1
make[4]:
[internal-library-all_] Erreur 2
make[3]: [libNGStreams.all.library.variables] Erreur 2
make[2]:
[internal-all] Erreur 2
make[1]: [internal-all] Erreur 2
make:
[internal-all] Erreur 2

Steps To Reproduce
Additional Information

The following packages where installed on my debian squeeze, before the compilation :
gnustep-make libgnustep-base-dev libxml2-dev libldap2-dev libssl-dev libpq-dev libsqlite3-dev libmysqlclient15-dev gnustep-devel g++ gobjc++ libmemcached-dev postgresql-server-dev-8.4 build-essential

I compiled version 1.3.3 of SOPE, from http://www.sogo.nu/files/downloads/SOGo/Sources/SOPE-1.3.3.tar.gz (I did not download the latest sources from monotone)

The complete log can be found in the attached file.

I found a thread regarding this same issue, dated in 2005 : http://www.mail-archive.com/debian-arm@lists.debian.org/msg04819.html
They seem to suspect a bug in the build process for platforms other than x86 and x86_64

TagsNo tags attached.

Relationships

child of 0000945 resolvedwsourdeau Fix the build of NGStreams 

Activities

2010-10-23 10:24

 

logs (10,484 bytes)   
#./configure --with-gnustep --enable-debug --disable-strip
GNUstep environment:
  system: /usr/System
  local:  /usr/Local
  user:   /root/GNUstep
  path:   /usr/System:/usr/Network:/usr/Local:/root/GNUstep
  flat:   yes
  arch:   arm-unknown-linux-gnueabi
  combo:  gnu-gnu-gnu

Note: will install in GNUSTEP_LOCAL_ROOT: /usr/Local

Configuration:
  FHS:    install in GNUstep tree
  debug:  yes
  strip:  no
  prefix:     /usr/Local
  frameworks: 
  gstep:      /usr/share/GNUstep/Makefiles
  config:     /tmp/SOPE-1.3.3/config.make
  script:     /usr/share/GNUstep/Makefiles/GNUstep.sh

creating: /tmp/SOPE-1.3.3/config.make
optional library found: xml2
optional library found: ldap
required library found: ssl
optional library found: pq
optional library found: mysqlclient
configuring NGStreams library .... done (log in config-NGStreams.log).

#make
This is gnustep-make 2.4.0. Type 'make print-gnustep-make-help' for help.
Making all in sope-xml ...
Making all in SaxObjC ...
Making all for library libSaxObjC...
 Compiling file SaxAttributeList.m ...
 Compiling file SaxAttributes.m ...
 Compiling file SaxDefaultHandler.m ...
 Compiling file SaxException.m ...
 Compiling file SaxHandlerBase.m ...
 Compiling file SaxLocator.m ...
 Compiling file SaxMethodCallHandler.m ...
 Compiling file SaxNamespaceSupport.m ...
 Compiling file SaxObjectDecoder.m ...
 Compiling file SaxObjectModel.m ...
 Compiling file SaxXMLFilter.m ...
 Compiling file SaxXMLReaderFactory.m ...
 Linking library libSaxObjC ...
Making all in DOM ...
Making all for library libDOM...
 Compiling file DOMSaxBuilder.m ...
 Compiling file DOMSaxHandler.m ...
 Compiling file DOMXMLOutputter.m ...
 Compiling file DOMPYXOutputter.m ...
 Compiling file DOMNodeWalker.m ...
 Compiling file NSObject+DOM.m ...
 Compiling file DOMNode+Enum.m ...
 Compiling file DOMNode+QueryPath.m ...
 Compiling file DOMQueryPathExpression.m ...
 Compiling file NSObject+QPEval.m ...
 Compiling file DOMNode+QPEval.m ...
 Compiling file NSObject+StringValue.m ...
 Compiling file DOMAttribute.m ...
 Compiling file DOMCDATASection.m ...
 Compiling file DOMCharacterData.m ...
 Compiling file DOMComment.m ...
 Compiling file DOMDocument.m ...
 Compiling file DOMElement.m ...
 Compiling file DOMEntity.m ...
 Compiling file DOMEntityReference.m ...
 Compiling file DOMImplementation.m ...
 Compiling file DOMNode.m ...
 Compiling file DOMNodeWithChildren.m ...
 Compiling file DOMNotation.m ...
 Compiling file DOMProcessingInstruction.m ...
 Compiling file DOMText.m ...
 Compiling file DOMDocument+factory.m ...
 Compiling file DOMDocumentType.m ...
 Compiling file DOM+JS.m ...
 Compiling file DOMBuilderFactory.m ...
 Compiling file DOMTreeWalker.m ...
 Compiling file DOMNodeFilter.m ...
 Compiling file DOMNodeIterator.m ...
 Linking library libDOM ...
Making all in XmlRpc ...
Making all for library libXmlRpc...
 Compiling file XmlRpcEncoder.m ...
 Compiling file XmlRpcDecoder.m ...
 Compiling file XmlRpcMethodCall.m ...
 Compiling file XmlRpcMethodResponse.m ...
 Compiling file XmlRpcSaxHandler.m ...
 Compiling file XmlRpcValue.m ...
 Compiling file NSMutableString+XmlRpcDecoder.m ...
 Compiling file NSArray+XmlRpcCoding.m ...
 Compiling file NSData+XmlRpcCoding.m ...
 Compiling file NSDate+XmlRpcCoding.m ...
 Compiling file NSDictionary+XmlRpcCoding.m ...
 Compiling file NSException+XmlRpcCoding.m ...
 Compiling file NSHost+XmlRpcCoding.m ...
 Compiling file NSNotification+XmlRpcCoding.m ...
 Compiling file NSNumber+XmlRpcCoding.m ...
 Compiling file NSObject+XmlRpc.m ...
 Compiling file NSString+XmlRpcCoding.m ...
 Compiling file NSURL+XmlRpcCoding.m ...
 Linking library libXmlRpc ...
Making all in STXSaxDriver ...
Making all in subprojects of bundle STXSaxDriver...
Making all for subproject ExtraSTX...
 Compiling file NSString+STX.m ...
 Compiling file StructuredLine.m ...
 Compiling file StructuredStack.m ...
 Compiling file StructuredText.m ...
 Linking subproject ExtraSTX ...
Making all for subproject Model...
 Compiling file StructuredTextDocument.m ...
 Compiling file StructuredTextBodyElement.m ...
 Compiling file StructuredTextParagraph.m ...
 Compiling file StructuredTextListItem.m ...
 Compiling file StructuredTextList.m ...
 Compiling file StructuredTextLiteralBlock.m ...
 Compiling file StructuredTextHeader.m ...
 Linking subproject Model ...
Making all for bundle STXSaxDriver...
 Creating STXSaxDriver.sax/....
 Compiling file STXSaxDriver.m ...
 Compiling file StructuredTextBodyElement+SAX.m ...
 Linking bundle STXSaxDriver ...
 Creating STXSaxDriver.sax/Resources...
 Copying resources into the bundle wrapper...
 Copying resources from subprojects into the bundle wrapper...
 Creating stamp file...
 Creating STXSaxDriver.sax/Resources/Info-gnustep.plist...
Making all in libxmlSAXDriver ...
Making all for bundle libxmlSAXDriver...
 Creating libxmlSAXDriver.sax/....
 Compiling file libxmlSAXDriver.m ...
 Compiling file libxmlHTMLSAXDriver.m ...
 Compiling file libxmlDocSAXDriver.m ...
 Compiling file libxmlSAXLocator.m ...
 Compiling file TableCallbacks.m ...
 Linking bundle libxmlSAXDriver ...
 Creating libxmlSAXDriver.sax/Resources...
 Copying resources into the bundle wrapper...
 Creating stamp file...
 Creating libxmlSAXDriver.sax/Resources/Info-gnustep.plist...
Making all in sope-core ...
Making all in EOControl ...
Making all for library libEOControl...
 Compiling file EOAndQualifier.m ...
 Compiling file EOArrayDataSource.m ...
 Compiling file EOClassDescription.m ...
 Compiling file EODataSource.m ...
 Compiling file EODetailDataSource.m ...
 Compiling file EOFetchSpecification.m ...
 Compiling file EOGenericRecord.m ...
 Compiling file EOGlobalID.m ...
 Compiling file EOKeyComparisonQualifier.m ...
 Compiling file EOKeyGlobalID.m ...
 Compiling file EOKeyValueArchiver.m ...
 Compiling file EOKeyValueCoding.m ...
 Compiling file EOKeyValueQualifier.m ...
 Compiling file EONotQualifier.m ...
 Compiling file EONull.m ...
 Compiling file EOObserver.m ...
 Compiling file EOOrQualifier.m ...
 Compiling file EOQualifier.m ...
 Compiling file EOQualifierParser.m ...
 Compiling file EOSortOrdering.m ...
 Compiling file EOValidation.m ...
 Compiling file NSArray+EOQualifier.m ...
 Compiling file NSObject+EOQualifierOps.m ...
 Compiling file EOSQLParser.m ...
 Compiling file EOQualifierVariable.m ...
 Compiling file NSObject+QualDesc.m ...
 Linking library libEOControl ...
Making all in NGExtensions ...
Making all in subprojects of library libNGExtensions...
Making all for subproject FdExt...
 Compiling file NSArray+enumerator.m ...
 Compiling file NSAutoreleasePool+misc.m ...
 Compiling file NSBundle+misc.m ...
 Compiling file NSCalendarDate+misc.m ...
 Compiling file NSCalendarDate+matrix.m ...
 Compiling file NSData+gzip.m ...
 Compiling file NSData+misc.m ...
 Compiling file NSDictionary+misc.m ...
 Compiling file NSEnumerator+misc.m ...
 Compiling file NSException+misc.m ...
 Compiling file NSFileManager+Extensions.m ...
 Compiling file NSNull+misc.m ...
 Compiling file NSObject+Logs.m ...
 Compiling file NSObject+Values.m ...
 Compiling file NSProcessInfo+misc.m ...
 Compiling file NSRunLoop+FileObjects.m ...
 Compiling file NSSet+enumerator.m ...
 Compiling file NSString+Ext.m ...
 Compiling file NSString+Encoding.m ...
 Compiling file NSString+Escaping.m ...
 Compiling file NSString+Formatting.m ...
 Compiling file NSString+misc.m ...
 Compiling file NSString+HTMLEscaping.m ...
 Compiling file NSString+XMLEscaping.m ...
 Compiling file NSString+URLEscaping.m ...
 Compiling file NSString+German.m ...
 Compiling file NSURL+misc.m ...
 Compiling file NGPropertyListParser.m ...
 Linking subproject FdExt ...
Making all for subproject EOExt...
 Compiling file EOCacheDataSource.m ...
 Compiling file EOCompoundDataSource.m ...
 Compiling file EODataSource+NGExtensions.m ...
 Compiling file EOFetchSpecification+plist.m ...
 Compiling file EOFilterDataSource.m ...
 Compiling file EOGrouping.m ...
 Compiling file EOGroupingSet.m ...
 Compiling file EOKeyGrouping.m ...
 Compiling file EOKeyMapDataSource.m ...
 Compiling file EOQualifier+CtxEval.m ...
 Compiling file EOQualifier+plist.m ...
 Compiling file EOQualifierGrouping.m ...
 Compiling file EOSortOrdering+plist.m ...
 Compiling file EOTrueQualifier.m ...
 Compiling file NSArray+EOGrouping.m ...
 Compiling file EOGlobalID+Ext.m ...
 Linking subproject EOExt ...
Making all for subproject XmlExt...
 Compiling file DOMNode+EOQualifier.m ...
 Linking subproject XmlExt ...
Making all for subproject NGRuleEngine...
 Compiling file NGRule.m ...
 Compiling file NGRuleAssignment.m ...
 Compiling file NGRuleContext.m ...
 Compiling file NGRuleModel.m ...
 Compiling file NGRuleParser.m ...
 Linking subproject NGRuleEngine ...
Making all for subproject NGLogging...
 Compiling file NGLogger.m ...
 Compiling file NGLoggerManager.m ...
 Compiling file NGLogEvent.m ...
 Compiling file NGLogEventFormatter.m ...
 Compiling file NGLogEventDetailedFormatter.m ...
 Compiling file NGLogAppender.m ...
 Compiling file NGLogFileHandleAppender.m ...
 Compiling file NGLogStdoutAppender.m ...
 Compiling file NGLogStderrAppender.m ...
 Compiling file NGLogSyslogAppender.m ...
 Linking subproject NGLogging ...
Making all for library libNGExtensions...
 Compiling file NGExtensions.m ...
 Compiling file NGBase64Coding.m ...
 Compiling file NGBitSet.m ...
 Compiling file NGBundleManager.m ...
 Compiling file NGCustomFileManager.m ...
 Compiling file NGDirectoryEnumerator.m ...
 Compiling file NGFileFolderInfoDataSource.m ...
 Compiling file NGFileManager.m ...
 Compiling file NGFileManager+JS.m ...
 Compiling file NGFileManagerURL.m ...
 Compiling file NGHashMap.m ...
 Compiling file NGMerging.m ...
 Compiling file NGObjCRuntime.m ...
 Compiling file NGQuotedPrintableCoding.m ...
 Compiling file NGStack.m ...
 Compiling file NGCalendarDateRange.m ...
 Compiling file NGResourceLocator.m ...
 Linking library libNGExtensions ...
Making all in NGStreams ...
Making all for library libNGStreams...
 Compiling file NGStreams.m ...
 Compiling file NGBase64Stream.m ...
In file included from NGBase64Stream.m:24:
common.h:31:20: error: config.h: Aucun fichier ou dossier de ce type
make[5]: *** [obj/libNGStreams.obj/NGBase64Stream.m.o] Erreur 1
make[4]: *** [internal-library-all_] Erreur 2
make[3]: *** [libNGStreams.all.library.variables] Erreur 2
make[2]: *** [internal-all] Erreur 2
make[1]: *** [internal-all] Erreur 2
make: *** [internal-all] Erreur 2
logs (10,484 bytes)   
wsourdeau

wsourdeau

2011-03-30 18:30

viewer   ~0002321

Please try again with the new sources from monotone. The config.guess and config.sub files have been updated and the config.h file should no longer be placed in a subdirectory.

mossroy

mossroy

2011-03-30 21:37

reporter   ~0002326

I just tried the compilation from latest sources from monotone, on ARM.
Now it does not stop on NGBase64Steam.m as before
It compiles much more files, but it still stops, on the following error :
Compiling file EOSQLQualifier.m ...
EOSQLQualifier.m: In function ‘-[EOSQLQualifier initWithEntity:qualifierFormat:argumentsArray:]’:
EOSQLQualifier.m:341: error: incompatible type for argument 2 of ‘stringWithFormat:arguments:’
EOSQLQualifier.m:341: note: expected ‘valist’ but argument is of type ‘void *’
make[5]: [obj/libGDLAccess.obj/EOSQLQualifier.m.o] Error 1
make[4]:
[internal-library-all
] Error 2
make[3]: [libGDLAccess.all.library.variables] Error 2
make[2]:
[internal-all] Error 2
make[1]: [internal-all] Error 2
make:
[internal-all] Error 2

I suppose this is not related to the ARM architecture, but rather to a temporary bug?

mossroy

mossroy

2011-04-09 13:19

reporter   ~0002357

Last edited: 2011-04-09 14:08

Even after updating to the latest source code, the build still fails at the same point.
Same error with the .tar.gz of SOPE 1.3.6

Dominique

Dominique

2011-05-30 17:48

reporter   ~0002513

I just tried to install SOPE 1.3.7a on a reformated QNAP (ARM - Orion) now living with Debian Squeeze. Seems to end up with the same errors - it had several more warnings before ending like that.
Compiling file EOSQLQualifier.m ...
EOSQLQualifier.m: In function â-[EOSQLQualifier initWithEntity:qualifierFormat:argumentsArray:]â:
EOSQLQualifier.m:341: error: incompatible type for argument 2 of âstringWithFormat:arguments:â
EOSQLQualifier.m:341: note: expected âvalistâ but argument is of type âvoid *â
make[5]: [obj/libGDLAccess.obj/EOSQLQualifier.m.o] Error 1
make[4]:
[internal-library-all
] Error 2
make[3]: [libGDLAccess.all.library.variables] Error 2
make[2]:
[internal-all] Error 2
make[1]: [internal-all] Error 2
make:
[internal-all] Error 2

I attach the file with all the warnings/errors as they occured. Please can some have a look at this. It seems stupid to stop so close.

2011-05-30 17:49

 

sogo_arm_errors_sope_137a.txt (6,129 bytes)   
Compiling file NGMimeFileData.m ...
NGMimeFileData.m: In function �-[NGMimeFileData initWithBytes:length:]�:
NGMimeFileData.m:93: warning: format �%li� expects type �long int�, but argument 3 has type �NSUInteger�
NGMimeFileData.m: In function �-[NGMimeFileData appendDataToFileDesc:]�:
NGMimeFileData.m:174: warning: format �%li� expects type �long int�, but argument 4 has type �NSInteger�
 Compiling file NGMimeJoinedData.m ...
NGMimeJoinedData.m: In function �-[NGMimeJoinedData writeToFile:atomically:]�:
NGMimeJoinedData.m:136: warning: format �%li� expects type �long int�, but argument 3 has type �NSUInteger�
...
WORadioButton.m:80:2: warning: #warning FIXME, radio button from handling
...
Compiling file SoWebDAVRenderer.m ...
SoWebDAVRenderer.m: In function �-[SoWebDAVRenderer renderObjectBodyResult:inContext:onlyHead:]�:
SoWebDAVRenderer.m:190: warning: format �%ld� expects type �long int�, but argument 3 has type �NSUInteger�
SoWebDAVRenderer.m:207: warning: format �%ld� expects type �long int�, but argument 3 has type �NSUInteger�
...
 Compiling file WOResponse.m ...
WOResponse.m: In function �-[WOResponse disableClientCaching]�:
WOResponse.m:138: warning: format �%02li� expects type �long int�, but argument 4 has type �NSInteger�
WOResponse.m:138: warning: format �%04li� expects type �long int�, but argument 6 has type �NSInteger�
WOResponse.m:138: warning: format �%02li� expects type �long int�, but argument 7 has type �NSInteger�
WOResponse.m:138: warning: format �%02li� expects type �long int�, but argument 8 has type �NSInteger�
WOResponse.m:138: warning: format �%02li� expects type �long int�, but argument 9 has type �NSInteger�
...
 Compiling file WOStatisticsStore.m ...
WOStatisticsStore.m: In function �-[WOStatisticsStore formatDescription:forResponse:inContext:]�:
WOStatisticsStore.m:409: warning: format �%02li� expects type �long int�, but argument 3 has type �NSInteger�
WOStatisticsStore.m:409: warning: format �%04li� expects type �long int�, but argument 5 has type �NSInteger�
WOStatisticsStore.m:409: warning: format �%02li� expects type �long int�, but argument 6 has type �NSInteger�
WOStatisticsStore.m:409: warning: format �%02li� expects type �long int�, but argument 7 has type �NSInteger�
WOStatisticsStore.m:409: warning: format �%02li� expects type �long int�, but argument 8 has type �NSInteger�
...
 Compiling file UnixSignalHandler.m ...
UnixSignalHandler.m: In function �-[UnixSignalHandler init]�:
UnixSignalHandler.m:225: warning: �sigblock� is deprecated (declared at /usr/include/signal.h:196)
UnixSignalHandler.m: In function �-[UnixSignalHandler blockAllSignals]�:
UnixSignalHandler.m:319: warning: �sigsetmask� is deprecated (declared at /usr/include/signal.h:199)
UnixSignalHandler.m: In function �-[UnixSignalHandler enableAllSignals]�:
UnixSignalHandler.m:331: warning: �sigsetmask� is deprecated (declared at /usr/include/signal.h:199)
UnixSignalHandler.m: In function �-[UnixSignalHandler blockSignal:]�:
UnixSignalHandler.m:345: warning: �sigsetmask� is deprecated (declared at /usr/include/signal.h:199)
UnixSignalHandler.m: In function �-[UnixSignalHandler enableSignal:]�:
UnixSignalHandler.m:355: warning: �sigsetmask� is deprecated (declared at /usr/include/signal.h:199)
UnixSignalHandler.m: In function �-[UnixSignalHandler waitForSignal:]�:
UnixSignalHandler.m:364: warning: implicit declaration of function �sigpause�
...
Compiling file WOResponse.m ...
WOResponse.m: In function �-[WOResponse disableClientCaching]�:
WOResponse.m:138: warning: format �%02li� expects type �long int�, but argument 4 has type �NSInteger�
WOResponse.m:138: warning: format �%04li� expects type �long int�, but argument 6 has type �NSInteger�
WOResponse.m:138: warning: format �%02li� expects type �long int�, but argument 7 has type �NSInteger�
WOResponse.m:138: warning: format �%02li� expects type �long int�, but argument 8 has type �NSInteger�
WOResponse.m:138: warning: format �%02li� expects type �long int�, but argument 9 has type �NSInteger�
...
Compiling file WOStatisticsStore.m ...
WOStatisticsStore.m: In function �-[WOStatisticsStore formatDescription:forResponse:inContext:]�:
WOStatisticsStore.m:409: warning: format �%02li� expects type �long int�, but argument 3 has type �NSInteger�
WOStatisticsStore.m:409: warning: format �%04li� expects type �long int�, but argument 5 has type �NSInteger�
WOStatisticsStore.m:409: warning: format �%02li� expects type �long int�, but argument 6 has type �NSInteger�
WOStatisticsStore.m:409: warning: format �%02li� expects type �long int�, but argument 7 has type �NSInteger�
WOStatisticsStore.m:409: warning: format �%02li� expects type �long int�, but argument 8 has type �NSInteger�
...
Compiling file WEPageView.m ...
WEPageView.m: In function �-[WEPageItem appendHead:toResponse:inContext:]�:
WEPageView.m:770: warning: format �%ld� expects type �long int�, but argument 3 has type �NSUInteger�
...
Compiling file WETableMatrix.m ...
WETableMatrix.m: In function �-[WEVSpanTableMatrix appendSpans:toResponse:inContext:]�:
WETableMatrix.m:445: warning: format �%ld� expects type �long int�, but argument 3 has type �NSUInteger�
...
Making all in WEPrototype ...
Making all for library libWEPrototype...
 Compiling file WEPrototypeScriptAction.m ...
cc1obj: warning: unknown escape sequence '\/'
cc1obj: warning: unknown escape sequence '\/'
cc1obj: warning: unknown escape sequence '\S'
 Compiling file WEPrototypeScript.m ...
...
Compiling file EOSQLQualifier.m ...
EOSQLQualifier.m: In function �-[EOSQLQualifier initWithEntity:qualifierFormat:argumentsArray:]�:
EOSQLQualifier.m:341: error: incompatible type for argument 2 of �stringWithFormat:arguments:�
EOSQLQualifier.m:341: note: expected �va_list� but argument is of type �void *�
make[5]: *** [obj/libGDLAccess.obj/EOSQLQualifier.m.o] Error 1
make[4]: *** [internal-library-all_] Error 2
make[3]: *** [libGDLAccess.all.library.variables] Error 2
make[2]: *** [internal-all] Error 2
make[1]: *** [internal-all] Error 2
make: *** [internal-all] Error 2 
sogo_arm_errors_sope_137a.txt (6,129 bytes)   
mossroy

mossroy

2011-06-02 09:06

reporter   ~0002516

I confirm that, even with the latest source code from mtn, I still get this error when compiling SOPE on debian squeeze ARM

wsourdeau

wsourdeau

2011-06-02 13:20

viewer   ~0002517

This seems to be due to a bad casting of va_list to a "void *", which does not work on ARM but does on others. I have no time right now to investigate and fix this issue but patches are accepted. I suspect this issue to be quite trivial to solve.

Dominique

Dominique

2011-06-02 13:52

reporter   ~0002518

Since I have no idea how to program, that leaves me out dry with a non functioning program. Willing to test though.

dekkers

dekkers

2011-06-02 19:06

reporter   ~0002522

There is already an ifdef for s390 there. In the attached patch arm is added to the ifdef, can you try if that works?

2011-06-02 19:06

 

sope-arm.patch (846 bytes)   
#
# old_revision [b904302ec7f7663496c7a17492fc8767c1a1b674]
#
# patch "sope-gdl1/GDLAccess/EOSQLQualifier.m"
#  from [6d28a97c1c24e26279c48b6593365aeb364e6920]
#    to [b8da82ed8cd0684ecc98dd79313ed7552e1a47ec]
#
============================================================
--- sope-gdl1/GDLAccess/EOSQLQualifier.m	6d28a97c1c24e26279c48b6593365aeb364e6920
+++ sope-gdl1/GDLAccess/EOSQLQualifier.m	b8da82ed8cd0684ecc98dd79313ed7552e1a47ec
@@ -328,7 +328,7 @@ static EONull *null          = nil;
           back to an array (the EOQualifierEnumScannerHandler does that).
           Works on ix86, but *NOT* on iSeries or zServer !!
   */
-#if defined(__s390__)
+#if defined(__s390__) || defined(__arm__)
   qualifierString =
     [formatScanner performSelector:@selector(stringWithFormat:arguments:)
                    withObject:_qualifierFormat
sope-arm.patch (846 bytes)   
mossroy

mossroy

2011-06-02 21:59

reporter   ~0002523

Great! SOPE compiles with your patch installed, on my ARM debian squeeze machine.
Thank you very much.
I also could compile SOGo (even if I did not manage to run it yet : I suppose I'll have to take inspiration from the i386 .deb to install it properly)

Dominique

Dominique

2011-06-03 13:43

reporter   ~0002527

Last edited: 2011-06-03 13:56

I also want to try to to see if it works for me. I've got monotone on my machine with the SOGO and SOPE downloads. Can you tell me how to apply the patch ?
Forget it. RTFM should have been the answer. So self applied....
Compiling now. Results later.

dekkers

dekkers

2011-06-03 13:52

reporter   ~0002528

Go to the sope directory and type

patch -p0 < sope-arm.patch

Dominique

Dominique

2011-06-03 13:56

reporter   ~0002529

Thanks, just figured it out...

Dominique

Dominique

2011-06-03 15:27

reporter   ~0002530

Ok, SOPE complied OK. However SOGo did not as you can see.
Making all for framework SOGo...
Compiling file SOGoBuild.m ...
Compiling file SOGoProductLoader.m ...
SOGoProductLoader.m:88:2: warning: #warning we should work on searchPathes directly instead of ma
Compiling file SOGoCache.m ...
In file included from SOGoCache.m:63:
SOGoCache.h:29:36: warning: libmemcached/memcached.h: No such file or directory
SOGoCache.m:74: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before ââ token
SOGoCache.m:75: error: expected â=â, â,â, â;â, âasmâ or âattributeâ before â
â token
SOGoCache.m: In function â-[SOGoCache init]â:
SOGoCache.m:120: error: âhandleâ undeclared (first use in this function)
SOGoCache.m:120: error: (Each undeclared identifier is reported only once
SOGoCache.m:120: error: for each function it appears in.)
SOGoCache.m:122: warning: implicit declaration of function âmemcached_createâ
SOGoCache.m:137: error: âserversâ undeclared (first use in this function)
SOGoCache.m:139: warning: implicit declaration of function âmemcached_servers_parseâ
SOGoCache.m:141: warning: implicit declaration of function âmemcached_server_pushâ
SOGoCache.m: In function â-[SOGoCache setValue:forKey:expire:]â:
SOGoCache.m:284: error: âmemcached_returnâ undeclared (first use in this function)
SOGoCache.m:284: error: expected â;â before âerrorâ
SOGoCache.m:287: error: âhandleâ undeclared (first use in this function)
SOGoCache.m:291: error: âerrorâ undeclared (first use in this function)
SOGoCache.m:291: warning: implicit declaration of function âmemcached_setâ
SOGoCache.m:295: error: âMEMCACHED_SUCCESSâ undeclared (first use in this function)
SOGoCache.m:298: warning: implicit declaration of function âmemcached_strerrorâ
SOGoCache.m: In function â-[SOGoCache valueForKey:]â:
SOGoCache.m:321: error: âmemcached_returnâ undeclared (first use in this function)
SOGoCache.m:321: error: expected â;â before ârcâ
SOGoCache.m:324: error: âhandleâ undeclared (first use in this function)
SOGoCache.m:327: warning: implicit declaration of function âmemcached_getâ
SOGoCache.m:328: error: ârcâ undeclared (first use in this function)
SOGoCache.m:329: error: âMEMCACHED_SUCCESSâ undeclared (first use in this function)
SOGoCache.m: In function â-[SOGoCache removeValueForKey:]â:
SOGoCache.m:356: error: âmemcached_returnâ undeclared (first use in this function)
SOGoCache.m:356: error: expected â;â before ârcâ
SOGoCache.m:360: error: âhandleâ undeclared (first use in this function)
SOGoCache.m:363: error: ârcâ undeclared (first use in this function)
SOGoCache.m:363: warning: implicit declaration of function âmemcached_deleteâ
SOGoCache.m:365: error: âMEMCACHED_SUCCESSâ undeclared (first use in this function)
make[4]: [obj/SOGo.obj/SOGoCache.m.o] Error 1
make[3]:
[internal-framework-run-compile-submake] Error 2
make[2]: [SOGo.all.framework.variables] Error 2
make[1]:
[internal-all] Error 2
make: *** [internal-all] Error 2

Memcached in installed (but maybe not configured correctly).
Another patch ?

mossroy

mossroy

2011-06-03 18:05

reporter   ~0002531

Last edited: 2011-06-03 18:07

SOGo compiled successfully for me, so I don't think that another patch is needed.

Did you install the development headers of memcached? If you're using debian or ubuntu, it should be the package libmemcached-dev
Running "apt-get install libmemcached-dev" (under debian) or "sudo apt-get install libmemcached-dev" (under ubuntu) will probably help

Here are all the packages I installed (on debian squeeze) :
apt-get install gnustep-make libgnustep-base-dev libxml2-dev libldap2-dev libssl-dev libpq-dev libsqlite3-dev libmysqlclient15-dev gnustep-devel g++ gobjc++ libmemcached-dev postgresql-server-dev-8.4 build-essential

Dominique

Dominique

2011-06-03 20:29

reporter   ~0002532

That did it. I had most of those libraries (mysql-server instead of postgresql), but was missing the libmemcached-dev. SOPE and SOGo are now installed.
But not configured. Being used to packages, I could'nt find the following: sogo user, the .GNUstepDefaults file or the sogo.conf file.
I created the user and copied the two files from another existing setup editing for the new setup, but still no luck with the sogo file in /etc/init.d/ or the sope49-gdl1-mysql. So I can't even know if it's working.
A little more help and that should do it.

mossroy

mossroy

2011-06-04 07:01

reporter   ~0002534

Dominique, here are the main steps I followed to make SOGo work.
Maybe there is a better approach but this one worked for me.
I downloaded the i386 .deb provided here : http://inverse.ca/debian/pool/squeeze/s/sogo/ to copy and adapt the files that are missing :

  • /etc/init.d/sogo (I had to adapt the location of the executable : for me it was in /usr/local/sbin/ instead of /usr/sbin/). You also need to make this file executable with a chmod +x
  • /etc/logrotate.d/sogo
  • /etc/default/sogo
  • /etc/cron.daily/sogo
  • /etc/apache2/conf.d/SOGo.conf . I had to modify the RequestHeader lines (as explained in the doc), but also the Alias lines, because on my config, the libs where in /usr/local/lib instead of /usr/lib :
    Alias /SOGo.woa/WebServerResources/ \
    /usr/local/lib/GNUstep/SOGo/WebServerResources/
    Alias /.woa/WebServerResources/ \
    /usr/local/lib/GNUstep/SOGo/WebServerResources/
    Alias /SOGo/WebServerResources/ \
    /usr/local/lib/GNUstep/SOGo/WebServerResources/
    AliasMatch /SOGo/so/ControlPanel/Products/(.)/Resources/(.) \
    /usr/local/lib/GNUstep/SOGo/$1.SOGo/Resources/$2

To create the user sogo and necessary directories, I ran the following command-lines (taken from the .deb) :
groupadd -f -K GID_MIN=100 -K GID_MAX=500 sogo
useradd -d /home/sogo -g sogo -m -K UID_MIN=100 -K UID_MAX=500 -K PASS_MAX_DAYS=-1 -s /bin/bash sogo
for dir in run spool log; do if ! test -d /var/$dir/sogo; then install -m 750 -o sogo -g sogo -d /var/$dir/sogo; fi; done;
update-rc.d sogo defaults >/dev/null

For apache, I needed to add 2 modules :
a2enmod proxy_http
a2enmod headers

After that, the configuration was standard. I used MySQL as the database and user directory, but you might choose other options.
The .GNUstepDefaults can be generated by using "default write sogod xxx" commands (see documentation)

mossroy

mossroy

2011-06-05 13:47

reporter   ~0002535

I now can run SOGo on my ARM machine
I think that the patch should be commited, and then this issue could be marked as solved

Maybe you could include ARM-cross-compiled .deb packages in your repo? That would ease installation a lot...

Dominique

Dominique

2011-06-06 08:00

reporter   ~0002537

Last edited: 2011-06-06 13:09

Thanks mossroy,
It works. I agree the patch should be committed, and close the issue as solved. A .deb package would be nice indeed. While on the ARM subject... did you try to install Funambol as the next logical step ?

wsourdeau

wsourdeau

2011-06-06 15:11

viewer   ~0002539

Nice work guys. Btw, may I ask what type of machine do you need to run SOGo on ? It's not an iPad, isn't it ?

mossroy

mossroy

2011-06-06 20:04

reporter   ~0002541

In my case, I installed it on a sheevaplug. Cf https://secure.wikimedia.org/wikipedia/en/wiki/SheevaPlug
It's a very small fanless server that consumes around 3W for a 1.2GHz ARM processor. I installed Debian Squeeze on it and the filesystem is on a SDHC card.

SOGo is a bit slow on it, I have to admit. And don't expect to have too many users using it.
Anyway, it's the best solution I found so far to expose my calendars in a web interface (in terms of performance and features).
Some tasks are more CPU intensive and take very long (importing large ics files for example), but for the rest, it looks globally useable to me. I'll need to test it a bit more but it's worth a try

Dominique

Dominique

2011-06-06 21:28

reporter   ~0002542

I am running SOGo out of a somewhat old QNAP 109 - first generation. See http://www.qnap.com/pro_detail_feature.asp?p_id=78
Only 128 MB memory and a Marvell Orion 5 ARM Chip 500MHz, 14 Watt when running fulll speed, 1TB disk. I fully reformatted it to support Debian Squeeze folloing the instructions for Debian ARM. SOGo speed is aceptable for a small number of users, It will be probably in use for a small company and some personal (family) use. Nothing intensing but fully independant from Goog... I also installed Funambol to get the best of the combination. I still have to finalize the link between both programs, but it is running Apache + Tomcat 6 + Sun Java JRE although a bit slow. Took some digging to get the Java piece but it is working fine now. In the next few days, I'll finalize the integration.
I also have a very old NSLU... maybe worth a try since it's working on a sheevaplug.

mossroy

mossroy

2011-06-17 07:23

reporter   ~0002597

It seems that the patch has not been commited on Monotone.
The compilation works for Dominique and me with this patch : I think the patch should be commited and the bug closed

Dominique

Dominique

2011-06-17 09:59

reporter   ~0002600

Fully agree, please commit the patch to that it becomes part of the next release.

ludovic

ludovic

2011-06-17 12:28

administrator   ~0002601

Fix applied - http://mtn.inverse.ca/revision/diff/6a31d2853009c2655df905811252120fe1564f8e/with/555863e57ce13da9beb5913a24acef71207b4ced

Issue History

Date Modified Username Field Change
2010-10-23 10:24 mossroy New Issue
2010-10-23 10:24 mossroy File Added: logs
2010-11-02 18:10 wsourdeau Relationship added child of 0000945
2011-03-30 18:30 wsourdeau Note Added: 0002321
2011-03-30 18:31 wsourdeau Status new => feedback
2011-03-30 21:37 mossroy Note Added: 0002326
2011-04-09 13:19 mossroy Note Added: 0002357
2011-04-09 14:08 mossroy Note Edited: 0002357
2011-05-30 17:48 Dominique Note Added: 0002513
2011-05-30 17:49 Dominique File Added: sogo_arm_errors_sope_137a.txt
2011-06-02 09:06 mossroy Note Added: 0002516
2011-06-02 13:20 wsourdeau Note Added: 0002517
2011-06-02 13:52 Dominique Note Added: 0002518
2011-06-02 19:06 dekkers Note Added: 0002522
2011-06-02 19:06 dekkers File Added: sope-arm.patch
2011-06-02 21:59 mossroy Note Added: 0002523
2011-06-03 13:43 Dominique Note Added: 0002527
2011-06-03 13:52 dekkers Note Added: 0002528
2011-06-03 13:55 Dominique Note Edited: 0002527
2011-06-03 13:56 Dominique Note Edited: 0002527
2011-06-03 13:56 Dominique Note Added: 0002529
2011-06-03 15:27 Dominique Note Added: 0002530
2011-06-03 18:05 mossroy Note Added: 0002531
2011-06-03 18:07 mossroy Note Edited: 0002531
2011-06-03 20:29 Dominique Note Added: 0002532
2011-06-04 07:01 mossroy Note Added: 0002534
2011-06-05 13:47 mossroy Note Added: 0002535
2011-06-06 08:00 Dominique Note Added: 0002537
2011-06-06 13:09 Dominique Note Edited: 0002537
2011-06-06 15:11 wsourdeau Note Added: 0002539
2011-06-06 20:04 mossroy Note Added: 0002541
2011-06-06 21:28 Dominique Note Added: 0002542
2011-06-17 07:23 mossroy Note Added: 0002597
2011-06-17 09:59 Dominique Note Added: 0002600
2011-06-17 10:42 ludovic Status feedback => assigned
2011-06-17 10:42 ludovic Assigned To => ludovic
2011-06-17 10:42 ludovic Target Version => 1.3.8
2011-06-17 12:28 ludovic Note Added: 0002601
2011-06-17 12:28 ludovic Status assigned => resolved
2011-06-17 12:28 ludovic Fixed in Version => 1.3.8
2011-06-17 12:28 ludovic Resolution open => fixed