summaryrefslogtreecommitdiff
path: root/mk/help/undefined-reference.help
blob: 051c49a58d89d05eec164a46d9110fcc0de155b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# $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.
#
# See also:
#	devel/gettext-lib/builtin.mk
#
# Keywords: intl lintl -lintl gettext

# === Networking ===

# gethostbyname
# gethostbyaddr
#
# Needs -lnsl on Solaris

# socket
#
# 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

# wattr_off
# wattr_on
#
# XXX: cpmtools