Ticket #2150 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Hard to build mapserver with shared library

Reported by: warmerdam Assigned to: warmerdam
Priority: normal Milestone: 4.10.3 release
Component: Build Problems Version: 4.10
Severity: normal Keywords:
Cc: dmorissette hobu

Description

In the MapServer 4.10.x series it is hard to build mapserver with a shared library since the shared library was renamed to libmapserver.so (instead of libmap.so) but with no corresponding change in how the executables are linked. So they always pick up libmap.a.

Note, in trunk the static library has also been renamed to libmapserver.a so things are working fine there.

The change was r5467.

Change History

07/10/07 10:25:59 changed by warmerdam

  • status changed from new to assigned.
  • milestone set to 4.10.3 release.

07/10/07 15:03:06 changed by warmerdam

  • status changed from assigned to closed.
  • resolution set to fixed.

I have changed libmap.a to libmapserver.a in Makefile.in and substituted $(LIBMAP_STATIC) for libmap.a in a few places it was listed literally.

Now "make shared all" should be the shared library and then link the programs against it.

08/21/07 16:25:54 changed by dmorissette

I have updated the mapscript/php3/Makefile.in and configure script to fix old refs to libmap.a in PHP MapScript? build (r6667).

08/24/07 16:21:04 changed by dmorissette

The java and csharp Makefile.in had the same issue. I have fixed both to use -lmapserver instead of -lmap in r6702