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



  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