Subject: pkg/35617: shared library (e.g., not built/installed
To: None <,,>
From: Brook Milligan <>
List: pkgsrc-bugs
Date: 02/15/2007 18:55:00
>Number:         35617
>Category:       pkg
>Synopsis:       shared library (e.g., not built/installed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 15 18:55:00 +0000 2007
>Originator:     Brook Milligan
>Release:        NetBSD 3.0
Brook Milligan                         Internet:
Department of Biology
New Mexico State University            Telephone:  (505) 646-7980
Las Cruces, New Mexico  88003  U.S.A.  FAX:        (505) 646-5665
System: NetBSD 3.0 NetBSD 3.0 (VIOLA) #0: Mon May 15 21:08:52 MDT 2006 i386
Architecture: i386
Machine: i386
	The gdal-lib package is intended to build and install the gdal
libraries for use by other packages.  Currently, the package builds
and installs libgdal.a and, but does not build or install
the (non-libtool) shared libraries such as  Consequently,
dependent packages fail because they cannot link to the shared
	Install the gdal-lib package and observe that no
lib/ file exists.  During the build, observe a warning
message from libtool stating that a shared library cannot be built
because of undefined symbols.
	Add the following patch to the set of patches for the package
to allow shared libraries to be built even with undefined symbols.
This enables the shared libraries to be built and installed.
Additionally, dependent packages now work fine.


--- GNUmakefile.orig	2005-09-16 09:47:29.000000000 -0600
+++ GNUmakefile	2007-02-14 10:20:15.000000000 -0700
@@ -43,7 +43,6 @@
 $(LIBGDAL):	$(GDAL_OBJ:.o=.lo)
 	$(LD) $(LIBS) -o $@ $(GDAL_OBJ:.o=.lo) \
 	    -rpath $(INST_LIB) \
-	    -no-undefined \
 check-lib:	port-target core-target frmts-target ogr-target