bug-ddd
[Top][All Lists]
Advanced

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

DDD compilation problems


From: Andy Tsouladze
Subject: DDD compilation problems
Date: Tue, 30 Apr 2002 13:22:42 -0500 (CDT)

Hello,

I am trying to compile DDD-3.3.1 on a Sun box, and I am getting two
compile errors.

System description:

root@ppdwdb01:src/ddd-3.3.1# uname -a
SunOS ppdwdb01.uls-dev.com 5.8 Generic_108528-14 sun4u sparc SUNW,Sun-Fire-880
root@ppdwdb01:src/ddd-3.3.1# gcc -v
Reading specs from
/usr/local/lib/gcc-lib/sparcv9-sun-solaris2.8/3.0.4/specs
Configured with: ./configure --host=sparcv9-sun-solaris2.8
Thread model: posix
gcc version 3.0.4

I also have Xpm-3.4k and LessTif-0.93.29. I am using GNU make 3.79.1. All
tools and libraries are compiled in 64-bit mode.

Just in case, I have attached output from `./configure --verbose
--prefix=/usr/tools'
(configure.txt).

1. First error:

c++ -DHAVE_CONFIG_H -I. -I. -I. -I./.. -isystem /usr/openwin/include
-DNDEBUG -O2 -g -W -Wall -trigraphs  -c PannedGE.C
PannedGE.C:145: cannot convert `void (*)(...)' to `void (*)()' in
   initialization
make[1]: *** [PannedGE.o] Error 1
make[1]: Leaving directory `/usr/tools/src/ddd-3.3.1/ddd'
make: *** [all-recursive] Error 1

----------------------------------------

In order to check for more compile errors, I have commented out a bunch of
lines in ddd/PannedGE.C file, and was able to somehow compile it. I know
it is wrong, and the object file is not usable, but at least I could
continue and see what happens.

2. Second error:

c++ -DHAVE_CONFIG_H -I. -I. -I. -I./.. -isystem /usr/openwin/include
-DNDEBUG -O2 -g -W -Wall -trigraphs  -c logplayer.C
In file included from logplayer.C:46:
/usr/tools/include/g++-v3/backward/fstream.h:38: using directive
`streampos'
   introduced ambiguous type `streampos'
make[1]: *** [logplayer.o] Error 1
make[1]: Leaving directory `/usr/tools/src/ddd-3.3.1/ddd'
make: *** [all-recursive] Error 1

If I define HAVE_STREAMPOS in ddd/config.h file, this problem goes away.

I tried to understand why streampos is not found at config time, as seen
in the attached configuration output file. Here is what I found:

root@ppdwdb01:src/ddd-3.3.1# find /usr/tools/include -name "*.h" -exec
grep -l streampos {} \;
/usr/tools/include/g++-v3/bits/char_traits.h
/usr/tools/include/g++-v3/bits/fpos.h
/usr/tools/include/g++-v3/backward/fstream.h
/usr/tools/include/g++-v3/sparcv9-sun-solaris2.8/bits/c++io.h

This means iostream.h that comes with gcc-3.0.4 does not have streampos
any more.

-------------------------------------------

I would appreciate any help on these two issues. If you need more
information, just let me know what it is. BTW, I am not on DDD development
lists, so please reply directly.

Thanks,

Andy

Dr Andy Tsouladze
Sr Unix SysAdmin
UAL Loyalty Services

Attachment: configure.txt
Description: Text document


reply via email to

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