Discussion:
[Synce-devel] Small error in the building of rra
Guido Diepen
2007-11-28 15:07:40 UTC
Permalink
Hi,

currently I am trying to get the whole syncing process running again. First I
want to start out with all the 'stable' stuff, and if this is working, I will
start trying to help out on the opensync 3.x svn stuff with testing. I read
that John is using evolution, so testing everything with kdepim might be of
use also :)

To not mess up my system, I decided to install everything to a subdirectory in
my home (~/syncing/) All libs/programs/includes etc will be in subdirs of
this directory.

When i try to compile rra from svn this results in a failure of finding
synce.h
The configure script finds it and makes sure that all compile scripts now
where to find it, except for the python subdirectory. When make goes into
this subdirectrory I get error messages that synce.h cannot be found.
(with all the other compiling stuff I see that the correct dirs are added to
the compiler arguments, but not in this dir)

The problem is that I am not familiar with configure and friends, therefore I
just state the problem and hopefully the person responsible knows how to
solve this problem.

Furthermore, some days ago I posted a question regarding the rndis and the
usb-rndis-lite drivers. I still don't know what the exact difference is
between those. Since I don't want to path my kernel, i downloaded the
usb-rndis-lite module and compiled this and it is running like a charm within
the 2.6.22 kernel of debian unstable.

Regards,

Guido Diepen
--
Aviation is proof that given the will, we have the
capacity to achieve the impossible.
--Eddie Rickenbacker
Mark Ellis
2007-11-28 15:10:32 UTC
Permalink
Post by Guido Diepen
Hi,
currently I am trying to get the whole syncing process running again. First I
want to start out with all the 'stable' stuff, and if this is working, I will
start trying to help out on the opensync 3.x svn stuff with testing. I read
that John is using evolution, so testing everything with kdepim might be of
use also :)
To not mess up my system, I decided to install everything to a subdirectory in
my home (~/syncing/) All libs/programs/includes etc will be in subdirs of
this directory.
When i try to compile rra from svn this results in a failure of finding
synce.h
The configure script finds it and makes sure that all compile scripts now
where to find it, except for the python subdirectory. When make goes into
this subdirectrory I get error messages that synce.h cannot be found.
(with all the other compiling stuff I see that the correct dirs are added to
the compiler arguments, but not in this dir)
The problem is that I am not familiar with configure and friends, therefore I
just state the problem and hopefully the person responsible knows how to
solve this problem.
Hi Guido

I can probably fix this, but can you paste the output around that
failure into an email so I can be certain where it is. Just give me
about 30 lines around that point.

Ta
Mark
Guido Diepen
2007-11-28 15:46:19 UTC
Permalink
Hi Mark,
Post by Mark Ellis
I can probably fix this, but can you paste the output around that
failure into an email so I can be certain where it is. Just give me
about 30 lines around that point.
Here you are. Everything so far has been configured
with --prefix=/home/guido/syncing
for all packages this is working without a hitch.

