I have tried to build optiminterp-0.3.2 on octave-3.0.5 that built myself using 
gcc-4.4.0-TDM-dw2.

I met the following error

c:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0-dw2/libgfortran.a(error.o):error.
c:(.text+0x6b8): multiple definition of `_gfortran_runtime_error'
c:/Programs/OctaveBuild/lib/octave-3.0.5/liboctave.dll.a(d020226.o):(.text+0x0):
 first defined here
c:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0-dw2/libgfortran.a(error.o):error.
c:(.text+0x6fc): multiple definition of `_gfortran_os_error'
c:/Programs/OctaveBuild/lib/octave-3.0.5/liboctave.dll.a(d020219.o):(.text+0x0):
 first defined here
collect2: ld returned 1 exit status
make: *** [optiminterp.oct] Error 1

I have tried '--allow-multiple-definition' but the results were the same.
Therefore I have tryied

ar x d020226.o liboctave.dll.a
ar x d020219.o liboctave.dll.a
ar d liboctave.dll.a d020226.o
ar d liboctave.dll.a d020219.o
ranlib liboctave.dll.a

and tried 

pkg install optiminterp-0.3.2.tar.gz

which gave

c:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0-dw2/libgfortran.a(error.o):error.
c:(.text+0x6b8): multiple definition of `_gfortran_runtime_error'
c:/Programs/OctaveBuild/lib/octave-3.0.5/libcruft.dll.a(d000641.o):(.text+0x0):
first defined here
c:/programs/mingw/bin/../lib/gcc/mingw32/4.4.0-dw2/libgfortran.a(error.o):error.
c:(.text+0x6fc): multiple definition of `_gfortran_os_error'
c:/Programs/OctaveBuild/lib/octave-3.0.5/libcruft.dll.a(d000635.o):(.text+0x0):
first defined here
collect2: ld returned 1 exit status
make: *** [optiminterp.oct] Error 1

So I have tried 

ar x d000641.o libcruft.dll.a
ar x d000635.o libcruft.dll.a
ar d libcruft.dll.a d000641.o
ar d libcruft.dll.a d000635.o
ranlib libcruft.dll.a

and 

pkg install optiminterp-0.3.2.tar.gz

pkg list
      optiminterp *|   0.3.2 | ...\share\octave\packages\optiminterp-0.3.2

It seems that the above procedures went well.

Is there any smart way to avoid this kind of  multiple definition error?

Any comments?

Tatsuro



--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to