help-octave
[Top][All Lists]
Advanced

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

Re: issues compiling 2.1.69 on FreeBSD 5.4


From: Joan Picanyol i Puig
Subject: Re: issues compiling 2.1.69 on FreeBSD 5.4
Date: Thu, 21 Apr 2005 20:08:34 +0200
User-agent: Mutt/1.5.6i

* John W. Eaton <address@hidden> [20050421 16:03]:
> On 21-Apr-2005, Dmitri A. Sergatskov <address@hidden> wrote:
> 
> | Oops, I missed something.
> | 
> | Joan Picanyol i Puig wrote:
> | > Hi,
> | > 
> | > The octave port has been marked as broken, since it does not build on
> | > FreeBSD. I've tried it myself and had no luck (long lines):
> | > 
> | > g++ -I/usr/local/include -I/usr/include -I. -I.. -I../liboctave -I../src 
> -I../libcruft/misc  -I../glob -I../glob -DHAVE_CONFIG_H -mieee-fp -Wall -W 
> -Wshadow -g -O2 -rdynamic \
> |                                                                             
>                     ^^^^^^^^^^^^^^^^^^^
> | 
> | > -L..  -fPIC -L/usr/local/lib -o octave \
> | 
> | 
> | > main.o  \
> | > -L../liboctave -L../libcruft -L../src  \
> | > -loctinterp -loctave  -lcruft  ../glob/glob.o ../glob/fnmatch.o  \
> |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> | 
> | >  /usr/local/lib/libalapack_r.so -lcblas -lf77blas -latlas  -lreadline  
> -lncurses -lm  -L/usr/local/lib -L/usr/lib -lg2c -lm
> | > ../liboctave/liboctave.so: warning: warning: tempnam() possibly used 
> unsafely; consider using mkstemp()
> | > ../liboctave/liboctave.so: undefined reference to `fnmatch(char const*, 
> char const*, int)'
> | > 
> | > Any ideas?
> | 
> | Those ../glob should not be there. For some reason your makefile is messed 
> up.
> | Try to remake it with "make distclean" and configure etc...
> 
> You are right that they should not be there for 2.9.x, but the glob
> sources are still present in 2.1.x.  It looks to me like there is a
> declaration problem, either a missing extern "C" or one is used where
> it should not be.

I retried passing only --prefix to configure, and with LDFLAGS and
CPPFLAGS set make sure I didn't miss anything. The output below seems to
validate your point:

g++ -I/usr/local/include -I. -I.. -I../liboctave -I../src
-I../libcruft/misc  -I../glob -I../glob -DHAVE_CONFIG_H -mieee-fp -Wall
-W -Wshadow -g -O2  \
-L..  -fPIC -L/usr/local/lib -o octave \
main.o  balance.o  besselj.o  betainc.o  chol.o  colloc.o  daspk.o
dasrt.o  dassl.o  det.o  eig.o  expm.o  fft.o  fft2.o  fftn.o
fftw_wisdom.o  filter.o  find.o  fsolve.o  gammainc.o  gcd.o  getgrent.o
getpwent.o  getrusage.o  givens.o  hess.o  inv.o  kron.o  lpsolve.o
lsode.o  lu.o  minmax.o  pinv.o  qr.o  quad.o  qz.o  rand.o  schur.o
sort.o  sqrtm.o  svd.o  syl.o  time.o \
-L../liboctave -L../libcruft -L../src  \
../src/liboctinterp.a ../liboctave/liboctave.a  ../libcruft/libcruft.a
../glob/glob.o ../glob/fnmatch.o  \
 -lcblas -lf77blas -latlas -lfftw3 -lreadline  -lncurses -lm
 -L/usr/local/lib -L/usr/lib -lg2c -lm
 ../liboctave/liboctave.a(file-ops.o)(.text+0x23b): In function
 `file_ops::tempnam(std::string const&, std::string const&,
 std::string&)':
 /fs/scratch/mount/scratch/build/octave-2.1.69/liboctave/file-ops.cc:419:
 warning: warning: tempnam() possibly used unsafely; consider using
 mkstemp()
 ../liboctave/liboctave.a(glob-match.o)(.text+0x124): In function
 `glob_match::match(std::string const&)':
 /usr/include/c++/3.4/bits/basic_string.h:368: undefined reference to
 `fnmatch(char const*, char const*, int)'
 gmake[2]: *** [octave] Error 1
 gmake[2]: Leaving directory
 `/fs/scratch/mount/scratch/build/octave-2.1.69/src'
 gmake[1]: *** [src] Error 2
 gmake[1]: Leaving directory
 `/fs/scratch/mount/scratch/build/octave-2.1.69'
 gmake: *** [all] Error 2
 575,p3,2$ 

I'll retry with the patch on the other message, just saw it.

tks
-- 
pica



-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

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