Here the output of make:
...
gcc -I/home/guido/syncing/include -I/home/guido/syncing/include -g -O2 -o .libs/rra-task-to-vtodo
rra-task-to-vtodo.o -L/home/guido/syncing/lib /home/guido/syncing/lib/librapi.so /home/guido/syncing/lib/libsynce.so -L/home/guido/syncing/sources/aa/rra/lib ../lib/.libs/librra.so /usr/lib/libmimedir.so
creating rra-task-to-vtodo
if
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../lib -I/home/guido/syncing/include -I/home/guido/syncing/include -g -O2 -MT
rra-timezone.o -MD -MP -MF ".deps/rra-timezone.Tpo" -c -o rra-timezone.o
rra-timezone.c; \
then mv -f ".deps/rra-timezone.Tpo" ".deps/rra-timezone.Po"; else
rm -f ".deps/rra-timezone.Tpo"; exit 1; fi
/bin/sh ../libtool --tag=CC --mode=link
gcc -I/home/guido/syncing/include -I/home/guido/syncing/include -g -O2 -L/home/guido/syncing/lib -lsynce -L/home/guido/syncing/lib -lrapi -lsynce -o
rra-timezone rra-timezone.o -L../lib ../lib/librra.la -lmimedir
gcc -I/home/guido/syncing/include -I/home/guido/syncing/include -g -O2 -o .libs/rra-timezone
rra-timezone.o -L/home/guido/syncing/lib /home/guido/syncing/lib/librapi.so /home/guido/syncing/lib/libsynce.so -L/home/guido/syncing/sources/aa/rra/lib ../lib/.libs/librra.so /usr/lib/libmimedir.so
creating rra-timezone
make[2]: Leaving directory `/home/guido/syncing/sources/aa/rra/src'
Making all in man
make[2]: Entering directory `/home/guido/syncing/sources/aa/rra/man'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/guido/syncing/sources/aa/rra/man'
Making all in python
make[2]: Entering directory `/home/guido/syncing/sources/aa/rra/python'
pyrexc ./pyrra.pyx -I../lib -o ./pyrra.c
if /bin/sh ../libtool --tag=CC --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.4 -I../lib -g -O2 -MT
pyrra_la-pyrra.lo -MD -MP -MF ".deps/pyrra_la-pyrra.Tpo" -c -o
pyrra_la-pyrra.lo `test -f 'pyrra.c' || echo './'`pyrra.c; \
then mv -f ".deps/pyrra_la-pyrra.Tpo" ".deps/pyrra_la-pyrra.Plo"; else
rm -f ".deps/pyrra_la-pyrra.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.4 -I../lib -g -O2 -MT
pyrra_la-pyrra.lo -MD -MP -MF .deps/pyrra_la-pyrra.Tpo -c
pyrra.c -fPIC -DPIC -o .libs/pyrra_la-pyrra.o
pyrra.c:19:19: error: synce.h: No such file or directory
pyrra.c:20:23: error: synce_log.h: No such file or directory
In file included from pyrra.c:21:
../lib/syncmgr.h:5:19: error: synce.h: No such file or directory
In file included from pyrra.c:21:
../lib/syncmgr.h:40: error: expected declaration specifiers or '...'
before '*' token
../lib/syncmgr.h:41: error: 'bool' declared as function returning a function
...

From this moment also still a large number of error messages, but you can
already see that the problem lays in the fact that gcc is not having the
correct arguments.

Hope this helps.

Regards,

Guido Diepen
--
Aviation is proof that given the will, we have the
capacity to achieve the impossible.
--Eddie Rickenbacker
Mark Ellis
2007-11-28 16:18:50 UTC
Permalink
Post by Guido Diepen
Making all in python
make[2]: Entering directory `/home/guido/syncing/sources/aa/rra/python'
pyrexc ./pyrra.pyx -I../lib -o ./pyrra.c
if /bin/sh ../libtool --tag=CC --mode=compile
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.4 -I../lib -g -O2 -MT
pyrra_la-pyrra.lo -MD -MP -MF ".deps/pyrra_la-pyrra.Tpo" -c -o
pyrra_la-pyrra.lo `test -f 'pyrra.c' || echo './'`pyrra.c; \
then mv -f ".deps/pyrra_la-pyrra.Tpo" ".deps/pyrra_la-pyrra.Plo"; else
rm -f ".deps/pyrra_la-pyrra.Tpo"; exit 1; fi
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/python2.4 -I../lib -g -O2 -MT
pyrra_la-pyrra.lo -MD -MP -MF .deps/pyrra_la-pyrra.Tpo -c
pyrra.c -fPIC -DPIC -o .libs/pyrra_la-pyrra.o
pyrra.c:19:19: error: synce.h: No such file or directory
pyrra.c:20:23: error: synce_log.h: No such file or directory
../lib/syncmgr.h:5:19: error: synce.h: No such file or directory
../lib/syncmgr.h:40: error: expected declaration specifiers or '...'
before '*' token
../lib/syncmgr.h:41: error: 'bool' declared as function returning a function
...
Guido Diepen
2007-11-28 16:38:40 UTC
Permalink
Hi Mark,
Looks like what I expected. Can you try the attached patch against a
clean rra tree from svn, you'll need to apply it before running
bootstrap. I haven't tested it for a non-standard location like you are
using, but cross your fingers and it should work !
The non-default location was not a problem before, I just added some extra
environment variables to ./configure and it was working.
Let me know if it works and I'll commit it.
Did a checkout, bootstrap, configure, and a make and it works without a
problem now.

Thanks a lot.

Guido Diepen
--
Aviation is proof that given the will, we have the
capacity to achieve the impossible.
--Eddie Rickenbacker
Mark Ellis
2007-11-28 17:36:55 UTC
Permalink
Post by Guido Diepen
Hi Mark,
Looks like what I expected. Can you try the attached patch against a
clean rra tree from svn, you'll need to apply it before running
bootstrap. I haven't tested it for a non-standard location like you are
using, but cross your fingers and it should work !
The non-default location was not a problem before, I just added some extra
environment variables to ./configure and it was working.
Let me know if it works and I'll commit it.
Did a checkout, bootstrap, configure, and a make and it works without a
problem now.
Thanks a lot.
Guido Diepen
Cool, committed.

Mark

Loading...