Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#2150 closed defect (fixed)

Hard to build mapserver with shared library

Reported by: warmerdam Owned by: 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 (4)

comment:1 by warmerdam, 17 years ago

Milestone: 4.10.3 release
Status: newassigned

comment:2 by warmerdam, 17 years ago

Resolution: fixed
Status: assignedclosed

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.

comment:3 by dmorissette, 17 years ago

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

comment:4 by dmorissette, 17 years ago

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

Note: See TracTickets for help on using tickets.