Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] R-1.9.1

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Eric Sandall <eric AT sandall.us>
  • To: sm-discuss <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] R-1.9.1
  • Date: Fri, 16 Apr 2004 11:04:32 -0700

Quoting Duane Malcolm <d.malcolm AT auckland.ac.nz>:
> Hi all,
>
> I've just updated R to 1.9.1 and fixed a bug if it's compiled against
> xfree86 4.4.0. I was wondering if people can test it against older
> version of xfree86, Xorg, etc before I integrate it into the test
> grimoire. If you also want to you can my bash in the BUILD script. It is
> in the devel grimoire.
>
> Thanks.

Tested against xorg v6.7.0.

Getting this error:
Compile log for R 1.9.0 Built on Fri Apr 16 15:55:24 UTC 2004
Using gcc version: 3.3.3
/tmp/sorcery/cast/11281/casting.safe: line 8: configure: command not found

This patch applied to the spell fixes it (also cleans up BUILD a little):
====
--- BUILD.orig 2004-04-16 08:59:30.135450736 -0700
+++ BUILD 2004-04-16 09:14:39.278240024 -0700
@@ -3,10 +3,11 @@
if gaze installed xfree86|grep -c -q 4.4; then
sed "s/\#define NeedFunctionPrototypes 0/\/\*\#define
NeedFunctionPrototypes 0\*\//" ${SOURCE_DIRECTORY}/src/modules/X11/dataentry.c
> /tmp/dataentry.c &&
mv /tmp/dataentry.c ${SOURCE_DIRECTORY}/src/modules/X11/
- fi
+ fi &&

- configure &&
- make &&
+ ./configure &&
+ make &&
prepare_install &&
make install
+
) > $C_FIFO 2>&1
====

But then I get this error:
gcc -I. -I../../../src/include -I../../../src/include -I/usr/X11R6/include
-I/usr/local/include -DHAVE_CONFIG_H -D__NO_MATH
_INLINES -mieee-fp -fPIC -O -march=pentium3 -mmmx -mfpmath=sse -msse -pipe -c
dataentry.c -o dataentry.lo
In file included from dataentry.c:31:
/usr/X11R6/include/X11/Xlib.h:1400: error: parse error before "_Xconst"
/usr/X11R6/include/X11/Xlib.h:1488: error: parse error before "char"
/usr/X11R6/include/X11/Xlib.h:1516: error: parse error before "_Xconst"
...
In file included from dataentry.c:32:
/usr/X11R6/include/X11/Xutil.h:566: error: parse error before "_Xconst"
/usr/X11R6/include/X11/Xutil.h:606: error: parse error before "_Xconst"
/usr/X11R6/include/X11/Xutil.h:666: error: parse error before "_Xconst"
/usr/X11R6/include/X11/Xutil.h:678: error: parse error before "_Xconst"
/usr/X11R6/include/X11/Xutil.h:801: error: parse error before "_Xconst"
dataentry.c: In function `GetKey':
dataentry.c:1272: warning: passing arg 4 of `XLookupString' from incompatible
pointer type
dataentry.c: In function `GetCharP':
dataentry.c:1281: warning: passing arg 4 of `XLookupString' from incompatible
pointer type
dataentry.c: In function `doControl':
dataentry.c:1302: warning: passing arg 4 of `XLookupString' from incompatible
pointer type
make[5]: *** [dataentry.lo] Error 1
make[5]: Leaving directory `/usr/src/R-1.9.0/src/modules/X11'

So I fix that with this patch (includes the prior patch):
--- BUILD.orig 2004-04-16 08:59:30.135450736 -0700
+++ BUILD 2004-04-16 09:31:04.493464544 -0700
@@ -1,12 +1,13 @@
(
# This is required for xfree86 4.4.0 and above, I haven't tested 4.3.99 or
Xorg
- if gaze installed xfree86|grep -c -q 4.4; then
+ if gaze installed xfree86|grep -c -q 4.4 || spell_installed xorg; then
sed "s/\#define NeedFunctionPrototypes 0/\/\*\#define
NeedFunctionPrototypes 0\*\//" ${SOURCE_DIRECTORY}/src/modules/X11/dataentry.c
> /tmp/dataentry.c &&
mv /tmp/dataentry.c ${SOURCE_DIRECTORY}/src/modules/X11/
- fi
+ fi &&

- configure &&
- make &&
+ ./configure &&
+ make &&
prepare_install &&
make install
+
) > $C_FIFO 2>&1

and get this error:
installing doc/html/search ...
mkdir -p -- /usr/local/lib/R/doc/html/search
mkdir: `/usr/local/lib/R/doc/html/search' exists but is not a directory
make[4]: *** [installdirs] Error 1

I need to go study for my lab quiz in an hour so I'll leave it off here for
you.
;)

-sandalle

--
PGP Key Fingerprint: FCFF 26A1 BE21 08F4 BB91 FAED 1D7B 7D74 A8EF DD61
http://search.keyserver.net:11371/pks/lookup?op=get&search=0xA8EFDD61

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/E/IT$ d-- s++:+>: a-- C++(+++) BL++++VIS>$ P+(++) L+++ E-(---) W++ N+@ o?
K? w++++>-- O M-@ V-- PS+(+++) PE(-) Y++(+) PGP++(+) t+() 5++ X(+) R+(++)
tv(--)b++(+++) DI+@ D++(+++) G>+++ e>+++ h---(++) r++ y+
------END GEEK CODE BLOCK------

Eric Sandall | Source Mage GNU/Linux Developer
eric AT sandall.us | http://www.sourcemage.org/
http://eric.sandall.us/ | SysAdmin @ Inst. Shock Physics @ WSU
http://counter.li.org/ #196285 | http://www.shock.wsu.edu/


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




Archive powered by MHonArc 2.6.24.

Top of Page