[GRASS5] Re: [GRASSLIST:2714] Re: Grass 5.3-5.7 OS X bin ready. Install ... (fwd)

Paul Kelly paul-grass at stjohnspoint.co.uk
Tue Feb 24 11:37:46 EST 2004


I'll forward this to the main developers' mailing list as the errors are
interesting.
Yes a lot of modules didn't compile (28 I counted) but it might still be a
manageable number (and I don't think the rest would bring you more than a
few megabytes more above the 50MB). If you put the full output of the make
command with all the errors (and the configure you used) on a website
somewhere it might be helpful and allow some of the problems to be fixed.
Already I have fixed the cp -af problem in CVS by removing the a.

Paul

---------- Forwarded message ----------
Date: Tue, 24 Feb 2004 17:19:41 +0100
From: Lorenzo Moretti <lorenzo.moretti at bologna.enea.it>
To: Paul Kelly <paul-grass at stjohnspoint.co.uk>
Subject: Re: [GRASSLIST:2714] Re: Grass 5.3-5.7 OS X bin ready. Install ...

>On Tue, 24 Feb 2004, Lorenzo Moretti wrote:
>
>>  >Hello
>>  >Did you compile GRASS 5.3 with shared libraries (--enable-gmake=no
>>  >--enable-shared=yes)? It would be good to have that tested on OS X.
>>  >
>>  >Paul
>>
>>  Yes. I use --enable-shared only (for 5.3 and 5.7)
>
>OK but that won't have any effect in 5.3 unless you also use
>--enable-gmake=no (the default build mechanism can only build static
>libraries even if you put --enable-shared). The binaries should be much
>smaller then (perhaps around 20-30MB)
>
>>
>>  P.S. - Try new version of GDAL (1.2.0cvs) in my site.
>>
>
>I don't have access to a Mac OSX machine so unfortunately I can't do that.
>But it's good to see it available.
>I would appreciate feedback on if the alternate build mechanism for 5.3
>results in smaller binaries that still work. I would like to make it the
>default before a 5.3.0 release.
>
>Paul

I have read im mk/README text

Alternate Build Mechanism
  - uses GNU make (maybe others, not tested)
  - allows building in a separate directory
  - allows use of a read-only source directory for the actual build (although
    write permission is required to generate the makefiles)

Building everything:

cd /usr/src/grass5
mk/mkmakefiles
mkdir ~/grass-build
cd ~/grass-build
/usr/src/grass5/configure ...
cp -f mk/Makefile Makefile
make all		# all == dirs gmake binaries links documents
sudo make install

Building a single directory:

mkdir ~/grass-build
cd ~/grass-build
/usr/src/grass5/configure ...
cp -f mk/Makefile .
make dirs gmake
./gmake5 <subdir>

Building everything using shared libraries (Linux only):

