[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Building 2.1.40 on cygwin with --enable-shared --enable-dl
From: |
John W. Eaton |
Subject: |
Building 2.1.40 on cygwin with --enable-shared --enable-dl |
Date: |
Fri, 22 Nov 2002 16:22:35 -0600 |
On 22-Nov-2002, Andy Adler <address@hidden> wrote:
| I'm having trouble building 2.1.40 on cygwin with --enable-shared
| and --enable-dl.
|
| I get the following:
|
| g++ -shared -Wl,--export-all-symbols -Wl,--enable-auto-import
| -Wl,--out-implib=liboctinterp.dll.a -o liboctinterp.dll
| BaseSLList.o Cell.o ...
| Creating library file: liboctinterp.dll.a
| ../libcruft/blas-xtra/xerbla.o(.text+0x16):xerbla.f: undefined reference
| to `_s_wsfe'
| ../libcruft/blas-xtra/xerbla.o(.text+0x31):xerbla.f: undefined reference
| to `_do_fio'
| ../libcruft/blas-xtra/xerbla.o(.text+0x4c):xerbla.f: undefined reference
| to `_do_fio'
| ../libcruft/blas-xtra/xerbla.o(.text+0x51):xerbla.f: undefined reference
| to `_e_wsfe'
| collect2: ld returned 1 exit status
| make[2]: *** [liboctinterp.dll] Error 1
| make[2]: Leaving directory `/usr/src/octave-2.1.40-dynlink/src'
| make[1]: *** [src] Error 2
| make[1]: Leaving directory `/usr/src/octave-2.1.40-dynlink'
| make: *** [all] Error 2
|
| This worked fine on 2.1.39.
| Additionally, I can compile 2.1.40 with --enable-static with no
| problem.
Please try the following patch and let me know if it solves the
problem.
Thanks,
jwe
2002-11-22 John W. Eaton <address@hidden>
* Makefile.in (OCTINTERP_LINK_DEPS): Include $(FLIBS) in
OCTINTERP_LINK_DEPS.
Index: Makefile.in
===================================================================
RCS file: /usr/local/cvsroot/octave/src/Makefile.in,v
retrieving revision 1.303
diff -u -r1.303 Makefile.in
--- Makefile.in 8 Nov 2002 19:51:04 -0000 1.303
+++ Makefile.in 22 Nov 2002 22:21:41 -0000
@@ -202,7 +202,8 @@
endif
ifeq ($(INCLUDE_LINK_DEPS),true)
- OCTINTERP_LINK_DEPS = -L../liboctave $(LIBOCTAVE) -L../libcruft $(LIBCRUFT)
+ OCTINTERP_LINK_DEPS = \
+ -L../liboctave $(LIBOCTAVE) -L../libcruft $(LIBCRUFT) $(FLIBS)
OCT_LINK_DEPS = \
-L../libcruft $(LIBCRUFT) -L../liboctave $(LIBOCTAVE) \
-L. $(LIBOCTINTERP) $(BLAS_LIBS) $(FFTW_LIBS) $(FLIBS)
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------