Mail Archives: cygwin/2000/10/26/17:15:50
At 05:10 PM 10/26/00, Jean-Luc Vay wrote:
>Hi,
>
>since I installed the new version of cygwin 1.1.4, I have a linking
>problem
>between cygwin/gcc object files and Portland Group FORTRAN object
>files. When linkg using pgcc, I get the following undefined reference
>
>>pgcc python.o warp/*.o ../libpython1.5.a
>-LC:/cygwin/usr/local/lib/yorick/1.4/lib -L/PGI/nt86/lib
>-LC:/cygwin/usr/X11r6/lib -lgist -lX11 -llapack -lblas -lpgf90
>-lpgf90_rpm1 -lpgf902 -lpgf90rtl -lpghpf
>-lgcc -lcygwin -lcrtdll -cyglibs -o pywarp
>C:\PGI/nt86/lib/pgstdinit-cygnus.o(.text+0x41d):pgstdinit.c: undefined
>reference to `__imp__timezone'
>
>although '__imp__timezone' is in libcygwin.a. I did not get this error
>message when I was use cygwinb20.
>
>I also tried to link using cygwin/gcc instead and was successful using
>
>gcc -g python.o warp/*.o ../libpython1.5.a
>-L/usr/local/lib/yorick/1.4/lib -L/c/PGI/nt86/libtest -L/usr/X11r6/lib
>-lgist -lX11
>-lm
>-llapack -lblas -lpgf90 -lpgf90_rpm1 -lpgf902 -lpgf90rtl -lpghpf -lpgc
>-lcrtdll -o pywarp
>
>Unfortunately, I got errors at run time (while trying to write
>in FORTRAN subroutines):
>
>Program received signal SIGSEGV, Segmentation fault.
>0x41c044 in prntpara (dxperp=Cannot access memory at address 0x0.
>) at dtop.f:2461
>2461 dtop.f: No such file or directory.
>Current language: auto; currently fortran
>(gdb) where
>#0 0x41c044 in prntpara (dxperp=Cannot access memory at address 0x0.
>) at dtop.f:2461
>#1 0x76ef51 in __hpfio_fcvt ()
>#2 0x76277f in __hpfio_fmt_f ()
>#3 0x75a0d1 in fw_writenum ()
>#4 0x759a08 in fw_write ()
>#5 0x75944b in __f90io_fmt_write ()
>#6 0x7594f1 in pgf90io_fmt_write ()
>#7 0x42b8c2 in stepid (it=0, time=0, zbeam=0) at dtop.f:11140
>
>I did not receive yet a solution to this problem from the Portland
>Group.
>Does someone at cygwin has a clue especially concerning the
>undefined reference to `__imp__timezone'?
No, but removing -lcrtdll and -lm may clean up your runtime errors with
the gcc version. Using these with the Cygwin version invites trouble!;-)
Larry Hall lhall AT rfk DOT com
RFK Partners, Inc. http://www.rfk.com
118 Washington Street (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
- Raw text -