Compile fix with CVS for Fedora Core 4



When compiling gnome-pilot CVS for FC4 I get the following output when
running ./autogen

<snip>
configure: creating ./config.status
config.status: creating Makefile
sed: file ./confstatU18544/subs-3.sed line 35: unterminated `s' command
config.status: creating gnome-pilot.spec
sed: file ./confstatU18544/subs-3.sed line 35: unterminated `s' command
config.status: creating gpilotd/Makefile
sed: file ./confstatU18544/subs-3.sed line 35: unterminated `s' command
config.status: creating applet/Makefile
sed: file ./confstatU18544/subs-3.sed line 35: unterminated `s' command
config.status: creating conduits/Makefile
sed: file ./confstatU18544/subs-3.sed line 35: unterminated `s' command
config.status: creating conduits/backup/Makefile
sed: file ./confstatU18544/subs-3.sed line 35: unterminated `s' command
config.status: creating conduits/file/Makefile
sed: file ./confstatU18544/subs-3.sed line 35: unterminated `s' command
config.status: creating conduits/test/Makefile
sed: file ./confstatU18544/subs-3.sed line 35: unterminated `s' command
config.status: creating capplet/Makefile
sed: file ./confstatU18544/subs-3.sed line 35: unterminated `s' command
config.status: creating utils/Makefile
sed: file ./confstatU18544/subs-3.sed line 35: unterminated `s' command
config.status: creating idl/Makefile
sed: file ./confstatU18544/subs-3.sed line 35: unterminated `s' command
config.status: creating libgpilotdCM/Makefile
sed: file ./confstatU18544/subs-3.sed line 35: unterminated `s' command
config.status: creating po/Makefile.in
sed: file ./confstatU18544/subs-3.sed line 35: unterminated `s' command
config.status: creating help/Makefile
sed: file ./confstatU18544/subs-3.sed line 35: unterminated `s' command
config.status: creating help/C/Makefile
sed: file ./confstatU18544/subs-3.sed line 35: unterminated `s' command
config.status: creating gnome-pilot-2.0.pc
sed: file ./confstatU18544/subs-3.sed line 35: unterminated `s' command
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing intltool commands
config.status: executing default-1 commands

  Configuration :

          gnome-vfs    : yes
          network sync : yes
          usb          : yes
          gob          : yes
          pilot-link   : 0
        ((PILOT_LINK_VERSION > a) || \
        ((PILOT_LINK_VERSION == a) && \.12
                ((PILOT_LINK_MAJOR > b) || \
                ((PILOT_LINK_MAJOR == b) && (PILOT_LINK_MINOR >=
c))))).0
                ((PILOT_LINK_MAJOR == b) && (PILOT_LINK_MINOR >=
c)))))-pre3

Now type `make' to compile gnome-pilot
<snip>

Make fails as Makefile has no contents.

Spot the obvious error:

[hughsie hughsie gnome-pilot]$ cat /usr/include/pi-version.h|grep
PILOT_LINK_VERSION
#define PILOT_LINK_VERSION 0
        ((PILOT_LINK_VERSION > a) || \
        ((PILOT_LINK_VERSION == a) && \

When the autogen script assumes it will be returned:

[hughsie hughsie gnome-pilot]$ cat /usr/include/pi-version.h|grep
"define PILOT_LINK_VERSION"
#define PILOT_LINK_VERSION 0

I'm not sure if this is a FC4 specific patch, but I thought I would post
the patch I used to fix this in case anyone was having the same problem.

Not sure if this should be committed or not. Up to you guys.

Patch included as an attachment. This one issue confused me for a few
hours.

./autoconf now produces the correct:
<snip>

configure: creating ./config.status
config.status: creating Makefile
config.status: creating gnome-pilot.spec
config.status: creating gpilotd/Makefile
config.status: creating applet/Makefile
config.status: creating conduits/Makefile
config.status: creating conduits/backup/Makefile
config.status: creating conduits/file/Makefile
config.status: creating conduits/test/Makefile
config.status: creating capplet/Makefile
config.status: creating utils/Makefile
config.status: creating idl/Makefile
config.status: creating libgpilotdCM/Makefile
config.status: creating po/Makefile.in
config.status: creating help/Makefile
config.status: creating help/C/Makefile
config.status: creating gnome-pilot-2.0.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing intltool commands
config.status: executing default-1 commands

  Configuration :

          gnome-vfs    : yes
          network sync : yes
          usb          : yes
          gob          : yes
          pilot-link   : 0.12.0-pre3

Now type `make' to compile gnome-pilot

Hope this helps,

Richard Hughes

? gnome-pilot/autom4te.cache
? gnome-pilot/stamp-h1
? pilot-link/bindings/Python/setup-standalone.py
Index: gnome-pilot/acinclude.m4
===================================================================
RCS file: /cvs/gnome/gnome-pilot/acinclude.m4,v
retrieving revision 1.2
diff -u -r1.2 acinclude.m4
--- gnome-pilot/acinclude.m4	26 Jan 2003 21:32:20 -0000	1.2
+++ gnome-pilot/acinclude.m4	26 Jun 2005 15:32:14 -0000
@@ -52,10 +52,10 @@
 		piversion_include="pi-version.h"
 	fi
 
-	pi_version=`cat $incdir/pi-version.h|grep PILOT_LINK_VERSION|sed 's/#define PILOT_LINK_VERSION \([[0-9]]*\)/\1/'`
-	pi_major=`cat $incdir/pi-version.h|grep PILOT_LINK_MAJOR|sed 's/#define PILOT_LINK_MAJOR \([[0-9]]*\)/\1/'`
-	pi_minor=`cat $incdir/pi-version.h|grep PILOT_LINK_MINOR|sed 's/#define PILOT_LINK_MINOR \([[0-9]]*\)/\1/'`
-	pi_patch=`cat $incdir/pi-version.h|grep PILOT_LINK_PATCH|sed 's/#define PILOT_LINK_PATCH \"\(.*\)\"/\1/'`
+	pi_version=`cat $incdir/pi-version.h|grep "define PILOT_LINK_VERSION"|sed 's/#define PILOT_LINK_VERSION \([[0-9]]*\)/\1/'`
+	pi_major=`cat $incdir/pi-version.h|grep "define PILOT_LINK_MAJOR"|sed 's/#define PILOT_LINK_MAJOR \([[0-9]]*\)/\1/'`
+	pi_minor=`cat $incdir/pi-version.h|grep "define PILOT_LINK_MINOR"|sed 's/#define PILOT_LINK_MINOR \([[0-9]]*\)/\1/'`
+	pi_patch=`cat $incdir/pi-version.h|grep "define PILOT_LINK_PATCH"|sed 's/#define PILOT_LINK_PATCH \"\(.*\)\"/\1/'`
 
 	PILOT_LINK_VERSION="$pi_version.$pi_major.$pi_minor$pi_patch"
 

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]