Problem in compiling CLIPS on CentOS 64-bit.

228 views
Skip to first unread message

anu

unread,
Oct 10, 2009, 3:00:47 AM10/10/09
to CLIPSESG
Hello,

I am trying to compile CLIPS on 64-bit Cent OS 5.3 (x86_64 x86_64 GNU/
Linux) machine.

The program gets compiled but when tested, it works on some program
but not others.

However , on the 32-bit CentOs it works perfectly.

What are the precautions necessary to compile CLIPS on 64-bit machine.

Thanks for your help,

Sriram

CLIPS Support

unread,
Oct 11, 2009, 10:48:31 AM10/11/09
to CLIPSESG
Try using version 6.3 of CLIPS. Verify that you have linked with the
appropriate libraries. Check other compiler flags being used
(particularly optimization options as these sometimes require
conditions that valid C programs may not meet).

anu

unread,
Oct 21, 2009, 2:52:22 AM10/21/09
to CLIPSESG
Hello,

Yes , we are using CLIPS 6.30, viz. CLIPSJNI 0.2 beta.

The only changes we have made in the make file are
following:


0a1
>
9c10
< edbasic.o edmain.o edmisc.o edstruct.o edterm.o emathfun.o \
---
> emathfun.o \
18a20
> main.o \
30a33,43
>
> # As we are not using emacs-editor in Anusasaraka system ,we have removed the files
> # edbasic.o edmain.o edmisc.o edstruct.o edterm.o from compilation.
> #
> #
> #.c.o :
> # gcc -c -DLINUX -std=c99 -Wall -Wundef -Wpointer-arith -Wshadow -Wcast-qual \
> # -Wcast-align -Winline -Wmissing-declarations -Wredundant-decls \
> # -Woverloaded-virtual -Wmissing-prototypes -Wnested-externs \
> # -Wstrict-prototypes -Waggregate-return -Wno-implicit $<
>
33c46
< gcc -c -DLINUX -DALLOW_ENVIRONMENT_GLOBALS=0 -std=c99 -Wall -
Wundef -Wpointer-arith -Wshadow -Wcast-qual \
---
> gcc -c -DLINUX -std=c99 -Wall -Wundef -Wpointer-arith -Wshadow -Wcast-qual \
35c48
< -Woverloaded-virtual -Wmissing-prototypes -Wnested-externs \
---
> -Wmissing-prototypes -Wnested-externs -g \
38,39c51,62
< libCLIPSJNI.so : $(OBJS) CLIPSJNI_Environment.c
< gcc -o libCLIPSJNI.so -shared -Wall -I/opt/sun-j2sdk-1.4.2/
include -I/opt/sun-j2sdk-1.4.2/include/linux -lm $(OBJS)
CLIPSJNI_Environment.c
---
>
> # As we do not need Java environment in Anusasaraka system, we have commented this part
> #
> #libCLIPSJNI.so : $(OBJS) CLIPSJNI_Environment.c
> # gcc -o libCLIPSJNI.so -shared -Wall -I/opt/sun-j2sdk-1.4.2/include -I/opt/sun-j2sdk-1.4.2/include/linux -lm $(OBJS) CLIPSJNI_Environment.c
>
> # User defined functions are gdbm_lookup.c gdbm_lookup_p.c wx_utf8.c
> clips : $(OBJS)
> gcc -o myclips -Wall gdbm_lookup.c gdbm_lookup_p.c wx_utf8.c -lm -lgdbm $(OBJS)
>
> clean :
> -rm *.o



waiting for your reply,
Sriram

CLIPS Support

unread,
Oct 31, 2009, 6:26:44 PM10/31/09
to CLIPSESG
Use the most recent version of CLIPS 6.30. Go to
http://clipsrules.svn.sourceforge.net/viewvc/clipsrules/core/ and at
the bottom of the page click the "Download GNU tarball" link. There
are a couple of fixes in this more recent version for 64-bit
environments.

anu

unread,
Nov 3, 2009, 1:25:50 AM11/3/09
to CLIPSESG
Thank you very much for the fixes. It is working fine.
However, while compiling we were getting the warning

symbol.c: In function ‘HashInteger’:
symbol.c:800: warning: incompatible implicit declaration of built-in
function ‘llabs’

To avoid this, we have just added the following line in "symbol.c"
file.

long long int llabs(long long int num);

Thanks,
Sriram

On Nov 1, 3:26 am, CLIPS Support <gdronline2...@swbell.net> wrote:
> Use the most recent version of CLIPS 6.30. Go tohttp://clipsrules.svn.sourceforge.net/viewvc/clipsrules/core/and at

Rick Vinyard

unread,
Nov 24, 2009, 10:28:10 AM11/24/09
to clip...@googlegroups.com
Just and FYI:

There are also clips and clipsmm packages in Fedora's EPEL (Extra Packages for Enterprise Linux) for RHEL 5, CentOS 5, Scientific Linux, et. al.

You can find a summary of the specific clips/clipsmm packages here:
http://download.fedora.redhat.com/pub/epel/5/x86_64/repoview/letter_c.group.html

And more on EPEL here:
https://fedoraproject.org/wiki/EPEL

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CLIPSESG" group.
To post to this group, send email to CLIP...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/CLIPSESG?hl=en

--> IF YOU NO LONGER WANT TO RECEIVE EMAIL <--
Visit this group at http://groups.google.com/group/CLIPSESG?hl=en
Click on "Edit my membership" link.
Select the "No Email" radio button.
Click the "Save these settings" button.

--> IF YOU WANT TO UNSUBSCRIBE <--
Visit this group at http://groups.google.com/group/CLIPSESG?hl=en
Sign in
Click on "Edit my membership" link.
Click the "Unsubscribe" button.
Note: This appears to be the most reliable way to unsubscribe

Alternately, send email to CLIPSESG-u...@googlegroups.com. You will receive an email which you must respond to as well to unsubscribe. Clicking the link mentioned in the unsubscribe reply does not appear to work reliably.
-~----------~----~----~----~------~----~------~--~---


Reply all
Reply to author
Forward
0 new messages