Ticket #500 (assigned defect)

Opened 4 years ago

Last modified 4 years ago

Cygwin / libtool build problem

Reported by: warmerdam Assigned to: alexamici@fastwebnet.it (accepted)
Priority: high Milestone:
Component: default Version: unspecified
Severity: normal Keywords:
Cc: nhv@cape.com

Description

I am getting some weird problems building on Cygwin that I assume is related
to libtool, though I could be wrong. 

Source: ftp://ftp.remotesensing.org/gdal/gdal-1.2.0a2.tar.gz

Platform:
CYGWIN_NT-5.1 play 1.3.20(0.73/3/2) 2003-02-08 12:10 i686 unknown unknown Cygwin

I will attach the log, but the following just before building the shared
library seems suspicious:

make[1]: Entering directory `/cygdrive/c/warmerda/cygdev/gdal-1.2.0a2'
GNUmakefile:43: warning: overriding commands for target `libgdal.la'
GNUmakefile:39: warning: ignoring old commands for target `libgdal.la'

The errors include lots of stuff like:

./frmts/o/.libs/sdtslib.o(.stab+0x159560): In function `Z24SDTSScanModuleReferen
cesP9DDFModulePKc':
/cygdrive/c/warmerda/cygdev/gdal-1.2.0a2/frmts/sdts/sdtslib.cpp:285: reloc refer
s to symbol `.text$_ZN12DDFFieldDefn16GetSubfieldCountEv' which is not being out
put

Attachments

log (28.0 kB) - added by warmerdam on 02/20/04 18:22:26.
Partial build log.

Change History

02/20/04 18:22:26 changed by warmerdam

  • attachment log added.

Partial build log.

02/23/04 17:25:24 changed by alexamici@fastwebnet.it

 
i fixed a bunch of similar compiler problems after the libtool transition, and 
i didn't see any other since then. they were usualy due to missing class 
creators (?). 
 
i cannot easily test on cygwin anymore, but Norman Vine (apparently) reports 
successful builds on recent cygwin environment, so maybe you hit a compiler bug 
that was fixed since 2003-02-08. 
 
don't know (the bug should be either close or reassigned since it'll take some 
time before i'll have a windows box available) 
 
alessandro 

02/23/04 17:33:42 changed by warmerdam

I will try updating to the latest Cygwin and see if that fixes the problem.

02/24/04 14:06:14 changed by warmerdam

I have updated to the latest cygwin, and now I get complaints about
/lib/cpp not being valid as a C++ preprocessor.  There is no /lib/cpp
file.  I tried linking /lib/cpp to /bin/cpp but that didn't seem to help.

The specific message is:

configure: error: C++ preprocessor "/lib/cpp" fails sanity check

BTW, my cygwin was updated "in place" to one dated 2004-01-30. 
As far as I know it went ok ... not sure if I buggered something. 

02/24/04 15:22:25 changed by nhv@cape.com

You need to explicitly request c++ support in the Cygwin setup program
This is a recent one-time change

In the Cygwin setup program under the devel group make sure that gcc-g++ is checked

02/25/04 11:10:04 changed by warmerdam

Norman, 

Thanks, that got me through configure and compiling just fine but I end up
with a similar error to what I started with.  I will include more complete
error messages when my wife gives me access to my laptop again.