public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
To: cygwin@cygwin.com
Subject: Re: shared Libary problems
Date: Tue, 15 Nov 2011 21:59:00 -0000	[thread overview]
Message-ID: <4EC2E08F.8070503@cwilson.fastmail.fm> (raw)
In-Reply-To: <074601cca3dd$e28be2a0$a7a3a7e0$@gov>

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

  parent reply	other threads:[~2011-11-15 21:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-15 21:31 Jim Harsh
2011-11-15 21:52 ` René Berber
2011-11-15 21:59 ` Charles Wilson [this message]
2011-11-15 22:31 ` Tim Prince

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EC2E08F.8070503@cwilson.fastmail.fm \
    --to=cygwin@cwilson.fastmail.fm \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).