[Osgeo4w-trac] [osgeo4w] #843: running bootstrap.sh on new machine

OSGeo4W trac_osgeo4w at osgeo.org
Tue Jul 23 07:58:45 PDT 2024


#843: running bootstrap.sh on new machine
-------------------+----------------------------
Reporter:  rkolka  |       Owner:  osgeo4w-dev@…
    Type:  defect  |      Status:  new
Priority:  normal  |   Component:  Package
 Version:          |  Resolution:
Keywords:  gsl     |
-------------------+----------------------------
Comment (by rkolka):

 I was able to generate src/gsl/gsl/gsl_version.h by making the 4 changes
 below.

 Got gsl compilation running.

 Then got lots of linking error LNK2005 -s.

 {{{
   ...
   vector.obj : error LNK2005: gsl_vector_ushort_set already defined in
 eval.obj [C:\Code\OSGeo4W\src\gsl\gsl\build.vc\gsldll\gsldll.vcxproj]
   C:\Code\OSGeo4W\src\gsl\gsl\build.vc\..\dll\x64\Release\gsl.dll : fatal
 error LNK1169: one or more multiply defined symbols found
 [C:\Code\OSGeo4W\src\gsl\gsl\build.vc\gsldll\gsldll.vcxproj]

     482 Warning(s)
     130 Error(s)
 }}}

 ----
 Changes I made to OSGeo4W code:

 1. Installing autoconf, automake and libtool.
 {{{
 /bootstrap.cmd:10
 -       -P
 "bison,flex,poppler,doxygen,git,unzip,tar,diffutils,patch,curl,wget,flip,p7zip,make,osslsigncode,mingw64-x86_64
 -gcc-core,catdoc,enscript,mingw64-x86_64-binutils,perl-Data-
 UUID,ruby=2.6.4-1,perl-YAML-Tiny"
 +       -P
 "bison,flex,poppler,doxygen,git,unzip,tar,diffutils,patch,curl,wget,flip,p7zip,make,osslsigncode,mingw64-x86_64
 -gcc-core,catdoc,enscript,mingw64-x86_64-binutils,perl-Data-
 UUID,ruby=2.6.4-1,perl-YAML-Tiny,autoconf,automake,libtool"
 }}}

 ----

 2. Adding autogen and configure steps. (NB! I mostly do not know what I'm
 doing here).
 {{{
 /src/gsl/osgeo4w/package.sh:18
 +[ -f ../$P/configure ] || ( cd ../$P && ./autogen.sh )
 +[ -f ../$P/gsl_version.h ] || ( cd ../$P && ./configure --enable-
 maintainer-mode LD=dummy )
 +
 }}}


 ----

 3. Fixing file check to directory check
 {{{
 /src/gsl/osgeo4w/package.sh:13
 -[ -f ../$P/build.vc ] || tar -C .. -xzf vs_build.tar.gz --xform "s,^gsl-
 vs_build,$P,"
 +[ -d ../$P/build.vc ] || tar -C .. -xzf vs_build.tar.gz --xform "s,^gsl-
 vs_build,$P,"
 }}}

 ----

 Changes I made to gsl code.
 4. Removing < PreBuildEvent >s from gslhdrs.vcxproj because it looked like
 no-op and it still failed somehow. (Wrong CWD for msbuild?)
 {{{
 /src/gsl/gsl/build.vc/gslhdrs/gslhdrs.vcxproj
 -    <PreBuildEvent>
 -      <Command>copy ..\gsl_version.h ..\..\gsl</Command>
 -    </PreBuildEvent>
 }}}
-- 
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/843#comment:2>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.


More information about the Osgeo4w-trac mailing list