0.6 Build problems on SunOS 4.1.4

0.6 Build problems on SunOS 4.1.4

Post by Dean Pov » Thu, 02 May 1996 04:00:00



Hi I am trying to build ptolemy from sources and am running into a whole
bunch of bad compiles mainly due to the Complex class.  I would really
be greatful if someone can help me.

BTW I am using:
gcc 2.7.2
libg++ 2.7.1

Ptolemy is installed in /work/src/ptolemy with a symlink in /users/ptolemy

Here is my environment setup:
USER=ptolemy
LOGNAME=ptolemy
HOME=/work/src/ptolemy
SHELL=/bin/csh
PATH=/users/ptolemy/bin:/users/ptolemy/bin.sun4:/users/ptolemy/vendors/bin:/usr/X11/bin:/usr/openwin/bin:/usr/local/bin:/opt/SUNWspro/bin:/usr/bin:/bin:/usr/ucb:/usr/bsd:/usr/bin/X11:/usr/ccs/bin:.
TERM=xterm
PWD=/work/src/GNU
PTOLEMY=/users/ptolemy
PT_DEBUG=ptgdb
PTARCH=sun4
PRINTER=lw
:UP=\E[%dA:al=\E[L:am:bs:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:co#80:cs=\E[%i%d;%dr:ct=\E[3k:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:im=\E[4h:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:kb=^H:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:kn#4:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:li#65:md=\E[1m:me=\E[m:mi:mr=\E[7m:ms:nd=\E[C:pt:rs=\E[r\E<\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:se=\E[m:sf=\n:so=\E[7m:sr=\EM:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[m:up=\E[A:us=\E[4m:xn:
DISPLAY=jupiter:0.0
GCC_EXEC_PREFIX=/usr/local/lib/gcc-lib/sun4/2.7.2/
C_INCLUDE_PATH=/usr/local/lib/gcc-lib/sun4/2.7.2/include
CPLUS_INCLUDE_PATH=/usr/local/lib/g++-include:/usr/local/sun4/include:/usr/local/lib/gcc-lib/sun4/2.7.2/include

And here is the output from the compile of the ComplexSubset.cc file in the
kernel directory. NB: Other files fail as well nearly always with a

blah.cc:x: `class Complex' used where a floating point value was expected
blah.cc:x: aggregate value used where a float was expected

Complex.cc make:
---------------
g++  -O2  -Wall -Wsynth   -fno-for-scope  -I../../src/kernel -I../../src/compat/ptolemy -c ../../src/kernel/ComplexSubset.cc
/usr/local/lib/g++-include/streambuf.h: In method `void ios::init(struct streambuf *, class ostream *)':
In file included from /usr/local/lib/g++-include/iostream.h:31,
                 from /usr/local/lib/g++-include/stream.h:31,
                 from ../../src/kernel/ComplexSubset.cc:39:
/usr/local/lib/g++-include/streambuf.h:448: warning: `void ios::init(struct streambuf *, class ostream *)' was used before it was declared inline
/usr/local/lib/g++-include/streambuf.h:252: warning: previous non-inline declaration here
../../src/kernel/ComplexSubset.cc: In function `class Complex exp(const class Complex &)':
../../src/kernel/ComplexSubset.cc:60: `class Complex' used where a floating point value was expected
../../src/kernel/ComplexSubset.cc:60: aggregate value used where a float was expected
../../src/kernel/ComplexSubset.cc: In function `class Complex log(const class Complex &)':
../../src/kernel/ComplexSubset.cc:65: no matching function for call to `Complex::Complex (Complex, double)'
../../src/kernel/ComplexSubset.h:49: candidates are: Complex::Complex()
../../src/kernel/ComplexSubset.h:50:                 Complex::Complex(double, double)
../../src/kernel/ComplexSubset.h:51:                 Complex::Complex(const Complex &)
../../src/kernel/ComplexSubset.cc:66: warning: control reaches end of non-void function `log(const Complex &)'
../../src/kernel/ComplexSubset.cc: In function `class Complex pow(const class Complex &, double)':
../../src/kernel/ComplexSubset.cc:92: call of overloaded `pow' is ambiguous
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.4/2.7.2/include/math.h:39: candidates are: pow(...)
../../src/kernel/ComplexSubset.cc:80:                 pow(const Complex &, const Complex &)
../../src/kernel/ComplexSubset.cc:91:                 pow(const Complex &, double)
../../src/kernel/ComplexSubset.cc:84:                 pow(double, const Complex &)
../../src/kernel/ComplexSubset.cc: In function `class Complex sqrt(const class Complex &)':
../../src/kernel/ComplexSubset.cc:98: `class Complex' used where a floating point value was expected
../../src/kernel/ComplexSubset.cc:98: aggregate value used where a float was expected
make: *** [ComplexSubset.o] Error 1

Thanks in advance
Dean.

 
 
 

0.6 Build problems on SunOS 4.1.4

Post by Christopher Hylan » Thu, 02 May 1996 04:00:00


Try using the -E option to see the output of the preprocessor and
what's actually getting compiled here.  The troubleshooting guide has
details about -E, but basically you would add a -E option and remove
the -c option:

g++ -E -O2  -Wall -Wsynth   -fno-for-scope  -I../../src/kernel
-I../../src/compat/ptolemy ../../src/kernel/ComplexSubset.cc > /tmp/cpp.out

Then look over /tmp/cpp.out for anything that is odd on the lines that
are failing.  Also, look for declarations earlier in the file for
things like pow() abs(), log() and arg().

BTW - One thing to watch out for is that often
/usr/X11/include/X11/X.h will have a line like:

#define Complex                 0       /* paths may intersect */

This can really cause problems if X11/X.h is included in files that
try to define a Complex Class :-)

-Christopher


   Newsgroups: comp.soft-sys.ptolemy
   Date: 1 May 1996 11:07:53 GMT
   Organization: University of Queensland
   Path: agate!howland.reston.ans.net!newsfeed.internetmci.com!info.ucla.edu!library.ucla.edu!ihnp4.ucsd.edu!munnari.OZ.AU!hobyah.cc.uq.oz.au!bunyip.cc.uq.oz.au!dean
   Lines: 67
   NNTP-Posting-Host: psych.psy.uq.oz.au

   Hi I am trying to build ptolemy from sources and am running into a whole
   bunch of bad compiles mainly due to the Complex class.  I would really
   be greatful if someone can help me.

   BTW I am using:
   gcc 2.7.2
   libg++ 2.7.1

   Ptolemy is installed in /work/src/ptolemy with a symlink in /users/ptolemy

   Here is my environment setup:
   USER=ptolemy
   LOGNAME=ptolemy
   HOME=/work/src/ptolemy
   SHELL=/bin/csh
   PATH=/users/ptolemy/bin:/users/ptolemy/bin.sun4:/users/ptolemy/vendors/bin:/usr/X11/bin:/usr/openwin/bin:/usr/local/bin:/opt/SUNWspro/bin:/usr/bin:/bin:/usr/ucb:/usr/bsd:/usr/bin/X11:/usr/ccs/bin:.
   TERM=xterm
   PWD=/work/src/GNU
   PTOLEMY=/users/ptolemy
   PT_DEBUG=ptgdb
   PTARCH=sun4
   PRINTER=lw
:UP=\E[%dA:al=\E[L:am:bs:cd=\E[J:ce=\E[K:cl=\E[H\E[2J:cm=\E[%i%d;%dH:co#80:cs=\E[%i%d;%dr:ct=\E[3k:dc=\E[P:dl=\E[M:do=^J:ei=\E[4l:ho=\E[H:im=\E[4h:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:kb=^H:kd=\EOB:ke=\E[?1l\E>:kl=\EOD:kn#4:kr=\EOC:ks=\E[?1h\E=:ku=\EOA:le=^H:li#65:md=\E[1m:me=\E[m:mi:mr=\E[7m:ms:nd=\E[C:pt:rs=\E[r\E<\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l:se=\E[m:sf=\n:so=\E[7m:sr=\EM:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ue=\E[m:up=\E[A:us=\E[4m:xn:
   DISPLAY=jupiter:0.0
   GCC_EXEC_PREFIX=/usr/local/lib/gcc-lib/sun4/2.7.2/
   C_INCLUDE_PATH=/usr/local/lib/gcc-lib/sun4/2.7.2/include
   CPLUS_INCLUDE_PATH=/usr/local/lib/g++-include:/usr/local/sun4/include:/usr/local/lib/gcc-lib/sun4/2.7.2/include

   And here is the output from the compile of the ComplexSubset.cc file in the
   kernel directory. NB: Other files fail as well nearly always with a

   blah.cc:x: `class Complex' used where a floating point value was expected
   blah.cc:x: aggregate value used where a float was expected

   Complex.cc make:
   ---------------
   g++  -O2  -Wall -Wsynth   -fno-for-scope  -I../../src/kernel -I../../src/compat/ptolemy -c ../../src/kernel/ComplexSubset.cc
   /usr/local/lib/g++-include/streambuf.h: In method `void ios::init(struct streambuf *, class ostream *)':
   In file included from /usr/local/lib/g++-include/iostream.h:31,
                    from /usr/local/lib/g++-include/stream.h:31,
                    from ../../src/kernel/ComplexSubset.cc:39:
   /usr/local/lib/g++-include/streambuf.h:448: warning: `void ios::init(struct streambuf *, class ostream *)' was used before it was declared inline
   /usr/local/lib/g++-include/streambuf.h:252: warning: previous non-inline declaration here
   ../../src/kernel/ComplexSubset.cc: In function `class Complex exp(const class Complex &)':
   ../../src/kernel/ComplexSubset.cc:60: `class Complex' used where a floating point value was expected
   ../../src/kernel/ComplexSubset.cc:60: aggregate value used where a float was expected
   ../../src/kernel/ComplexSubset.cc: In function `class Complex log(const class Complex &)':
   ../../src/kernel/ComplexSubset.cc:65: no matching function for call to `Complex::Complex (Complex, double)'
   ../../src/kernel/ComplexSubset.h:49: candidates are: Complex::Complex()
   ../../src/kernel/ComplexSubset.h:50:                 Complex::Complex(double, double)
   ../../src/kernel/ComplexSubset.h:51:                 Complex::Complex(const Complex &)
   ../../src/kernel/ComplexSubset.cc:66: warning: control reaches end of non-void function `log(const Complex &)'
   ../../src/kernel/ComplexSubset.cc: In function `class Complex pow(const class Complex &, double)':
   ../../src/kernel/ComplexSubset.cc:92: call of overloaded `pow' is ambiguous
   /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.4/2.7.2/include/math.h:39: candidates are: pow(...)
   ../../src/kernel/ComplexSubset.cc:80:                 pow(const Complex &, const Complex &)
   ../../src/kernel/ComplexSubset.cc:91:                 pow(const Complex &, double)
   ../../src/kernel/ComplexSubset.cc:84:                 pow(double, const Complex &)
   ../../src/kernel/ComplexSubset.cc: In function `class Complex sqrt(const class Complex &)':
   ../../src/kernel/ComplexSubset.cc:98: `class Complex' used where a floating point value was expected
   ../../src/kernel/ComplexSubset.cc:98: aggregate value used where a float was expected
   make: *** [ComplexSubset.o] Error 1

   Thanks in advance
   Dean.
--
Christopher Hylands, Ptolemy Project Manager  University of California

ph: (510)643-9841 fax:(510)642-2739           Berkeley, CA 94720-1770
home: (510)526-4010 (if busy -4068)           (Office: 493 Cory)

 
 
 

1. 0.6 Binary installation problem with SunOS 4.1.4

After having no luck installing from sources I have tried installing the
Binary distribution.  However when I start pigi it fails with a message like:

Can't open Display
usage: no such program

However the permission for the Display are set correctly as far as I can see
and I can run other X programs.  This error seems to be occuring when vem is
starting.

Dean.

2. Metal Gear - HELP

3. gcc problem building Ptolemy 0.6

4. Test - Please ignore

5. MAPLE Vr4 vs MATLAB 5

6. 0.6 ptcl build problem (repeat)

7. Allow users to install programs

8. 0.6 ptcl build problem

9. Installing Ptolemy 0.6 on SunOS 4

10. 0.6 build on freebsd

11. problem with ucd-snmp-3.0.6

12. Another problem going from krb5-1.0.6 to krb5-1.1.1