I am able to build a 32 bit version of the ChannelArchiver
from sourceforge under R3-14-11 with some changes to cater to my local
environment and one change to ArchiveDataServer.cpp (see patch). However, I am
doing this on 32 bit linux.
[mshankar@cdlx27 ChannelArchiver]$ uname -a
Linux cdlx27 2.6.9-89.29.1.ELsmp #1 SMP Fri Sep 24 05:11:14
EDT 2010 i686 i686 i386 GNU/Linux
[mshankar@cdlx27 ChannelArchiver]$ cat /proc/version
Linux version 2.6.9-89.29.1.ELsmp
([email protected]) (gcc version 3.4.6 20060404 (Red Hat
3.4.6-11)) #1 SMP Fri Sep 24 05:11:14 EDT 2010
I checkout the latest HEAD from sourceforge.
cvs -z3
-d:pserver:[email protected]:/cvsroot/epicschanarch
co -P ChannelArchiver
Apply the patch to ArchiveDataServer.cpp
[mshankar@cdlx27 src]$ cd ChannelArchiver/
[mshankar@cdlx27 ChannelArchiver]$ patch -i
/scratch/Work/ChannelArchiver/ArchiveDataServer.cpp.patch
XMLRPCServer/ArchiveDataServer.cpp
patching file XMLRPCServer/ArchiveDataServer.cpp
[mshankar@cdlx27 ChannelArchiver]$
I have installed a later version of XML-RPC and Xerces in
/opt/local so I have to make some changes to accommodate that.
export PATH=/opt/local/bin:${PATH}
[mshankar@cdlx27 ChannelArchiver]$ xmlrpc-c-config --version
1.23.99
[mshankar@cdlx27 ChannelArchiver]$ ls -ltr
/opt/local/lib/libxerces-c*
lrwxrwxrwx 1 root root 18 Sep 21 15:24
/opt/local/lib/libxerces-c.so -> libxerces-c-3.1.so*
-rwxr-xr-x 1 root root 1113 Sep 21 15:24
/opt/local/lib/libxerces-c.la*
-rwxr-xr-x 1 root root 23935920 Sep 21 15:24
/opt/local/lib/libxerces-c-3.1.so*
-rw-r--r-- 1 root root 55748180 Sep 21 15:24
/opt/local/lib/libxerces-c.a
Make some changes to make.cfg to cater to my local
environment
[mshankar@cdlx27 ChannelArchiver]$ diff make.cfg
make.cfg.original
45d44
< USR_CXXFLAGS += -I/opt/local/include
48c47
< XMLRPCBASE=/opt/local
---
> XMLRPCBASE=$(LOCAL)
52c51
< USR_LDFLAGS += -L/opt/local/lib -lxerces-c
---
> USR_LDFLAGS += -L$(LOCAL)/lib -lxerces-c
Make one change to the xmlrpc-config-wrapper_original to
cater to the newer release of XMLRPCServer
[mshankar@cdlx27 ChannelArchiver]$ diff
XMLRPCServer/xmlrpc-config-wrapper XMLRPCServer/xmlrpc-config-wrapper_original
6c6
< 1.*) client="client"
---
> 1.0*) client="client"
I am now able to complete make
make[2]: Leaving directory `/scratch/Work/ChannelArchiverBuildTest/src/ChannelArchiver/Manager/O.linux-x86'
make[1]: Leaving directory
`/scratch/Work/ChannelArchiverBuildTest/src/ChannelArchiver/Manager'
[mshankar@cdlx27 ChannelArchiver]$ ls -ltr
Manager/O.linux-x86/
total 1652
-rw-rw-r-- 1 mshankar cd 297 Oct 26 13:53 ascii.depends
-rw-rw-r-- 1 mshankar cd 194 Oct 26 13:53 Makefile
-rw-rw-r-- 1 mshankar cd 204904 Oct 26 13:53 main.o
-rw-rw-r-- 1 mshankar cd 719 Oct 26 13:53 main.depends
-rw-rw-r-- 1 mshankar cd 120500 Oct 26 13:53 ascii.o
-rwxrwxr-x 1 mshankar cd 1335163 Oct 26 13:53
ArchiveManager*
Let me know if you are still having issues and we'll see if
we can find a 64 bit linux to test the compilation on.
Regards,
Murali