I am also unable to get ddd-3.3.7 to link under Cygwin (details below). In the
meantime, someone kindly sent me a copy of ddd.exe, which works fine. I would
be glad to pass it on if you would like a copy (it is over 5MB zipped, so you
will need a big email inbox) - email me directly if you want it. I tried to
send the following message to address@hidden earlier, but I never saw it show
up on the list...
Subject: Trouble linking DDD 3.3.7 under Cygwin - can't find ipc library
I am having trouble getting DDD 3.3.7 to link correctly under Cygwin under Windows 2000. I have X and GDB
working, and lesstif installed, so I think I have the other pieces DDD will need in place. I ran
"./configure" then "make", which terminated while linking, unable to find the
"ipc" library, like this:
g++ -DNDEBUG -O2 -g -W -Wall -trigraphs -o vsl.exe vsl.o
<...many other object files...>
VSLErr.o VSLLib.o VSLNode.o VSLRead.o
-L/usr/X11R6/lib/usr/X11R6/lib/
libXm.a -lipc -lXaw -lXmu -lXt -lXpm -lXp -lXext -lX11 -lSM
-lICE -ltermcap -liberty
make[2]: Leaving directory `/ddd-3.3.7/ddd'
make[1]: Leaving directory `/ddd-3.3.7/ddd'
make[1]: Entering directory `/ddd-3.3.7'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/ddd-3.3.7'
address@hidden /ddd-3.3.7
$
usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-
pc-cygwin/bin/ld: cannot find -lipc
collect2: ld returned 1 exit status
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-
pc-cygwin/bin/ld: cannot find -lipc
collect2: ld returned 1 exit status
I searched to see if I had an "ipc" library, and found the following:
In cygwin/etc/setup
cygipc.lst.gz
In cygwin/bin
cygcygipc-2.dll
ipc-daemon2.exe
ipctest.exe
libcygipc.a
libcygipc.dll.a
I don't know whether DDD should be looking for -lcygipc rather than -lipc when
targeting cygwin, or whether I should have an IPC library that I don't have.
I checked config.log. It seems that configure couldn't find ipc either,
although that didn't cause it to abort (I didn't notice the message when it
happened):
configure:14550: result: no
configure:14554: checking for shmat in -lipc
configure:14587: g++ -o conftest.exe -g -O2 -fpermissive
conftest.cc -lipc >&5
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-
pc-cygwin/bin/ld: cannot find -lipc
collect2: ld returned 1 exit status
configure:14590: $? = 1
configure: failed program was:
#line 14561 "configure"
#include "confdefs.h"
The following lines in configure.ac make configure look for it:
dnl Check for -lipc library. SCO unix is said to want that.
dnl
AC_CHECK_LIB(ipc, shmap, X11_LIBS="${X11_LIBS} -lipc",,
${X_PRE_LIBS} ${X11_LIBS} ${X_EXTRA_LIBS})
I don't know if the IPC library is even needed on cygwin, or just SCO (based on
the comment).
Am I missing an IPC library in Cygwin that I should have, or should DDD be
linking in the cygipc library that I already have? Thanks for your help.
Steve Strobel