[Scilab-Dev] Porting Scilab 5.1.1 on Mac OS X 10.4 PPC.
Pascal
sur.pignard at wanadoo.fr
Sat Aug 1 08:45:59 CEST 2009
Hello Sylvestre.
Many thanks for your answer.
I've tried first proposal. I've added "-Xlinker -m" to many makefiles.
I had to add it on several makefiles because LDFLAGS is redefined
inside makefiles without taken in account possible previous definition:
LDFLAGS = -L/sw/lib/
instead of:
LDFLAGS = -L/sw/lib/ $(LDFLAGS)
(maybe same way for other xxFLAGS)
I can send appart the whole multiply defined symbols.
All or almost has been build following:
$ ./configure --prefix=/Users/pascal/Documents/Programmation/
scilab-5.1.1-alpha-1/build --without-ocaml --without-fftw --without-
pvm --without-umfpack --without-matio
$ make
...
$ make install
...
$ export SCI=`pwd`
$ ./build/bin/scilab
Then, I've got a exec error:
./build/bin/scilab: line 592: 12872 Bus error
"$SCILABBIN" "$@"
Thread: 2
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000058
Thread 0:
0 libSystem.B.dylib 0x9000af48 mach_msg_trap + 8
1 libSystem.B.dylib 0x9000ae9c mach_msg + 60
2 com.apple.CoreFoundation 0x907de9ac __CFRunLoopRun + 832
3 com.apple.CoreFoundation 0x907de2b0 CFRunLoopRunSpecific + 268
4 com.apple.HIToolbox 0x932beb20 RunCurrentEventLoopInMode + 264
5 com.apple.HIToolbox 0x932be1b4 ReceiveNextEventCommon + 380
6 com.apple.HIToolbox 0x932be020
BlockUntilNextEventMatchingListInMode + 96
7 com.apple.AppKit 0x937a3734 _DPSNextEvent + 384
8 com.apple.AppKit 0x937a33f8 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
9 com.apple.AppKit 0x9379f93c -[NSApplication run] + 472
10 libawt.jnilib 0x9fe4d9e8 +[AWTStarter startAWT:] + 1848
11 com.apple.Foundation 0x92c04d40 __NSFireMainThreadPerform + 276
12 com.apple.CoreFoundation 0x9080f928 __CFRunLoopPerformPerform + 104
13 com.apple.CoreFoundation 0x907df300 __CFRunLoopDoSources0 + 384
14 com.apple.CoreFoundation 0x907de830 __CFRunLoopRun + 452
15 com.apple.CoreFoundation 0x907de2b0 CFRunLoopRunSpecific + 268
16 com.apple.CoreFoundation 0x907ed710 CFRunLoopRun + 52
17 libscishell.5.0.1.dylib 0x00436a1c initMacOSXEnv + 380
(initMacOSXEnv.c:244)
18 scilab-bin 0x00004ac0 main + 404 (mainscic.c:173)
19 scilab-bin 0x000048b0 _start + 760
20 scilab-bin 0x000045b4 start + 48
Any idea?
Should I try second proposal?
Thanks for your help, Pascal.
http://blady.pagesperso-orange.fr
Le 29 juil. 09 à 17:45, Sylvestre Ledru a écrit :
>
>> ...
>> /usr/bin/ld: multiple definitions of symbol _xerbla_
>> .libs/xerbla.o definition of _xerbla_ in section (__TEXT,__text)
>> ../../libs/blas/.libs/libsciblas.dylib(single module) definition of
>> _xerbla_
>> /usr/bin/ld: multiple definitions of symbol _lsame_
>> .libs/lsame.o definition of _lsame_ in section (__TEXT,__text)
>> ../../libs/blas/.libs/libsciblas.dylib(single module) definition of
>> _lsame_
>> collect2: ld returned 1 exit status
>> make[2]: *** [libscilapack.la] Error 1
>> make[1]: *** [all-recursive] Error 1
>> make: *** [all-recursive] Error 1
> Hmm, unusual problem ;)
>
> I would say that you can try three things here:
> * disable the error in the linker (LDFLAGS) when having a multiple
> definition.
> * echo "" > libs/lapack/xerbla.f
> * comment the compilation of xerbla.f in libs/lapack/Makefile.am
> and relaunch the autotools (automake && ./configure <your options>)
>
> Hope this helps,
> Sylvestre
>
>
>> Thanks for giving some help.
>>
>> Regards, Pascal Pignard.
>> http://blady.pagesperso-orange.fr
>>
>>
>>
>>
>>
>>
>
>
More information about the dev
mailing list