delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/15/16:59:37

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_LOW,TW_LG,TW_NW
X-Spam-Check-By: sourceware.org
Message-ID: <4EC2E08F.8070503@cwilson.fastmail.fm>
Date: Tue, 15 Nov 2011 16:58:39 -0500
From: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
Reply-To: Charles Wilson <cygwin AT cwilson DOT fastmail DOT fm>
User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: shared Libary problems
References: <074601cca3dd$e28be2a0$a7a3a7e0$@gov>
In-Reply-To: <074601cca3dd$e28be2a0$a7a3a7e0$@gov>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 11/15/2011 4:31 PM, Jim Harsh wrote:

>  COLLECT_GCC_OPTIONS='-v' '-shared' '-W1,--out-implib,BIEsharedLib.dll.a'
> '-o' '/cygdrive/c/BIE_work/ver747Dev/BIEsharedLib.so' '-shared-libgcc'
> '-mtune=generic' '-march=i686'
>  /usr/lib/gcc/i686-pc-cygwin/4.5.3/collect2.exe --wrap _Znwj --wrap _Znaj
> --wrap _ZdlPv --wrap _ZdaPv --wrap _ZnwjRKSt9nothrow_t --wrap
> _ZnajRKSt9nothrow_t --wrap _ZdlPvRKSt9nothrow_t --wrap _ZdaPvRKSt9nothrow_t
> --shared -Bdynamic --enable-auto-image-base -e __cygwin_dll_entry AT 12
> --dll-search-prefix=cyg -o /cygdrive/c/BIE_work/ver747Dev/BIEsharedLib.so
> /usr/lib/gcc/i686-pc-cygwin/4.5.3/crtbegin.o
> -L/usr/lib/gcc/i686-pc-cygwin/4.5.3
> -L/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../..
> /cygdrive/c/BIE_work/ver747Dev/MAKE/TopCombinedDir/cpint.o
> /cygdrive/c/BIE_work/ver747Dev/MAKE/TopCombinedDir/xWinLib.o
> /cygdrive/c/BIE_work/ver747Dev/MAKE/C+Fortran/FORTRAN/GREGS_F_STUFF/libGregs
> F.o
> /cygdrive/c/BIE_work/ver747Dev/MAKE/C+Fortran/FORTRAN/TriangulateP25/libP25F
> .o /cygdrive/c/BIE_work/ver747Dev/MAKE/C+Fortran/C/PW_PRAD/libPRAD.o
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Cinterface/libcinter.o
> /cygdrive/c/BIE_work/ver747Dev/MAKE/C+Fortran/C/GREGS_C_STUFF/libGregsC.o
> /cygdrive/c/BIE_work/ver747Dev/MAKE/C+Fortran/C/BOBS_CONE_BEAM/librjm.o
> /cygdrive/c/BIE_work/ver747Dev/MAKE/C+Fortran/C/3DSTUFF/lib3D.o
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/FFTW/fftw/libfftw.o
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/FFTW/rfftw/librfftw.o
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/FFTW/threads/libfftw_threads.o
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/FFTW/threads/librfftw_threads.
> o /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/Tiff_WX/libtiff.o
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/libmylib.o
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/libladies.o
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/libplot_10.o
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/hdf42r6_86/lib/hm426.lib
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/hdf42r6_86/lib/hd426.lib
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/hdf42r3/jpeg/lib/libjpeg.a
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/hdf42r3/zlib/lib/libz.a
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/FFTW/fftw/libfftw.a
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/FFTW/rfftw/librfftw.a
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/FFTW/threads/libfftw_threads.a
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/FFTW/threads/librfftw_threads.
> a /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/Tiff_WX/libtiff.a
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/libladies.a
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/libmylib.a
> /cygdrive/c/BIE_work/ver747Dev/MAKE/Libraries/libplot_10.a -lX11 -lpthread
> -lgfortran -lstdc++ -lgcc -lc -lm -lgfortran -lgcc_s -lgcc -lcygwin -luser32
> -lkernel32 -ladvapi32 -lshell32 -lgcc_s -lgcc
> /usr/lib/gcc/i686-pc-cygwin/4.5.3/crtend.o
> collect2: ld terminated with signal 11 [Segmentation fault], core dumped
> Warning: .drectve `/DEFAULTLIB:"oldnames" /DEFAULTLIB:"uuid.lib"
> /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"LIBCMT" /DEFAULTLIB:"OLDNAMES" 3'
> unrecognized
> make: *** [/cygdrive/c/BIE_work/ver747Dev/BIEsharedLib.so] Error 1
> 

You need to rebuild *ALL* of your libraries using cygwin (or use the
ones already distributed /with/ cygwin, e.g. jpeg, zlib, tiff, fftw)

It looks like you're trying to link cygwin code with libraries that were
built using a (native) windows-ish compiler, because those .drectve
statements are MSVC-specific (but may also be supported by intel).

--
Chuck

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019