cd /usr/src/grass5
mk/mkmakefiles
mkdir ~/grass-build
cd ~/grass-build
/usr/src/grass5/configure ...
cp -f mk/Makefile Makefile
cp /usr/src/grass5/mk/mid.mk.shlib mk/mid.mk		# xxx
make all		# all == dirs gmake binaries links documents
cp -af src/libes/*.so* dist.i686-pc-linux-gnu/lib	# xxx
sudo make install


I try the first method (Building everything) but I have an error at
the beginning:

.....
Converting:
/Volumes/APPLI/src/grass53_exp_2004_02_21/html/html/v.trim.html to
/grass-build/dist.powerpc-apple-darwin6.8/man/man1/v.trim.1
Converting:
/Volumes/APPLI/src/grass53_exp_2004_02_21/html/html/v.what.html to
/grass-build/dist.powerpc-apple-darwin6.8/man/man1/v.what.1
Converting:
/Volumes/APPLI/src/grass53_exp_2004_02_21/html/html/xdriver.html to
/grass-build/dist.powerpc-apple-darwin6.8/man/man1/xdriver.1
Converting:
/Volumes/APPLI/src/grass53_exp_2004_02_21/html/html/xganim.html to
/grass-build/dist.powerpc-apple-darwin6.8/man/man1/xganim.1
mkdir -p /grass-build/dist.powerpc-apple-darwin6.8/man/cat1
man
/grass-build/dist.powerpc-apple-darwin6.8/man/man1/ascii_formats.1 >
/grass-build/dist.powerpc-apple-darwin6.8/man/cat1/ascii_formats.1
No manual entry for
/grass-build/dist.powerpc-apple-darwin6.8/man/man1/ascii_formats.1
make[1]: ***
[/grass-build/dist.powerpc-apple-darwin6.8/man/cat1/ascii_formats.1]
Error 1
make: *** [docs] Error 2
[lor:/grass-build] lor%

I have changed in /grass53_exp_2004_02_21/mk/Makefile.docs this row
documents:	htmlpages images manpages catpages
in
documents:	htmlpages images manpages

cat documents are not here

At the end I have this error

....
Creating link for v.to.sites
Creating link for v.what
Creating link for xganim
cp -af /grass-build/src/libes/lib*.dylib
/grass-build/dist.powerpc-apple-darwin6.8/lib
cp: illegal option -- a
usage: cp [-R [-H | -L | -P]] [-f | -i] [-p] src target
        cp [-R [-H | -L | -P]] [-f | -i] [-p] src1 ... srcN directory
make: *** [post-compile] Error 1
[lor:/grass-build] lor%

In error.log I read many errors:

Start of compilation: Tue Feb 24 16:42:48 CET 2004
Compilation error in module: src/display/devices/HTMLMAP
Compilation error in module: src/general/g.help
Compilation error in module: src/imagery/i.points3
Compilation error in module: src/mapdev/v.digit
Compilation error in module: src/mapdev/v.extract
Compilation error in module: src/mapdev/v.in.atlas
Compilation error in module: src/mapdev/v.in.dxf
Compilation error in module: src/mapdev/v.random
Compilation error in module: src/mapdev/v.reclass
Compilation error in module: src/mapdev/v.transform
Compilation error in module: src/misc/m.in.e00
Compilation error in module: src/paint/Programs/p.map.new/cmd
Compilation error in module: src/raster/r.colors.paint
Compilation error in module: src/raster/r.combine
Compilation error in module: src/raster/r.flow
Compilation error in module: src/raster/r.in.doq
Compilation error in module: src/raster/r.infer
Compilation error in module: src/raster/r.weight
Compilation error in module: src/sites/s.voronoi
Compilation error in module: src.contrib/CERL/raster/r.hydro.CASC2D
Compilation error in module: src.contrib/GMSL/g3d
Compilation error in module: src.contrib/DUKE/r.terraflow
Compilation error in module: src.contrib/SCS/vector/v.dump
Compilation error in module: src.contrib/SDTS
Compilation error in module: src.garden/grass.postgresql
Compilation error in module: src/libes/dbmi/drivers/odbc
Compilation error in module: src/display/d.text.freetype
Compilation error in module: src.contrib/DUKE/r.terraflow
Compilation error in module: locale
End of compilation:   Tue Feb 24 17:01:27 CET 2004

Too much error. Too much modules don't work

Now the folder is very small, about 50 MB (my folder not shared is
170 MB) but too much modules are absent. My distribution have not
only d.text.freetype and locale(????)

In /lib directory I have 2 files shared (libgrass_datetime.dylib,
libgrass_gis.dylib). They are different from my distribuition. They
are shared: they have .dylib at the end

One error example

.o /grass-build/src.garden/grass.postgresql/d.what.r.pg/opencell.o
-lgrass_display -lgrass_raster -lgrass_gis  -lintl
-L/usr/local/pgsql/lib -lpq   -lz  -lintl
ld: multiple definitions of symbol _cats
/grass-build/src.garden/grass.postgresql/d.what.r.pg/main.o
definition of _cats in section (__DATA,__common)
/grass-build/src.garden/grass.postgresql/d.what.r.pg/getAllOpts.o
definition of _cats in section (__DATA,__common)
ld: multiple definitions of symbol _dbCat
/grass-build/src.garden/grass.postgresql/d.what.r.pg/main.o
definition of _dbCat in section (__DATA,__common)
/grass-build/src.garden/grass.postgresql/d.what.r.pg/getAllOpts.o
definition of _dbCat in section (__DATA,__common)
ld: multiple definitions of symbol _fd
/grass-build/src.garden/grass.postgresql/d.what.r.pg/main.o
definition of _fd in section (__DATA,__common)
/grass-build/src.garden/grass.postgresql/d.what.r.pg/getAllOpts.o
definition of _fd in section (__DATA,__common)
ld: multiple definitions of symbol _mapset
/grass-build/src.garden/grass.postgresql/d.what.r.pg/main.o
definition of _mapset in section (__DATA,__common)
/grass-build/src.garden/grass.postgresql/d.what.r.pg/getAllOpts.o
definition of _mapset in section (__DATA,__common)
ld: multiple definitions of symbol _name
/grass-build/src.garden/grass.postgresql/d.what.r.pg/main.o
definition of _name in section (__DATA,__common)
/grass-build/src.garden/grass.postgresql/d.what.r.pg/getAllOpts.o
definition of _name in section (__DATA,__common)
/grass-build/src.garden/grass.postgresql/d.what.r.pg/getSopts.o
definition of _cats in section (__DATA,__common)
/grass-build/src.garden/grass.postgresql/d.what.r.pg/getSopts.o
definition of _dbCat in section (__DATA,__common)
/grass-build/src.garden/grass.postgresql/d.what.r.pg/getSopts.o
definition of _fd in section (__DATA,__common)
/grass-build/src.garden/grass.postgresql/d.what.r.pg/getSopts.o
definition of _mapset in section (__DATA,__common)
/grass-build/src.garden/grass.postgresql/d.what.r.pg/getSopts.o
definition of _name in section (__DATA,__common)
ld: warning prebinding disabled because dependent library:
/grass-build/src/libes/libgrass_display.dylib is not prebound
make[3]: ***
[/grass-build/dist.powerpc-apple-darwin6.8/etc/bin/cmd/d.what.r.pg]
Error 1
make[2]: *** [dir] Error 2
make[1]: *** [all] Error 2


It's difficult to see all errors.

Do you have an idea ??

Cheers


-- 
________________________________________________________________________
||       Lorenzo Moretti        e-mail: lorenzo.moretti at bologna.enea.it
||/|/|   ENEA prot              Web: http://wwwamb.bologna.enea.it/
||   |   via Don Fiammelli, 2   FTP: ftp://ftpamb.bologna.enea.it/ (res.)
~~~~~~   40128 BOLOGNA - ITALY  Ph: +39-0516098086  Fax: +39-0516098131
			Download GRASS for MAC OS X:
	           http://wwwamb.bologna.enea.it/forgrass/
________________________________________________________________________




More information about the grass-dev mailing list