SOGo_5.2.0 compilation issue

Just to let you know, we could not build anymore SOGo on our own, something has changed and the C compilation got complains.

We need to inverstigate

I’m going to try to build SOGo 5.2.0 on Arch Linux this weekend and see how that goes,
hoping to figure out why we have this linker error and how to solve it on EL7.

3 Likes

you are our only hope

yes same compilation error in archlinux : see https://aur.archlinux.org/packages/sogo/

Do you have the phone number of deons ?

checked the sogo.git of arch, will try it :-?

Over here SOGo 5.2.0 builds fine on Arch Linux

Have not figured out why…

1 Like

I move slowly sorry, next step is a new compilation error

SOGoTNEFMailBodyPart.m:43:18: fatal error: ytnef.h: No such file or directory
 #import <ytnef.h>
                  ^
compilation terminated.
gmake[3]: *** [obj/Mailer.obj/SOGoTNEFMailBodyPart.m.o] Error 1
gmake[2]: *** [Mailer.all.wobundle.variables] Error 2
gmake[2]: Leaving directory `/builddir/build/BUILD/sogo-SOGo-5.2.0/SoObjects/Mailer'
gmake[1]: *** [internal-all] Error 2
gmake[1]: Leaving directory `/builddir/build/BUILD/sogo-SOGo-5.2.0/SoObjects'
make: *** [internal-all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.jI3sss (%build)

Add ytnef libytnef libytnef-devel to the BuildRequires, I guess we have to build a our version of ytnef

I think we need to build

ytnef
libytnef
libytnef-devel

SOGo now use ytnef == 1.9.3 and epel use another version 2.6-12

If I do a BuildRequire ...... ytnef = 1.9.3 , libytnef libytnef-devel and I push the ytnef version of SOGo to the local repository, then the error is changed

Transaction check error:
  file /usr/lib64/libytnef.so.0.0.0 conflicts between attempted installs of ytnef-1.9.3-1.x86_64 and libytnef-1.5-14.el7.x86_64
1 Like
1 Like

It did not come to my mind the version off ytnef could be a problem…

And still do not see the how it relates to the problem the linker can not find the compiled Sogo objects
( /usr/bin/ld: cannot find -lSOGo )

Going to dive in the over the weekend again. :thinking:

1 Like

ytnef is needed in the Requires of the sogo rpm now
libytnef-devel is needed in the Buildrequires of sogo for the missing linker

Unfortunately EPEL provide a rpm of the epoch 0 (2.6) and we need a version of the epoch 1 (1.9.3)

Now I have another error that an import is missing even if I build myself the rpm of *ytnef*, probably the file is not in the good path because I took a spec of fedora

SOGoTNEFMailBodyPart.m:43:18: fatal error: ytnef.h: No such file or directory
 #import <ytnef.h>
                  ^

to be continued

the goal of SOGo developers

%description
Yerase's TNEF Stream Reader.  Can take a TNEF Stream (winmail.dat) sent from
Microsoft Outlook (or similar products) and extract the attachments, including
construction of Contact Cards & Calendar entries.

cd /path/2/yourfolder
wget https://packages.inverse.ca/SOGo/nightly/5/rhel/7/x86_64/RPMS/ytnef-1.9.3-1.x86_64.rpm
createrepo /path/2/yourfolder

add

Requires ..... ytnef = 1.9.3
BuildRequires ..... ytnef = 1.9.3

That’s it we can build SOGo but we need to push in nethforge ytnef as a requirement

-rw-r--r-- 1 stephdl stephdl 359K 17 sept. 16:15 libwbxml-0.11.6-1.ns7.src.rpm
-rw-r--r-- 1 stephdl stephdl  96K 17 sept. 16:15 libwbxml-0.11.6-1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl 200K 17 sept. 16:15 libwbxml-debuginfo-0.11.6-1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  14K 17 sept. 16:15 libwbxml-devel-0.11.6-1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  33M 17 sept. 16:20 sogo-5.2.0-1.ns7.src.rpm
-rw-r--r-- 1 stephdl stephdl  20M 17 sept. 16:20 sogo-5.2.0-1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl 142K 17 sept. 16:20 sogo-activesync-5.2.0-1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl 1,8M 17 sept. 16:20 sogo-debuginfo-5.2.0-1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl 376K 17 sept. 16:20 sogo-devel-5.2.0-1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  16K 17 sept. 16:20 sogo-ealarms-notify-5.2.0-1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  16K 17 sept. 16:20 sogo-slapd-sockd-5.2.0-1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  59K 17 sept. 16:20 sogo-tool-5.2.0-1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl 2,2M 17 sept. 16:18 sope49-4.9-5.2.0.1.ns7.src.rpm
-rw-r--r-- 1 stephdl stephdl 923K 17 sept. 16:18 sope49-appserver-4.9-5.2.0.1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl 215K 17 sept. 16:18 sope49-appserver-devel-4.9-5.2.0.1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl 208K 17 sept. 16:20 sope49-cards-5.2.0-1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl 117K 17 sept. 16:20 sope49-cards-devel-5.2.0-1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl 348K 17 sept. 16:18 sope49-core-4.9-5.2.0.1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  63K 17 sept. 16:18 sope49-core-devel-4.9-5.2.0.1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl 2,8M 17 sept. 16:18 sope49-debuginfo-4.9-5.2.0.1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl 173K 17 sept. 16:18 sope49-gdl1-4.9-5.2.0.1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  68K 17 sept. 16:20 sope49-gdl1-contentstore-5.2.0-1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  73K 17 sept. 16:20 sope49-gdl1-contentstore-devel-5.2.0-1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  27K 17 sept. 16:18 sope49-gdl1-devel-4.9-5.2.0.1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  37K 17 sept. 16:18 sope49-gdl1-mysql-4.9-5.2.0.1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  43K 17 sept. 16:18 sope49-gdl1-postgresql-4.9-5.2.0.1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  54K 17 sept. 16:18 sope49-ldap-4.9-5.2.0.1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  11K 17 sept. 16:18 sope49-ldap-devel-4.9-5.2.0.1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl 305K 17 sept. 16:18 sope49-mime-4.9-5.2.0.1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  33K 17 sept. 16:18 sope49-mime-devel-4.9-5.2.0.1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  20K 17 sept. 16:18 sope49-sbjson-2.3.1-5.2.0.1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  11K 17 sept. 16:18 sope49-sbjson-devel-2.3.1-5.2.0.1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl 208K 17 sept. 16:18 sope49-xml-4.9-5.2.0.1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  28K 17 sept. 16:18 sope49-xml-devel-4.9-5.2.0.1.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl 303K 17 sept. 16:18 ytnef-1.9.3-3.ns7.src.rpm
-rw-r--r-- 1 stephdl stephdl  65K 17 sept. 16:18 ytnef-1.9.3-3.ns7.x86_64.rpm
-rw-r--r-- 1 stephdl stephdl  83K 17 sept. 16:18 ytnef-debuginfo-1.9.3-3.ns7.x86_64.rpm

Need to test now :smiley:

3 Likes