summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig>2007-11-29 09:13:30 +0000
committerrillig <rillig>2007-11-29 09:13:30 +0000
commit04538e6b7e66469f49f5e7ac1254613ae55edbb3 (patch)
treeeee481600b926899725f9b18540eb7af7ed95ba4 /mk
parenteeef7c7f6626fd564e935cd906b1368577dca6fd (diff)
downloadpkgsrc-04538e6b7e66469f49f5e7ac1254613ae55edbb3.tar.gz
More examples of "Undefined Symbol" from Solaris 10.
Diffstat (limited to 'mk')
-rw-r--r--mk/help/undefined-reference.help85
1 files changed, 79 insertions, 6 deletions
diff --git a/mk/help/undefined-reference.help b/mk/help/undefined-reference.help
index 818ee9c7731..051c49a58d8 100644
--- a/mk/help/undefined-reference.help
+++ b/mk/help/undefined-reference.help
@@ -1,5 +1,26 @@
-# $NetBSD: undefined-reference.help,v 1.3 2007/11/23 01:29:28 rillig Exp $
+# $NetBSD: undefined-reference.help,v 1.4 2007/11/29 09:13:30 rillig Exp $
+#
+# This file covers the common linker failures. For each function, it
+# describes the needed libraries. There are many ways to get the
+# libraries linked in. The most common ways are:
+#
+# Add a definition for LIBS.${OPSYS} to the package Makefile. For example,
+# "LIBS.SunOS+= -lsocket -lnsl".
+#
+# Modify some Makefile inside ${WRKSRC}. Since the libraries are usually
+# platform-dependent, be sure not to break other platforms when modifying
+# the Makefiles. The most portable way is to use the @LIBS@ macro from
+# autoconf and define LIBS.${OPSYS} like in the paragraph above.
+#
+# Keywords: libs undefined
+
+# === Internationalization ===
+# _
+# libintl_gettext
+# libintl_textdomain
+# libintl_bindtextdomain
+#
# When the linker finds an undefined reference to one of the libintl_*
# functions, and the package uses a GNU configure script, you should set
# BROKEN_GETTEXT_DETECTION=yes and "bmake clean && bmake" again.
@@ -7,17 +28,69 @@
# See also:
# devel/gettext-lib/builtin.mk
#
-# Keywords: intl lintl -lintl gettext libintl_gettext
+# Keywords: intl lintl -lintl gettext
+
+# === Networking ===
# gethostbyname
+# gethostbyaddr
#
# Needs -lnsl on Solaris
# socket
#
-# Needs -lsocket on Solaris
+# Needs -lsocket on Solaris.
+
+# accept
+# bind
+# connect
+# getservbyname
+# getservbyport
+# getservent
+# recv
+# recvfrom
+# send
+# sendto
+#
+# Needs -lsocket -lnsl on Solaris.
+
+# sendfile
+#
+# Needs -lsendfile on Solaris.
+
+# inet_aton
+#
+# Solaris doesn't have this function. You can use inet_pton(AF_INET,
+# name, &addr) instead.
+
+# gethostbyname2
+#
+# Solaris doesn't have this function.
+
+# === String functions ===
+
+# strcasestr
+# strndup
+# strsep
+#
+# Solaris doesn't have this function.
+
+# === Mathematics ===
+
+# ceil
+# cos
+# exp
+# fabs
+#
+# Needs -lm on about every platform.
+
+# === Miscellaneous ===
+
+# alloca
+#
+# Should be replaced with malloc. XXX: claraocr
-# asprintf
+# wattr_off
+# wattr_on
#
-# Add USE_FEATURES+=asprintf to the package Makefile, "bmake clean" and
-# try again.
+# XXX: cpmtools