ddd
[Top][All Lists]
Advanced

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

Re: Problem linking DDD under cygwin


From: Steve Strobel
Subject: Re: Problem linking DDD under cygwin
Date: Thu, 09 Oct 2003 09:26:43 -0600

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


At 04:08 PM 10/9/2003 +0200, Mathias Schmalisch wrote:
>Hi,
>
>I have tried to compile ddd-3.3.7 on my new cygwin 1.5.5-1 and all
>necessary librarys are installed. configure and compilation of the 
>source runs without problems. But here the problem at linking
>the object files (more details in the make_error.log):
>
>/bin/bash ../libtool --mode=link g++  -DNDEBUG -O2 -g -W -Wall -trigraphs    -o
>ddd.exe  ddd.o asename.o compare.o cook.o cwd.o glob.o hash.o home.o isid.o
><more object files>
>configinfo.o  -L/usr/X11R6/lib -lXm -lXaw -lXmu  -lXt -lXpm -lXp -lXext -lX11
>-lSM -lICE        -lncurses -ly -liberty -lm  -lm 
>g++ -DNDEBUG -O2 -g -W -Wall -trigraphs -o ddd.exe ddd.o basename.o compare.o
>cook.o cwd.o glob.o hash.o home.o isid.o rxclass.o sigName.o strclass.o tabs.o
><more object files>
>configinfo.o  -L/usr/X11R6/lib /usr/X11R6/lib/libXm.a -lXaw -lXmu -lXt -lXpm
>-lXp -lXext -lX11 -lSM -lICE -lncurses -ly -liberty
>AgentM.o(.text+0x296): In function `GLOBAL(int10_t, long double, char, short,
>int, double)':
>/usr/include/c++/3.3.1/iostream:87: undefined reference to
>`__static_initialization_and_destruction_0(int, int)'
>AgentM.o(.text+0x2b6): In function `_GLOBAL__D_AgentM_rcsid':
>/usr/include/c++/3.3.1/iostream:87: undefined reference to
>`__static_initialization_and_destruction_0(int, int)'
>AsyncAgent.o(.text+0x916): In function `_GLOBAL__I_AsyncAgent_rcsid':
>/usr/include/c++/3.3.1/iostream:287: undefined reference to
>`__static_initialization_and_destruction_0(int, int)'
>AsyncAgent.o(.text+0x936): In function `_GLOBAL__D_AsyncAgent_rcsid':
>/usr/include/c++/3.3.1/iostream:287: undefined reference to
>`__static_initialization_and_destruction_0(int, int)'
>
>and so on
>
>has anyone a solution for this problem?
>
>Regards
>Mathias
>
>_______________________________________________
>Ddd mailing list
>address@hidden
>http://mail.gnu.org/mailman/listinfo/ddd

---
Steve Strobel                           WWW: http://www.link-comm.com
Link Communications, Inc.               Phone: (406) 245-5002 ext 102
MailTo:address@hidden              Fax: (406) 245-4889





reply via email to

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