octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: linking liboctave fails (lapack missing?)


From: John W. Eaton
Subject: Re: linking liboctave fails (lapack missing?)
Date: Wed, 26 Aug 2009 11:37:37 -0400

On 19-Aug-2009, Benjamin Lindner wrote:

| John W. Eaton wrote:
| > On 18-Aug-2009, Benjamin Lindner wrote:
| > 
| > | John W. Eaton wrote:
| > | > On 15-Aug-2009, Benjamin Lindner wrote:
| > | > 
| > | > | Now for the undefined reference linker errors:
| > | > 
| > | > I checked in some additional changes.  I will deal with the mkoctfile
| > | > and octave-bug scripts/programs later, but is there anything that I
| > | > missed for building libcruft, liboctave, liboctinterp, and the .oct
| > | > files?
| > | > 
| > | 
| > | Aside from the pending octave-bug.cc and mkoctfile.cc changes,
| > | building and linking completes successfully for mingw32/gcc.
| > 
| > I checked in changes for octave-bug.cc.in and mkoctfile.cc.in so they
| > should build now.  Are there still problems?  BTW, this is why I think
| > we should eliminate the script versions of these files.  It would be
| > easier to ensure consistency if we didn't have both shell script and
| > C++ versions...
| > 
| > jwe
| > 
| 
| building from the following tip
| 
| changeset:   9545:8670e55078fd
| tag:         tip
| user:        Jaroslav Hajek <address@hidden>
| date:        Mon Aug 17 14:46:18 2009 +0200
| summary:     allow constructing octave_value_list from size
| 
| build fails at build-octave.cc with the attached errors.
| I guess all substitution variables should be prefixed with 
| 'OCTAVE_CONF_' as in the attached changeset.
| 
| Furthermore, there is a '|' character where it should be a '+' character 
| in line 254 in mkoctfile.cc.in -> see changeset.
| 
| 
| However, linking liboctinterp.dll now again fails with the following error
| Creating library file: 
| liboctinterp.dll.a../libcruft/blas-xtra/xerbla.o:xerbla.f:(.text+0x50): 
| undefined reference to `_gfortran_st_write'
| ../libcruft/blas-xtra/xerbla.o:xerbla.f:(.text+0x67): undefined 
| reference to `_gfortran_transfer_character'
| ../libcruft/blas-xtra/xerbla.o:xerbla.f:(.text+0x7e): undefined 
| reference to `_gfortran_transfer_integer'
| ../libcruft/blas-xtra/xerbla.o:xerbla.f:(.text+0x86): undefined 
| reference to `_gfortran_st_write_done'
| 
| Since xerbla.o is linked directly into liboctinterp.dll, $(FLIBS) is 
| required in the link dependencies as
| 
| diff -r 87d36823eb0d src/Makefile.in
| --- a/src/Makefile.in   Wed Aug 19 10:09:44 2009 +0200
| +++ b/src/Makefile.in   Wed Aug 19 10:27:04 2009 +0200
| @@ -331,7 +331,7 @@
|     $(HDF5_LDFLAGS) $(HDF5_LIBS) $(Z_LDFLAGS) $(Z_LIBS) \
|     $(OPENGL_LIBS) $(X11_LIBS) $(CARBON_LIBS) \
|     $(READLINE_LIBS) \
| -  $(LIBS)
| +  $(FLIBS) $(LIBS)
| 
|   OCT_LINK_DEPS = $(RLD_FLAG) -L. $(LIBOCTINTERP) \
|     -L../liboctave $(LIBOCTAVE) \

I made this change.

| The rest builds & links fine.

I added a ChangeLog entry and checked in your changeset.

Thanks,

jwe


reply via email to

[Prev in Thread] Current Thread [Next in Thread]