[GRASS-dev] GRASS 6.4.svn Makefile problem in forms (OSGeo4W)

Hi,

any idea about this?

-> make: o: Command not found

Markus

---------- Forwarded message ----------
From: Helmut Kudrnovsky <alectoria@gmx.at>
Date: Wed, Dec 19, 2012 at 11:32 AM

it still fails in

/osgeo4w/usr/src/grass643RC2/lib/form

myricaria@MYRICARIA-HP /osgeo4w/usr/src/grass643RC2/lib/form
$ make
o /osgeo4w/usr/src/grass643RC2/dist.i686-pc-msys/lib/libgrass_form.6.4.3RC2
-L/osgeo4w/usr/src/grass643RC2/dist.i686-pc-msys/lib -L/c/OSGeo4W/lib
-L/osgeo4w/usr/src/grass643RC2/mswindows/osgeo4w/lib
OBJ.i686-pc-msys/generate.o OBJ.i686-pc-msys/open.o
-lgrass_gis.6.4.3RC2 -lgrass_datetime.6.4.3RC2 -lxdr -liberty
-lws2_32 -lz -lintl -lgrass_dbmiclient.6.4.3RC2
-lgrass_dbmibase.6.4.3RC2 -lgrass_gis.6.4.3RC2
-lgrass_datetime.6.4.3RC2 -lxdr -liberty -lws2_32 -lz -lintl
-lgrass_gis.6.4.3RC2 -lgrass_datetime.6.4.3RC2 -lxdr -liberty -lws2_32
   -lz -lintl -lgrass_dbmibase.6.4.3RC2 -lgrass_gis.6.4.3RC2
-lgrass_datetime.6.4.3RC2 -lxdr -liberty -lws2_32 -lz -lintl
../../lib/gis/OBJ.i686-pc-msys/dllmain.o
make: o: Command not found
make: [/osgeo4w/usr/src/grass643RC2/dist.i686-pc-msys/lib/libgrass_form.6.4.3RC2]
Error 127 (ignored)
gcc -L/osgeo4w/usr/src/grass643RC2/dist.i686-pc-msys/lib
-L/c/OSGeo4W/lib -L/osgeo4w/usr/src/grass643RC2/mswindows/osgeo4w/lib
   -o /osgeo4w/usr/src/grass643RC2/dist.i686-pc-msys/etc/form/form
OBJ.i686-pc-msys/form.o -lgrass_dbmiclient.6.4.3RC2
-lgrass_dbmibase.6.4.3RC2 -lgrass_gis.6.4.3RC2 -lgrass_datetime.6.4.3
RC2 -lxdr -liberty -lws2_32 -lz -lintl -lgrass_gis.6.4.3RC2
-lgrass_datetime.6.4.3RC2 -lxdr -liberty -lws2_32 -lz -lintl
-lgrass_dbmibase.6.4.3RC2 -lgrass_gis.6.4.3RC2
-lgrass_datetime.6.4.3RC2 -lxdr -liberty -lws2_32 -lz -lintl
-lgrass_gis.6.4.3RC2 -lgrass_datetime.6.4.3RC2 -lxdr -liberty -lws2_32
   -lz -lintl -lgrass_datetime.6.4.3RC2 \
                                 -ltk85 -ltcl85 -lxdr -liberty
-lws2_32 -lz
C:\OSGeo4W\apps\msys\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe:
cannot find -lgrass_dbmiclient.6.4.3RC2
collect2: ld returned 1 exit status
make: *** [/osgeo4w/usr/src/grass643RC2/dist.i686-pc-msys/etc/form/form] Error 1

[...] ld.exe: cannot find -lgrass_dbmiclient.6.4.3RC2 ?

Helmut

Markus Neteler wrote:

Hi,

any idea about this?

-> make: o: Command not found

$ make
o /osgeo4w/usr/src/grass643RC2/dist.i686-pc-msys/lib/libgrass_form.6.4.3RC2

$(SHLIB_LD) and $(SHLIB_SUFFIX) are empty.

The above command is the result of expanding:

  $(SHLIB_LD) -o $@ $(LDFLAGS) $^ $(EXTRA_LIBS) $(DLLMAIN_OBJ)

from Shlib.make. If $(SHLIB_LD) is empty, the - will be the first
character in the command, and a leading - indicates that errors are
ignored. The executed command will start with the "o ".

The fact that the filename refers to dist.i686-pc-msys suggests that
this is a consequence of the system name (as reported by uname)
changing from "mingw32" to "msys"; see the grass-dev thread at the
beginning of this month entitled:

  Error compiling GRASS 7 on Windows - Unknown platform i686-pc-msys

for a similar issue with GRASS 7.

6.x's aclocal.m4 still has the old platform-detection code (taken from
Tcl/Tk). As this uses uname directly, using --host won't help (the 7.x
version uses $host, which is set by config.guess based upon uname but
can be overridden by --host).

It can probably be fixed with something like:

  - MINGW*)
  + MINGW* | MSYS*)

followed by re-generating configure.

--
Glynn Clements <glynn@gclements.plus.com>

On Thu, Dec 20, 2012 at 2:08 AM, Glynn Clements
<glynn@gclements.plus.com> wrote:
...

It can probably be fixed with something like:

        - MINGW*)
        + MINGW* | MSYS*)

followed by re-generating configure.

Thanks.
Applied in r54352 (6.4) and r54353 (6.5).

Markus

Applied in r54352 (6.4) and r54353 (6.5).

thanks, that solved a longstanding compiling issue in the osgeo4w-stack.

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.n6.nabble.com/GRASS-6-4-svn-Makefile-problem-in-forms-OSGeo4W-tp5023969p5024058.html
Sent from the Grass - Dev mailing list archive at Nabble.com.