Bug 584

Summary: Problem with glibc to compile C code's interface with Scilab
Product: Mageia Reporter: Filipe Saraiva <mail>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: CVE:
Status comment:

Description Filipe Saraiva 2011-03-29 02:54:16 CEST
I'm working with Scilab, a mathematical programming enviroment, in version 5.3.1 downloaded in website http://www.scilab.org/

I'm trying to compile the example simple_call_scilab.c in Mageia, but I'm having problems. I'm using this tutorials with models:
1 - http://help.scilab.org/docs/5.3.1/en_US/compile_and_run_call_scilab.html
2 - http://web.archiveorange.com/archive/v/7BjlWYq3aCvkc0v6j3Bs

The code of simple_call_scilab is in scilab-5.3.1/share/scilab/modules/call_scilab/examples/call_scilab/c/common/simple_call_scilab.c

My Makefile configuration is:

#Begin Makefile ---------------------------------------
# A sample Makefile building a C code using Call Scilab using Scilab binary
PATH_SCILAB = /home/filipe/scilab-5.3.1
# Note that PATH_SCILAB can be /usr/ is using a packaged version of Scilab.
SCILAB_CFLAGS = -I$(PATH_SCILAB)/include/scilab/
SCILAB_LDFLAGS = -lscilab
PATH_TO_LIB_SCILAB = $(PATH_SCILAB)/lib/scilab/
PATH_TO_LIB_CALL_SCILAB = $(PATH_SCILAB)/lib/scilab/

all: simple_call_scilab.c
        gcc -o myExample $(SCILAB_LDFLAGS) -L$(PATH_TO_LIB_SCILAB) -L$(PATH_TO_LIB_CALL_SCILAB) $(SCILAB_CFLAGS) simple_call_scilab.c

#End Makefile ---------------------------------------

Before running make, I run:

$ export LD_LIBRARY_PATH=/home/filipe/scilab-5.3.1/lib/scilab:/home/filipe/scilab-5.3.1/lib/thirdparty
$ export SCI=/home/filipe/scilab-5.3.1/share/scilab/

After this configurations, I running make and:

$ make
gcc -o myExample -lscilab -L/home/filipe/scilab-5.3.1/lib/scilab/ -L/home/filipe/scilab-5.3.1/lib/scilab/ -I/home/filipe/scilab-5.3.1/include/scilab/ simple_call_scilab.c
/usr/lib/gcc/x86_64-mageia-linux-gnu/4.5.2/cc1: /home/filipe/scilab-5.3.1/lib/thirdparty/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /usr/lib64/libppl_c.so.2)
/usr/lib/gcc/x86_64-mageia-linux-gnu/4.5.2/cc1: /home/filipe/scilab-5.3.1/lib/thirdparty/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by /usr/lib64/libppl.so.7)
make: ** [all] Error 1

My question is: this problem is with glibc of Mageia?

Thank's,
Comment 1 Filipe Saraiva 2011-03-29 03:31:40 CEST
Ok, after a lot days I resolved it copying the libstdc++.so.6 and libstdc++.so.6.0.14 to scilab-5.3.1/lib/thirdparty. The problem is with Scilab, and not with Mageia.

Sorry.

Status: NEW => RESOLVED
Resolution: (none) => FIXED