tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gcc linking missing -lc building .so (on NetBSD 4.0)

    Date:        Mon, 5 Sep 2011 14:58:41 +0200
    From:        Joerg Sonnenberger <>
    Message-ID:  <>

  | See e.g. audio/pulseaudio. Essentially, the spec for GCC is wrong and it
  | has only been fixed around netbsd-4.99.x.

OK, thanks - so the solution is to remove --no-undefined ... I've done
that in evolution-data/server/Makefile (similar to audio/pulseaudio but
I used the !empty() syntax rather than ${...} != "" form - to be consistent
with what is already in the Makefile) - and so far (the build is continuing)
that appears to be working.

This appeared to break when evolution-data-server was upgraded to the gnome
2.30  release branch (July 2010 - Makefile version 1.100) - that is, the
last successful NetBSD 4 build I had of this was version
but I see nothing in the earlier Makefile that would have removed the
--no-undefined so I assume the 2.30 changes added it when it hadn't been
there before (I guess I should have sent a PR for this a year ago, it
just never seemed important before...)


ps: the build now finished 9while I haev been typing, etc), and succeeded.
The patch I used is appended.   If someone could apply this, that would be
great.  If a PR is needed, I can supply that!

Index: Makefile
RCS file: /cvsroot/NetBSD/pkgsrc/mail/evolution-data-server/Makefile,v
retrieving revision 1.111
diff -u -r1.111 Makefile
--- Makefile    10 Jun 2011 09:39:43 -0000      1.111
+++ Makefile    5 Sep 2011 13:08:32 -0000
@@ -33,6 +33,9 @@
 .include "../../devel/pthread-sem/"
 LIBS+=         -lsemaphore
+.if ${OPSYS} == "NetBSD" && !empty(OS_VERSION:M4.*)
+BUILDLINK_TRANSFORM+=   rm:-Wl,--no-undefined
 .if ${OPSYS} == "Darwin"

Home | Main Index | Thread Index | Old Index