X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_TX,TW_YG X-Spam-Check-By: sourceware.org Message-ID: <4F6C5908.3090503@gmail.com> Date: Fri, 23 Mar 2012 12:05:44 +0100 From: marco atzeri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120312 Thunderbird/11.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: libtool issue on shared lib Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com I am trying to adapt socketxx to cygwin (http://www.linuxhacker.at/socketxx) In addition to a lot of other problems, I have a puzzling libtool issue make[2]: Entering directory `/pub/devel/gdcm/socket++-1.12.13_build/socket++' /bin/sh ../libtool --tag=CXX --mode=link g++ -Wall -g -O2 -version-info 1:2:0 -o libsocket++.la -rpath /usr/local/lib sockstream.lo sockinet.lo sockunix.lo pipestream.lo fork.lo protocol.lo echo.lo smtp.lo ftp.lo sig.lo libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries but g++ -Wall -g -O2 -shared -o cygsocket++-0.dll -Wl,--out-implib=libsocket++.dll.a sockstream.o sockinet.o sockunix.o pipestream.o fork.o protocol.o echo.o smtp.o ftp.o sig.o Creating library file: libsocket++.dll.a $ cygcheck ./cygsocket++-0.dll E:\cygwin\pub\devel\gdcm\socket++-1.12.13_build\socket++\cygsocket++-0.dll E:\cygwin\bin\cygwin1.dll [cut] E:\cygwin\bin\cyggcc_s-1.dll E:\cygwin\bin\cygstdc++-6.dll So where is the undefined symbol ?? I am already using "autoreconf -f -i" and the libtool seems equivalent to what is working for any other package adding LT_INIT([dlopen win32-dll shared]) to configure.in had no effect and the Makefile.am is very basic --------------------------------------------- INCLUDES = -I$(top_srcdir) -I$(top_builddir) lib_LTLIBRARIES = libsocket++.la libsocket___la_SOURCES = sockstream.cpp sockstream.h \ sockinet.cpp sockinet.h \ sockunix.cpp sockunix.h\ pipestream.cpp pipestream.h \ fork.cpp fork.h \ protocol.cpp protocol.h \ echo.cpp echo.h \ smtp.cpp smtp.h \ ftp.cpp ftp.h \ sig.cpp sig.h libsocketincludedir=$(includedir)/socket++ libsocketinclude_HEADERS = \ sockstream.h \ sockinet.h \ sockunix.h\ pipestream.h \ fork.h \ protocol.h \ echo.h \ smtp.h \ ftp.h \ sig.h libsocket___la_LDFLAGS = -version-info @LIBSOCKET_SO_VERSION@ ------------------------------------------------- Any idea about what I should look for ? Marco -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple