From bug-octave-request at bevo dot che dot wisc dot edu Tue Dec 15 15:21:34 1998 Subject: Re: Compile error -- undefined symbol set_new_handler From: Brian Tyrrell To: "John W. Eaton" Cc: bug-octave at bevo dot che dot wisc dot edu Date: Tue, 15 Dec 1998 16:23:31 -0500 > >Edit Makeconf and delete -rdynamic where it appears and run make >again. I'll fix the test for this compiler flag before the actual >release. > Regardless of the -rdynamic flag's existance, the compilation still fails with the same error. Here is the tail of the log. Why is set_new_handler undefined? {most edited out} from qzval.cc:31: /usr/include/limits.h:163: warning: `DBL_MAX' redefined /opt/gcc/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.57/include/float.h:63: warning: this is the location of the previous definition /usr/include/limits.h:165: warning: `DBL_MIN' redefined /opt/gcc/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.57/include/float.h:54: warning: this is the location of the previous definition /usr/include/limits.h:168: warning: `FLT_MAX' redefined /opt/gcc/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.57/include/float.h:35: warning: this is the location of the previous definition /usr/include/limits.h:169: warning: `FLT_MIN' redefined /opt/gcc/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.57/include/float.h:26: warning: this is the location of the previous definition c++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc -I../glob -I../glob -DHAVE_CONFIG_H -fno-rtti -fno-exceptions -fno-implicit-templates -g -O2 -Wall rand.cc rand.cc: In function `class octave_value_list do_rand(const class octave_value_list &, int)': rand.cc:153: warning: variable `int n' might be clobbered by `longjmp' or `vfork' rand.cc:154: warning: variable `int m' might be clobbered by `longjmp' or `vfork' rand.cc:299: warning: variable `int r' might be clobbered by `longjmp' or `vfork' rand.cc:299: warning: variable `int c' might be clobbered by `longjmp' or `vfork' ../liboctave/dMatrix.h:54: warning: variable `int m' might be clobbered by `longjmp' or `vfork' ../liboctave/dMatrix.h:54: warning: variable `int n' might be clobbered by `longjmp' or `vfork' ../liboctave/MArray2.h:110: warning: variable `int n' might be clobbered by `longjmp' or `vfork' ../liboctave/MArray2.h:110: warning: variable `int m' might be clobbered by `longjmp' or `vfork' rand.cc:300: warning: variable `int j' might be clobbered by `longjmp' or `vfork' rand.cc:301: warning: variable `int i' might be clobbered by `longjmp' or `vfork' rand.cc:308: warning: variable `int i' might be clobbered by `longjmp' or `vfork' rand.cc:308: warning: variable `int j' might be clobbered by `longjmp' or `vfork' ../liboctave/Array2.h:145: warning: variable `int j' might be clobbered by `longjmp' or `vfork' ../liboctave/Array2.h:145: warning: variable `int i' might be clobbered by `longjmp' or `vfork' rand.cc:313: warning: variable `int i' might be clobbered by `longjmp' or `vfork' rand.cc:313: warning: variable `int j' might be clobbered by `longjmp' or `vfork' ../liboctave/Array2.h:145: warning: variable `int j' might be clobbered by `longjmp' or `vfork' ../liboctave/Array2.h:145: warning: variable `int i' might be clobbered by `longjmp' or `vfork' c++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc -I../glob -I../glob -DHAVE_CONFIG_H -fno-rtti -fno-exceptions -fno-implicit-templates -g -O2 -Wall schur.cc c++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc -I../glob -I../glob -DHAVE_CONFIG_H -fno-rtti -fno-exceptions -fno-implicit-templates -g -O2 -Wall sort.cc c++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc -I../glob -I../glob -DHAVE_CONFIG_H -fno-rtti -fno-exceptions -fno-implicit-templates -g -O2 -Wall svd.cc c++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc -I../glob -I../glob -DHAVE_CONFIG_H -fno-rtti -fno-exceptions -fno-implicit-templates -g -O2 -Wall syl.cc c++ -c -I. -I.. -I../liboctave -I../src -I../libcruft/misc -I../glob -I../glob -DHAVE_CONFIG_H -fno-rtti -fno-exceptions -fno-implicit-templates -g -O2 -Wall time.cc c++ -I. -I.. -I../liboctave -I../src -I../libcruft/misc -I../glob -I../glob -DHAVE_CONFIG_H -fno-rtti -fno-exceptions -fno-implicit-templates -g -O2 -Wall \ -L.. -fPIC -g -o octave \ octave.o builtins.o balance.o besselj.o betainc.o chol.o colloc.o dassl.o det.o eig.o expm.o fft.o fft2.o filter.o find.o fsolve.o gammainc.o getgrent.o getpwent.o getrusage.o givens.o hess.o ifft.o ifft2.o inv.o log.o lpsolve.o lsode.o lu.o minmax.o pinv.o qr.o quad.o qzval.o rand.o schur.o sort.o svd.o syl.o time.o \ -L../liboctave -L../libcruft -L../src -Xlinker -R -Xlinker /tmp/tyrrell/octave/lib/octave-2.0.13.95 \ ../src/liboctinterp.a ../liboctave/liboctave.a ../libcruft/libcruft.a ../readline/libreadline.a ../kpathsea/libkpathsea.a ../glob/libglob.a \ -lg2c -lm -L/usr/ccs/lib -L/usr/lib -L/opt/gcc/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.57 -L/opt/gcc/sparc-sun-solaris2.5.1/lib -L/usr/ccs/bin -L/usr/ccs/lib -L/opt/gcc/lib -lm -lcurses -ldl -lsocket -lm Undefined first referenced symbol in file set_new_handler ../src/liboctinterp.a(sighandlers.o) ld: fatal: Symbol referencing errors. No output written to octave collect2: ld returned 1 exit status gmake[2]: *** [octave] Error 1 gmake[2]: Leaving directory `/tmp/tyrrell/octave-2.0.13.95/src' gmake[1]: *** [src] Error 2 gmake[1]: Leaving directory `/tmp/tyrrell/octave-2.0.13.95' gmake: *** [all] Error 2