pkgsrc-Bugs archive

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

Re: pkg/48974: textproc/mdocml does not build on Solaris 10



The following reply was made to PR pkg/48974; it has been noted by GNATS.

From: =?ISO-8859-15?Q?J=F6rn_Clausen?= 
<joern.clausen%uni-bielefeld.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>, 
pkg-manager%NetBSD.org@localhost,
 gnats-admin%NetBSD.org@localhost, pkgsrc-bugs%NetBSD.org@localhost
Subject: Re: pkg/48974: textproc/mdocml does not build on Solaris 10
Date: Wed, 09 Jul 2014 15:58:43 +0200

 >   Try adding FEATURE_LIBS to the mandoc link line instead.
 
 Do you mean like this:
 
   mandoc: $(MANDOC_OBJS) libmandoc.a
 -       $(CC) $(LDFLAGS) -o $@ $(MANDOC_OBJS) libmandoc.a
 +       $(CC) $(LDFLAGS) -o $@ $(MANDOC_OBJS) libmandoc.a $(FEATURE_LIBS)
 
 
 That does not work:
 
 gcc -L/pkgsrc/source/pkgsrc/textproc/mdocml/work.pkgsrc-i86/libnbcompat 
 -L/usr/pkgsrc/20140707/lib -Wl,-R/usr/pkgsrc/20140707/lib -L/usr/lib 
 -Wl,-R/usr/lib -o mandoc eqn_html.o  html.o  man_html.o  mdoc_html.o 
 tbl_html.o  mdoc_man.o  eqn_term.o  man_term.o  mdoc_term.o  term.o 
 term_ascii.o  term_ps.o  tbl_term.o  main.o  out.o  tree.o libmandoc.a
 Undefined                       first referenced
   symbol                             in file
 asprintf                            libmandoc.a(mdoc.o)
 
 
 although FEATURE_LIBS is defined:
 
 $ bmake show-var VARNAME=FEATURE_LIBS
   -lnbcompat
 
 
 Even if it would work: Is it a good idea to replace all the functions 
 defined in libnbcompat, even those provided by the OS?
 
 -- 
   Jörn Clausen                             
joern.clausen%uni-bielefeld.de@localhost
   Hochschulrechenzentrum                 http://www.uni-bielefeld.de/hrz/
   Universität Bielefeld
 


Home | Main Index | Thread Index | Old Index