View | Details | Raw Unified | Return to bug 263112 | Differences between
and this patch

Collapse All | Expand All

(-)b/sysutils/lttng-ust/Makefile (-4 / +4 lines)
Lines 1-7 Link Here
1
# Created by: Mahdi Mokhtari <mokhi64@gmail.com>
1
# Created by: Mahdi Mokhtari <mokhi64@gmail.com>
2
2
3
PORTNAME=	lttng-ust
3
PORTNAME=	lttng-ust
4
PORTVERSION=	2.9.0
4
PORTVERSION=	2.13.2
5
PORTREVISION=	2
5
PORTREVISION=	2
6
CATEGORIES=	sysutils
6
CATEGORIES=	sysutils
7
MASTER_SITES=	http://lttng.org/files/${PORTNAME}/
7
MASTER_SITES=	http://lttng.org/files/${PORTNAME}/
Lines 11-19 COMMENT= Libraries to instrument and trace user applications Link Here
11
11
12
LICENSE=		LGPL21 MIT GPLv2
12
LICENSE=		LGPL21 MIT GPLv2
13
LICENSE_COMB=		dual
13
LICENSE_COMB=		dual
14
LICENSE_FILE_LGPL21=	${WRKSRC}/COPYING
14
LICENSE_FILE_LGPL21=	${WRKSRC}/LICENSE
15
LICENSE_FILE_MIT=	${WRKSRC}/COPYING
15
LICENSE_FILE_MIT=	${WRKSRC}/LICENSE
16
LICENSE_FILE_GPLv2=	${WRKSRC}/COPYING
16
LICENSE_FILE_GPLv2=	${WRKSRC}/LICENSE
17
17
18
BUILD_DEPENDS=	asciidoc:textproc/asciidoc \
18
BUILD_DEPENDS=	asciidoc:textproc/asciidoc \
19
		xmlto:textproc/xmlto
19
		xmlto:textproc/xmlto
(-)b/sysutils/lttng-ust/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1483807828
1
TIMESTAMP = 1649309595
2
SHA256 (lttng-ust-2.9.0.tar.bz2) = 4d541a863f42dfc685ca05024027a442c70d03594c154a43e62bc109b1ea5daf
2
SHA256 (lttng-ust-2.13.2.tar.bz2) = 08679a1dfc2c9428885273861628aa5d828972f389a38bb08fdce39adee589b7
3
SIZE (lttng-ust-2.9.0.tar.bz2) = 764027
3
SIZE (lttng-ust-2.13.2.tar.bz2) = 1327075
(-)a/sysutils/lttng-ust/files/patch-config_libtool.m4 (-15 lines)
Removed Link Here
1
--- config/libtool.m4.orig	2016-05-12 15:26:58 UTC
2
+++ config/libtool.m4
3
@@ -1866,6 +1866,12 @@ else
4
   lt_cv_dlopen_libs=
5
 
6
   case $host_os in
7
+  FreeBSD*)
8
+    lt_cv_dlopen="dlopen"
9
+    lt_cv_dlopen_libs=""
10
+    lt_cv_dlopen_self=yes
11
+    ;;
12
+
13
   beos*)
14
     lt_cv_dlopen="load_add_on"
15
     lt_cv_dlopen_libs=
(-)b/sysutils/lttng-ust/files/patch-doc_examples_clock-override_Makefile (-8 / +4 lines)
Lines 1-17 Link Here
1
--- doc/examples/clock-override/Makefile.orig	2016-08-25 21:53:05 UTC
1
--- doc/examples/clock-override/Makefile.orig	2022-03-25 15:37:17.000000000 +0000
2
+++ doc/examples/clock-override/Makefile
2
+++ doc/examples/clock-override/Makefile	2022-04-07 08:12:24.004645000 +0000
3
@@ -15,12 +15,8 @@
3
@@ -8,8 +8,8 @@
4
 #
4
 #
5
 # This makefile is purposefully kept simple to support GNU and BSD make.
5
 # This makefile is purposefully kept simple to support GNU and BSD make.
6
 
6
 
7
-ifdef AM_CC
8
-	CC = $(AM_CC)
9
-endif
10
-
11
-LIBS = -ldl	# On Linux
7
-LIBS = -ldl	# On Linux
12
-#LIBS = -lc	# On BSD
8
-#LIBS = -lc	# On BSD
13
+#LIBS = -ldl	# On Linux
9
+#LIBS = -ldl	# On Linux
14
+LIBS =	# On FreeBSD
10
+LIBS =	# On FreeBSD
15
 LOCAL_CPPFLAGS += -I.
11
 LOCAL_CPPFLAGS += -I.
12
 AM_V_P := :
16
 
13
 
17
 all: lttng-ust-clock-override-example.so
(-)b/sysutils/lttng-ust/files/patch-doc_examples_cmake-multiple-shared-libraries_cmake_FindLTTngUST.cmake (+18 lines)
Added Link Here
1
--- doc/examples/cmake-multiple-shared-libraries/cmake/FindLTTngUST.cmake.orig	2022-01-27 20:18:46.000000000 +0000
2
+++ doc/examples/cmake-multiple-shared-libraries/cmake/FindLTTngUST.cmake	2022-04-07 08:16:37.652120000 +0000
3
@@ -97,13 +97,13 @@ if(LTTNGUST_INCLUDE_DIRS AND LTTNGUST_INCLUDE_DIRS_GEN
4
     add_library(LTTng::UST UNKNOWN IMPORTED)
5
     set_target_properties(LTTng::UST PROPERTIES
6
       INTERFACE_INCLUDE_DIRECTORIES "${LTTNGUST_INCLUDE_DIRS};${LTTNGUST_INCLUDE_DIRS_GENERATED}"
7
-      INTERFACE_LINK_LIBRARIES ${CMAKE_DL_LIBS}
8
+      INTERFACE_LINK_LIBRARIES "${CMAKE_DL_LIBS}"
9
       IMPORTED_LINK_INTERFACE_LANGUAGES "C"
10
       IMPORTED_LOCATION "${LTTNGUST_LIBRARIES}")
11
   endif()
12
 
13
   # add libdl to required libraries
14
-  set(LTTNGUST_LIBRARIES ${LTTNGUST_LIBRARIES} ${CMAKE_DL_LIBS})
15
+  set(LTTNGUST_LIBRARIES ${LTTNGUST_LIBRARIES} "${CMAKE_DL_LIBS}")
16
 endif()
17
 
18
 # handle the QUIETLY and REQUIRED arguments and set LTTNGUST_FOUND to
(-)b/sysutils/lttng-ust/files/patch-doc_examples_demo-tracef_Makefile (-8 / +4 lines)
Lines 1-17 Link Here
1
--- doc/examples/demo-tracef/Makefile.orig	2016-08-08 21:25:36 UTC
1
--- doc/examples/demo-tracef/Makefile.orig	2022-03-25 15:37:17.000000000 +0000
2
+++ doc/examples/demo-tracef/Makefile
2
+++ doc/examples/demo-tracef/Makefile	2022-04-07 08:12:24.008080000 +0000
3
@@ -15,12 +15,8 @@
3
@@ -8,8 +8,8 @@
4
 #
4
 #
5
 # This makefile is purposefully kept simple to support GNU and BSD make.
5
 # This makefile is purposefully kept simple to support GNU and BSD make.
6
 
6
 
7
-ifdef AM_CC
8
-	CC = $(AM_CC)
9
-endif
10
-
11
-LIBS = -ldl -llttng-ust	# On Linux
7
-LIBS = -ldl -llttng-ust	# On Linux
12
-#LIBS = -lc	# On BSD
8
-#LIBS = -lc	# On BSD
13
+#LIBS = -ldl -llttng-ust	# On Linux
9
+#LIBS = -ldl -llttng-ust	# On Linux
14
+LIBS = -llttng-ust	# On FreeBSD
10
+LIBS = -llttng-ust	# On FreeBSD
15
 LOCAL_CPPFLAGS += -I.
11
 LOCAL_CPPFLAGS += -I.
12
 AM_V_P := :
16
 
13
 
17
 all: demo-tracef
(-)b/sysutils/lttng-ust/files/patch-doc_examples_demo-tracelog_Makefile (-8 / +4 lines)
Lines 1-17 Link Here
1
--- doc/examples/demo-tracelog/Makefile.orig	2016-08-25 21:53:05 UTC
1
--- doc/examples/demo-tracelog/Makefile.orig	2022-03-25 15:37:17.000000000 +0000
2
+++ doc/examples/demo-tracelog/Makefile
2
+++ doc/examples/demo-tracelog/Makefile	2022-04-07 08:12:24.010424000 +0000
3
@@ -15,12 +15,8 @@
3
@@ -8,8 +8,8 @@
4
 #
4
 #
5
 # This makefile is purposefully kept simple to support GNU and BSD make.
5
 # This makefile is purposefully kept simple to support GNU and BSD make.
6
 
6
 
7
-ifdef AM_CC
8
-	CC = $(AM_CC)
9
-endif
10
-
11
-LIBS = -ldl -llttng-ust	# On Linux
7
-LIBS = -ldl -llttng-ust	# On Linux
12
-#LIBS = -lc	# On BSD
8
-#LIBS = -lc	# On BSD
13
+#LIBS = -ldl -llttng-ust	# On Linux
9
+#LIBS = -ldl -llttng-ust	# On Linux
14
+LIBS = -llttng-ust	# On FreeBSD
10
+LIBS = -llttng-ust	# On FreeBSD
15
 LOCAL_CPPFLAGS += -I.
11
 LOCAL_CPPFLAGS += -I.
12
 AM_V_P := :
16
 
13
 
17
 all: demo-tracelog
(-)b/sysutils/lttng-ust/files/patch-doc_examples_demo_Makefile (-8 / +4 lines)
Lines 1-17 Link Here
1
--- doc/examples/demo/Makefile.orig	2016-08-08 21:25:36 UTC
1
--- doc/examples/demo/Makefile.orig	2022-03-25 15:37:17.000000000 +0000
2
+++ doc/examples/demo/Makefile
2
+++ doc/examples/demo/Makefile	2022-04-07 08:12:24.012635000 +0000
3
@@ -14,12 +14,8 @@
3
@@ -7,8 +7,8 @@
4
 #
4
 #
5
 # This makefile is purposefully kept simple to support GNU and BSD make.
5
 # This makefile is purposefully kept simple to support GNU and BSD make.
6
 
6
 
7
-ifdef AM_CC
8
-	CC = $(AM_CC)
9
-endif
10
-
11
-LIBS = -ldl	# On Linux
7
-LIBS = -ldl	# On Linux
12
-#LIBS = -lc	# On BSD
8
-#LIBS = -lc	# On BSD
13
+#LIBS = -ldl	# On Linux
9
+#LIBS = -ldl	# On Linux
14
+LIBS =	# On FreeBSD
10
+LIBS =	# On FreeBSD
15
 LOCAL_CPPFLAGS += -I.
11
 LOCAL_CPPFLAGS += -I.
12
 AM_V_P := :
16
 
13
 
17
 all: demo lttng-ust-provider-ust-tests-demo.so lttng-ust-provider-ust-tests-demo3.so
(-)b/sysutils/lttng-ust/files/patch-doc_examples_easy-ust_Makefile (-8 / +4 lines)
Lines 1-17 Link Here
1
--- doc/examples/easy-ust/Makefile.orig	2016-08-08 21:25:36 UTC
1
--- doc/examples/easy-ust/Makefile.orig	2022-03-25 15:37:17.000000000 +0000
2
+++ doc/examples/easy-ust/Makefile
2
+++ doc/examples/easy-ust/Makefile	2022-04-07 08:12:24.014820000 +0000
3
@@ -16,12 +16,8 @@
3
@@ -9,8 +9,8 @@
4
 #
4
 #
5
 # This makefile is purposefully kept simple to support GNU and BSD make.
5
 # This makefile is purposefully kept simple to support GNU and BSD make.
6
 
6
 
7
-ifdef AM_CC
8
-	CC = $(AM_CC)
9
-endif
10
-
11
-LIBS = -ldl -llttng-ust		# On Linux
7
-LIBS = -ldl -llttng-ust		# On Linux
12
-#LIBS = -lc -llttng-ust		# On BSD
8
-#LIBS = -lc -llttng-ust		# On BSD
13
+#LIBS = -ldl -llttng-ust		# On Linux
9
+#LIBS = -ldl -llttng-ust		# On Linux
14
+LIBS = -llttng-ust		# On FreeBSD
10
+LIBS = -llttng-ust		# On FreeBSD
15
 LOCAL_CPPFLAGS += -I.
11
 LOCAL_CPPFLAGS += -I.
12
 AM_V_P := :
16
 
13
 
17
 all: sample
(-)b/sysutils/lttng-ust/files/patch-doc_examples_gen-tp_Makefile (-10 / +6 lines)
Lines 1-17 Link Here
1
--- doc/examples/gen-tp/Makefile.orig	2016-08-08 21:25:36 UTC
1
--- doc/examples/gen-tp/Makefile.orig	2022-03-25 15:37:17.000000000 +0000
2
+++ doc/examples/gen-tp/Makefile
2
+++ doc/examples/gen-tp/Makefile	2022-04-07 08:12:24.016989000 +0000
3
@@ -17,12 +17,8 @@
3
@@ -12,8 +12,8 @@
4
 #
4
 
5
 # This makefile is purposefully kept simple to support GNU and BSD make.
5
 PYTHON := python
6
 
6
 
7
-ifdef AM_CC
8
-	CC = $(AM_CC)
9
-endif
10
-
11
-LIBS = -ldl -llttng-ust		#On Linux
7
-LIBS = -ldl -llttng-ust		#On Linux
12
-#LIBS = -lc -llttng-ust		#On BSD
8
-#LIBS = -lc -llttng-ust		#On BSD
13
+#LIBS = -ldl -llttng-ust		#On Linux
9
+#LIBS = -ldl -llttng-ust		#On Linux
14
+LIBS = -llttng-ust		#On FreeBSD
10
+LIBS = -llttng-ust		#On FreeBSD
11
 AM_V_P := :
15
 
12
 
16
 all: sample
13
 all: sample
17
 
(-)b/sysutils/lttng-ust/files/patch-doc_examples_getcpu-override_Makefile (-8 / +4 lines)
Lines 1-17 Link Here
1
--- doc/examples/getcpu-override/Makefile.orig	2016-08-25 21:53:05 UTC
1
--- doc/examples/getcpu-override/Makefile.orig	2022-03-25 15:37:17.000000000 +0000
2
+++ doc/examples/getcpu-override/Makefile
2
+++ doc/examples/getcpu-override/Makefile	2022-04-07 08:12:24.019140000 +0000
3
@@ -15,12 +15,8 @@
3
@@ -8,8 +8,8 @@
4
 #
4
 #
5
 # This makefile is purposefully kept simple to support GNU and BSD make.
5
 # This makefile is purposefully kept simple to support GNU and BSD make.
6
 
6
 
7
-ifdef AM_CC
8
-	CC = $(AM_CC)
9
-endif
10
-
11
-LIBS = -ldl	# On Linux
7
-LIBS = -ldl	# On Linux
12
-#LIBS = -lc	# On BSD
8
-#LIBS = -lc	# On BSD
13
+#LIBS = -ldl	# On Linux
9
+#LIBS = -ldl	# On Linux
14
+LIBS =	# On FreeBSD
10
+LIBS =	# On FreeBSD
15
 LOCAL_CPPFLAGS += -I.
11
 LOCAL_CPPFLAGS += -I.
12
 AM_V_P := :
16
 
13
 
17
 all: lttng-ust-getcpu-override-example.so
(-)b/sysutils/lttng-ust/files/patch-doc_examples_hello-static-lib_Makefile (-10 / +5 lines)
Lines 1-18 Link Here
1
--- doc/examples/hello-static-lib/Makefile.orig	2016-08-08 21:25:36 UTC
1
--- doc/examples/hello-static-lib/Makefile.orig	2022-03-25 15:37:17.000000000 +0000
2
+++ doc/examples/hello-static-lib/Makefile
2
+++ doc/examples/hello-static-lib/Makefile	2022-04-07 08:12:24.021667000 +0000
3
@@ -14,13 +14,9 @@
3
@@ -8,8 +8,8 @@
4
 #
5
 # This makefile is purposefully kept simple to support GNU and BSD make.
4
 # This makefile is purposefully kept simple to support GNU and BSD make.
6
 
5
 
7
-ifdef AM_CC
8
-	CC = $(AM_CC)
9
-endif
10
-
11
 LOCAL_CPPFLAGS += -I.
6
 LOCAL_CPPFLAGS += -I.
12
-LIBS = -ldl -llttng-ust	# On Linux
7
-LIBS = -ldl -llttng-ust	# On Linux
13
-#LIBS = -lc -llttng-ust	# On BSD
8
-#LIBS = -lc -llttng-ust	# On BSD
14
+#LIBS = -ldl -llttng-ust	# On Linux
9
+#LIBS = -ldl -llttng-ust	# On Linux
15
+LIBS = -llttng-ust	# On FreeBSD
10
+LIBS = -llttng-ust	# On FreeBSD
16
 
11
 AM_V_P := :
17
 all: hello
12
 AR ?= ar
18
 
13
 
(-)b/sysutils/lttng-ust/files/patch-doc_man_lttng-ust.3 (-21 / +36 lines)
Lines 1-38 Link Here
1
--- doc/man/lttng-ust.3.orig	2016-11-29 22:13:51 UTC
1
--- doc/man/lttng-ust.3.orig	2022-03-25 17:53:42.000000000 +0000
2
+++ doc/man/lttng-ust.3
2
+++ doc/man/lttng-ust.3	2022-04-07 08:13:09.748686000 +0000
3
@@ -88,7 +88,7 @@ lttng-ust \- LTTng user space tracing
3
@@ -2,12 +2,12 @@
4
 #define \fBtracepoint_enabled\fR(\fIprov_name\fR, \fIt_name\fR)
4
 .\"     Title: lttng-ust
5
 .fi
5
 .\"    Author: [see the "AUTHORS" section]
6
 .sp
6
 .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
7
-Link with \fB-llttng-ust -ldl\fR, following this man page\&.
7
-.\"      Date: 03/25/2022
8
+Link with \fB-llttng-ust\fR, following this man page\&.
8
+.\"      Date: 04/07/2022
9
 .SH "DESCRIPTION"
9
 .\"    Manual: LTTng Manual
10
 .\"    Source: LTTng 2.13.2
11
 .\"  Language: English
12
 .\"
13
-.TH "LTTNG\-UST" "3" "03/25/2022" "LTTng 2\&.13\&.2" "LTTng Manual"
14
+.TH "LTTNG\-UST" "3" "04/07/2022" "LTTng 2\&.13\&.2" "LTTng Manual"
15
 .\" -----------------------------------------------------------------
16
 .\" * Define some portability stuff
17
 .\" -----------------------------------------------------------------
18
@@ -114,7 +114,7 @@ Link with, following this manual page:
19
 .sp -1
20
 .IP \(bu 2.3
21
 .\}
22
-\fB-llttng-ust -ldl\fR
23
+\fB-llttng-ust\fR
24
 .RE
10
 .sp
25
 .sp
11
 The \fILinux Trace Toolkit: next generation\fR <http://lttng.org/> is an open source software package used for correlated tracing of the Linux kernel, user applications, and user libraries\&.
26
 .RS 4
12
@@ -919,7 +919,7 @@ Then, link your application with this ob
27
@@ -1066,7 +1066,7 @@ Then, link your application with this object file (or 
13
 .RS 4
28
 .RS 4
14
 .\}
29
 .\}
15
 .nf
30
 .nf
16
-cc \-o app tp\&.o app\&.o \-llttng\-ust \-ldl
31
-$ cc \-o app tp\&.o app\&.o \-llttng\-ust \-ldl
17
+cc \-o app tp\&.o app\&.o \-llttng\-ust
32
+$ cc \-o app tp\&.o app\&.o \-llttng\-ust
18
 .fi
33
 .fi
19
 .if n \{\
34
 .if n \{\
20
 .RE
35
 .RE
21
@@ -1004,7 +1004,7 @@ This tracepoint provider shared object i
36
@@ -1151,7 +1151,7 @@ This tracepoint provider shared object isn\(cqt linked
22
 .RS 4
37
 .RS 4
23
 .\}
38
 .\}
24
 .nf
39
 .nf
25
-cc \-o app app\&.o tp\-define\&.o \-ldl
40
-$ cc \-o app app\&.o tp\-define\&.o \-ldl
26
+cc \-o app app\&.o tp\-define\&.o
41
+$ cc \-o app app\&.o tp\-define\&.o
27
 .fi
42
 .fi
28
 .if n \{\
43
 .if n \{\
29
 .RE
44
 .RE
30
@@ -1544,7 +1544,7 @@ You can compile the source files and lin
45
@@ -1823,7 +1823,7 @@ You can compile the source files and link them togethe
31
 .nf
46
 .nf
32
 cc \-c \-I\&. tp\&.c
47
 $ cc \-c \-I\&. tp\&.c
33
 cc \-c app\&.c
48
 $ cc \-c app\&.c
34
-cc \-o app tp\&.o app\&.o \-llttng\-ust \-ldl
49
-$ cc \-o app tp\&.o app\&.o \-llttng\-ust \-ldl
35
+cc \-o app tp\&.o app\&.o \-llttng\-ust
50
+$ cc \-o app tp\&.o app\&.o \-llttng\-ust
36
 .fi
51
 .fi
37
 .if n \{\
52
 .if n \{\
38
 .RE
53
 .RE
(-)b/sysutils/lttng-ust/files/patch-doc_man_lttng-ust.3.txt (-25 / +25 lines)
Lines 1-38 Link Here
1
--- doc/man/lttng-ust.3.txt.orig	2016-11-29 21:06:58 UTC
1
--- doc/man/lttng-ust.3.txt.orig	2022-03-25 15:37:17.000000000 +0000
2
+++ doc/man/lttng-ust.3.txt
2
+++ doc/man/lttng-ust.3.txt	2022-04-07 08:12:24.027503000 +0000
3
@@ -65,7 +65,7 @@ SYNOPSIS
3
@@ -83,7 +83,7 @@ SYNOPSIS
4
 #define *tracepoint*('prov_name', 't_name', ...)
5
 #define *tracepoint_enabled*('prov_name', 't_name')
6
 
4
 
7
-Link with `-llttng-ust -ldl`, following this man page.
5
 Link with, following this manual page:
8
+Link with `-llttng-ust`, following this man page.
9
 
6
 
7
-* `-llttng-ust -ldl`
8
+* `-llttng-ust`
9
 * If you define `_LGPL_SOURCE` before including
10
   `<lttng/tracepoint.h>` (directly or indirectly): `-llttng-ust-common`
10
 
11
 
11
 DESCRIPTION
12
@@ -737,7 +737,7 @@ BSD system):
12
@@ -636,7 +636,7 @@ library containing it) and with `liblttn
13
 
13
 
14
 [role="term"]
14
 [role="term"]
15
 -------------------------------------
15
 ----
16
-cc -o app tp.o app.o -llttng-ust -ldl
16
-$ cc -o app tp.o app.o -llttng-ust -ldl
17
+cc -o app tp.o app.o -llttng-ust
17
+$ cc -o app tp.o app.o -llttng-ust
18
 -------------------------------------
18
 ----
19
 
19
 
20
 
20
 
21
@@ -696,7 +696,7 @@ libdl:
21
@@ -797,7 +797,7 @@ libdl:
22
 
22
 
23
 [role="term"]
23
 [role="term"]
24
 --------------------------------
24
 ----
25
-cc -o app app.o tp-define.o -ldl
25
-$ cc -o app app.o tp-define.o -ldl
26
+cc -o app app.o tp-define.o
26
+$ cc -o app app.o tp-define.o
27
 --------------------------------
27
 ----
28
 
28
 
29
 There are two ways to dynamically load the tracepoint provider shared
29
 There are two ways to dynamically load the tracepoint provider shared
30
@@ -1036,7 +1036,7 @@ like this:
30
@@ -1221,7 +1221,7 @@ like this:
31
 -------------------------------------
31
 ----
32
 cc -c -I. tp.c
32
 $ cc -c -I. tp.c
33
 cc -c app.c
33
 $ cc -c app.c
34
-cc -o app tp.o app.o -llttng-ust -ldl
34
-$ cc -o app tp.o app.o -llttng-ust -ldl
35
+cc -o app tp.o app.o -llttng-ust
35
+$ cc -o app tp.o app.o -llttng-ust
36
 -------------------------------------
36
 ----
37
 
37
 
38
 Using the man:lttng(1) tool, create an LTTng tracing session, enable
38
 Using the man:lttng(1) tool, create an LTTng tracing session, enable
(-)a/sysutils/lttng-ust/files/patch-include_lttng_ust-dlfcn.h (-11 lines)
Removed Link Here
1
--- include/lttng/ust-dlfcn.h.orig	2016-11-29 01:46:24 UTC
2
+++ include/lttng/ust-dlfcn.h
3
@@ -27,6 +27,8 @@
4
  * SOFTWARE.
5
  */
6
 
7
+typedef long Lmid_t;
8
+
9
 #ifdef _DLFCN_H
10
 #error "Please include lttng/ust-dlfcn.h before dlfcn.h."
11
 #endif /* _DLFCN_H */
(-)a/sysutils/lttng-ust/files/patch-include_lttng_ust-elf.h (-22 lines)
Removed Link Here
1
--- include/lttng/ust-elf.h.orig	2016-10-18 22:44:06 UTC
2
+++ include/lttng/ust-elf.h
3
@@ -21,7 +21,19 @@
4
 #include <stdlib.h>
5
 #include <stdint.h>
6
 #include <stdio.h>
7
+#if defined(__FreeBSD__)
8
+#include <sys/types.h>
9
+#include <sys/endian.h>
10
+#define bswap_16 bswap16
11
+#define bswap_32 bswap32
12
+#define bswap_64 bswap64
13
+#define __bswap_16 bswap16
14
+#define __bswap_32 bswap32
15
+#define __bswap_64 bswap64
16
+#define NT_GNU_BUILD_ID 3
17
+#else
18
 #include <byteswap.h>
19
+#endif
20
 #include <elf.h>
21
 #include <lttng/ust-endian.h>
22
 
(-)b/sysutils/lttng-ust/files/patch-include_lttng_ust-tracepoint-event.h (-18 / +10 lines)
Lines 1-30 Link Here
1
--- include/lttng/ust-tracepoint-event.h.orig	2016-11-29 01:46:24 UTC
1
--- include/lttng/ust-tracepoint-event.h.orig	2022-03-25 15:37:17.000000000 +0000
2
+++ include/lttng/ust-tracepoint-event.h
2
+++ include/lttng/ust-tracepoint-event.h	2022-04-07 08:12:24.030383000 +0000
3
@@ -28,7 +28,19 @@
3
@@ -14,6 +14,11 @@
4
 #include <lttng/ringbuffer-config.h>
4
 #include <lttng/ust-arch.h>
5
 #include <lttng/ust-compiler.h>
5
 #include <lttng/ust-compiler.h>
6
 #include <lttng/tracepoint.h>
6
 #include <lttng/tracepoint.h>
7
+#if defined(__FreeBSD__)
7
+#if defined(__FreeBSD__)
8
+#include <sys/types.h>
8
+#include <sys/types.h>
9
+#include <sys/endian.h>
9
+#include <sys/endian.h>
10
+#define bswap_16 bswap16
11
+#define bswap_32 bswap32
12
+#define bswap_64 bswap64
13
+#define __bswap_16 bswap16
14
+#define __bswap_32 bswap32
15
+#define __bswap_64 bswap64
16
+#define NT_GNU_BUILD_ID 3
10
+#define NT_GNU_BUILD_ID 3
17
+#else
18
 #include <byteswap.h>
19
+#endif
11
+#endif
12
 #include <lttng/ust-endian.h>
13
 #include <lttng/ust-api-compat.h>
20
 #include <string.h>
14
 #include <string.h>
15
@@ -1033,6 +1038,7 @@ void lttng_ust__event_probe__##_provider##___##_name(L
21
 
16
 
22
 #define __LTTNG_UST_NULL_STRING	"(null)"
17
 /* Reset all macros within LTTNG_UST_TRACEPOINT_EVENT */
23
@@ -941,6 +950,7 @@ static const struct lttng_event_desc __e
24
 
25
 /* Reset all macros within TRACEPOINT_EVENT */
26
 #include <lttng/ust-tracepoint-event-reset.h>
18
 #include <lttng/ust-tracepoint-event-reset.h>
27
+#include <lttng/ust-events.h>
19
+#include <lttng/ust-events.h>
28
 
20
 
29
 #undef TRACEPOINT_EVENT_INSTANCE
21
 /*
30
 #define TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args)	       \
22
  * Declare _loglevel___##__provider##___##__name as non-static, with
(-)a/sysutils/lttng-ust/files/patch-liblttng-ust-ctl_Makefile.am (-9 lines)
Removed Link Here
1
--- liblttng-ust-ctl/Makefile.am.orig	2017-01-31 12:55:37 UTC
2
+++ liblttng-ust-ctl/Makefile.am
3
@@ -10,5 +10,4 @@ liblttng_ust_ctl_la_LDFLAGS = \
4
 liblttng_ust_ctl_la_LIBADD = \
5
 	$(top_builddir)/liblttng-ust-comm/liblttng-ust-comm.la \
6
 	$(top_builddir)/liblttng-ust/liblttng-ust-support.la \
7
-	$(top_builddir)/snprintf/libustsnprintf.la \
8
-	-ldl
9
+	$(top_builddir)/snprintf/libustsnprintf.la
(-)a/sysutils/lttng-ust/files/patch-liblttng-ust-ctl_Makefile.in (-11 lines)
Removed Link Here
1
--- liblttng-ust-ctl/Makefile.in.orig	2016-11-29 22:25:14 UTC
2
+++ liblttng-ust-ctl/Makefile.in
3
@@ -375,8 +375,7 @@ liblttng_ust_ctl_la_LIBADD = \
4
 	$(top_builddir)/liblttng-ust-comm/liblttng-ust-comm.la \
5
 	$(top_builddir)/liblttng-ust/liblttng-ust-support.la \
6
-	$(top_builddir)/snprintf/libustsnprintf.la \
7
-	-ldl
8
+	$(top_builddir)/snprintf/libustsnprintf.la
9
 
10
 all: all-am
11
(-)a/sysutils/lttng-ust/files/patch-liblttng-ust-ctl_ustctl.c (-31 lines)
Removed Link Here
1
--- liblttng-ust-ctl/ustctl.c.orig	2016-11-29 01:46:24 UTC
2
+++ liblttng-ust-ctl/ustctl.c
3
@@ -23,7 +23,19 @@
4
 #include <lttng/ust-abi.h>
5
 #include <lttng/ust-events.h>
6
 #include <sys/mman.h>
7
+#if defined(__FreeBSD__)
8
+#include <sys/types.h>
9
+#include <sys/endian.h>
10
+#define bswap_16 bswap16
11
+#define bswap_32 bswap32
12
+#define bswap_64 bswap64
13
+#define __bswap_16 bswap16
14
+#define __bswap_32 bswap32
15
+#define __bswap_64 bswap64
16
+#define NT_GNU_BUILD_ID 3
17
+#else
18
 #include <byteswap.h>
19
+#endif
20
 
21
 #include <usterr-signal-safe.h>
22
 #include <ust-comm.h>
23
@@ -76,7 +88,7 @@ extern void lttng_ring_buffer_client_discard_exit(void
24
 extern void lttng_ring_buffer_client_discard_rt_exit(void);
25
 extern void lttng_ring_buffer_metadata_client_exit(void);
26
 
27
-volatile enum ust_loglevel ust_loglevel;
28
+extern volatile enum ust_loglevel ust_loglevel;
29
 
30
 int ustctl_release_handle(int sock, int handle)
31
 {
(-)a/sysutils/lttng-ust/files/patch-liblttng-ust-dl_ust__dl.h (-10 lines)
Removed Link Here
1
--- liblttng-ust-dl/ust_dl.h.orig	2016-11-29 01:46:24 UTC
2
+++ liblttng-ust-dl/ust_dl.h
3
@@ -36,6 +36,7 @@ extern "C" {
4
 
5
 #define LTTNG_UST_DL_PROVIDER
6
 #include <lttng/tracepoint.h>
7
+#include <lttng/ust-dlfcn.h>
8
 
9
 TRACEPOINT_EVENT(lttng_ust_dl, dlopen,
10
 	TP_ARGS(void *, ip, void *, baddr, const char *, path,
(-)a/sysutils/lttng-ust/files/patch-liblttng-ust-fd_lttng-ust-fd.c (-11 lines)
Removed Link Here
1
--- liblttng-ust-fd/lttng-ust-fd.c.orig	2016-11-29 01:46:24 UTC
2
+++ liblttng-ust-fd/lttng-ust-fd.c
3
@@ -28,7 +28,7 @@
4
 #include <helper.h>
5
 #include "usterr-signal-safe.h"
6
 
7
-volatile enum ust_loglevel ust_loglevel;
8
+extern volatile enum ust_loglevel ust_loglevel;
9
 
10
 static int (*__lttng_ust_fd_plibc_close)(int fd);
11
 
(-)a/sysutils/lttng-ust/files/patch-liblttng-ust_Makefile.am (-10 lines)
Removed Link Here
1
--- liblttng-ust/Makefile.am.orig	2016-11-29 01:46:24 UTC
2
+++ liblttng-ust/Makefile.am
3
@@ -89,8 +89,7 @@ liblttng_ust_la_LIBADD = \
4
 	-lpthread \
5
 	-lrt \
6
 	-lurcu-cds \
7
-	-ldl \
8
 	$(top_builddir)/snprintf/libustsnprintf.la \
9
 	$(top_builddir)/liblttng-ust-comm/liblttng-ust-comm.la \
10
 	liblttng-ust-tracepoint.la \
(-)a/sysutils/lttng-ust/files/patch-liblttng-ust_Makefile.in (-10 lines)
Removed Link Here
1
--- liblttng-ust/Makefile.in.orig	2016-11-29 22:25:14 UTC
2
+++ liblttng-ust/Makefile.in
3
@@ -482,8 +482,7 @@ liblttng_ust_la_LIBADD = \
4
 	-lpthread \
5
 	-lrt \
6
 	-lurcu-cds \
7
-	-ldl \
8
 	$(top_builddir)/snprintf/libustsnprintf.la \
9
 	$(top_builddir)/liblttng-ust-comm/liblttng-ust-comm.la \
10
 	liblttng-ust-tracepoint.la \
(-)a/sysutils/lttng-ust/files/patch-liblttng-ust_compat.h (-20 lines)
Removed Link Here
1
--- liblttng-ust/compat.h.orig	2016-11-29 01:46:24 UTC
2
+++ liblttng-ust/compat.h
3
@@ -73,9 +73,15 @@ void lttng_ust_getprocname(char *name)
4
 }
5
 
6
 /*
7
- * If pthread_set_name_np is available.
8
+ * If pthread_setname_np or pthread_set_name_np is available.
9
  */
10
-#ifdef HAVE_PTHREAD_SET_NAME_NP
11
+#ifdef HAVE_PTHREAD_SETNAME_NP
12
+static inline
13
+int lttng_pthread_setname_np(pthread_t thread, const char *name)
14
+{
15
+	return pthread_setname_np(thread, name);
16
+}
17
+#elif defined(HAVE_PTHREAD_SET_NAME_NP)
18
 static inline
19
 int lttng_pthread_setname_np(pthread_t thread, const char *name)
20
 {
(-)a/sysutils/lttng-ust/files/patch-lttng-ust.pc.in (-10 lines)
Removed Link Here
1
--- lttng-ust.pc.in.orig	2015-06-01 11:38:44 UTC
2
+++ lttng-ust.pc.in
3
@@ -8,6 +8,6 @@ Description: The LTTng Userspace Tracer 
4
 Version: @PACKAGE_VERSION@
5
 Requires:
6
 Requires.private: liburcu-bp
7
-Libs: -L${libdir} -llttng-ust -ldl
8
+Libs: -L${libdir} -llttng-ust
9
 Cflags: -I${includedir} 
10
 
(-)b/sysutils/lttng-ust/files/patch-m4_libtool.m4 (+157 lines)
Added Link Here
1
--- m4/libtool.m4.orig	2022-03-25 17:46:41.000000000 +0000
2
+++ m4/libtool.m4	2022-04-07 08:12:29.678317000 +0000
3
@@ -728,6 +728,7 @@ _LT_CONFIG_SAVE_COMMANDS([
4
     cat <<_LT_EOF >> "$cfgfile"
5
 #! $SHELL
6
 # Generated automatically by $as_me ($PACKAGE) $VERSION
7
+# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8
 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9
 
10
 # Provide generalized library-building support services.
11
@@ -2886,18 +2887,6 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12
   dynamic_linker='GNU/Linux ld.so'
13
   ;;
14
 
15
-netbsdelf*-gnu)
16
-  version_type=linux
17
-  need_lib_prefix=no
18
-  need_version=no
19
-  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20
-  soname_spec='${libname}${release}${shared_ext}$major'
21
-  shlibpath_var=LD_LIBRARY_PATH
22
-  shlibpath_overrides_runpath=no
23
-  hardcode_into_libs=yes
24
-  dynamic_linker='NetBSD ld.elf_so'
25
-  ;;
26
-
27
 netbsd*)
28
   version_type=sunos
29
   need_lib_prefix=no
30
@@ -3557,7 +3546,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
31
   lt_cv_deplibs_check_method=pass_all
32
   ;;
33
 
34
-netbsd* | netbsdelf*-gnu)
35
+netbsd*)
36
   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
37
     lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
38
   else
39
@@ -4063,8 +4052,7 @@ _LT_EOF
40
   if AC_TRY_EVAL(ac_compile); then
41
     # Now try to grab the symbols.
42
     nlist=conftest.nm
43
-    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD
44
-    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then
45
+    if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
46
       # Try sorting and uniquifying the output.
47
       if sort "$nlist" | uniq > "$nlist"T; then
48
 	mv -f "$nlist"T "$nlist"
49
@@ -4436,7 +4424,7 @@ m4_if([$1], [CXX], [
50
 	    ;;
51
 	esac
52
 	;;
53
-      netbsd* | netbsdelf*-gnu)
54
+      netbsd*)
55
 	;;
56
       *qnx* | *nto*)
57
         # QNX uses GNU C++, but need to define -shared option too, otherwise
58
@@ -4948,9 +4936,6 @@ m4_if([$1], [CXX], [
59
       ;;
60
     esac
61
     ;;
62
-  linux* | k*bsd*-gnu | gnu*)
63
-    _LT_TAGVAR(link_all_deplibs, $1)=no
64
-    ;;
65
   *)
66
     _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
67
     ;;
68
@@ -5013,9 +4998,6 @@ dnl Note also adjust exclude_expsyms for C++ above.
69
   openbsd* | bitrig*)
70
     with_gnu_ld=no
71
     ;;
72
-  linux* | k*bsd*-gnu | gnu*)
73
-    _LT_TAGVAR(link_all_deplibs, $1)=no
74
-    ;;
75
   esac
76
 
77
   _LT_TAGVAR(ld_shlibs, $1)=yes
78
@@ -5270,7 +5252,7 @@ _LT_EOF
79
       fi
80
       ;;
81
 
82
-    netbsd* | netbsdelf*-gnu)
83
+    netbsd*)
84
       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
85
 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
86
 	wlarc=
87
@@ -5791,7 +5773,6 @@ _LT_EOF
88
 	if test yes = "$lt_cv_irix_exported_symbol"; then
89
           _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
90
 	fi
91
-	_LT_TAGVAR(link_all_deplibs, $1)=no
92
       else
93
 	_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
94
 	_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
95
@@ -5813,7 +5794,7 @@ _LT_EOF
96
       esac
97
       ;;
98
 
99
-    netbsd* | netbsdelf*-gnu)
100
+    netbsd*)
101
       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
102
 	_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
103
       else
104
@@ -6439,7 +6420,7 @@ if test yes != "$_lt_caught_CXX_error"; then
105
       # Commands to make compiler produce verbose output that lists
106
       # what "hidden" libraries, object files and flags are used when
107
       # linking a shared library.
108
-      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
109
+      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
110
 
111
     else
112
       GXX=no
113
@@ -6814,7 +6795,7 @@ if test yes != "$_lt_caught_CXX_error"; then
114
             # explicitly linking system object files so we need to strip them
115
             # from the output so that they don't get included in the library
116
             # dependencies.
117
-            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
118
+            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
119
             ;;
120
           *)
121
             if test yes = "$GXX"; then
122
@@ -6879,7 +6860,7 @@ if test yes != "$_lt_caught_CXX_error"; then
123
 	    # explicitly linking system object files so we need to strip them
124
 	    # from the output so that they don't get included in the library
125
 	    # dependencies.
126
-	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP " \-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
127
+	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
128
 	    ;;
129
           *)
130
 	    if test yes = "$GXX"; then
131
@@ -7218,7 +7199,7 @@ if test yes != "$_lt_caught_CXX_error"; then
132
 	      # Commands to make compiler produce verbose output that lists
133
 	      # what "hidden" libraries, object files and flags are used when
134
 	      # linking a shared library.
135
-	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
136
+	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
137
 
138
 	    else
139
 	      # FIXME: insert proper C++ library support
140
@@ -7302,7 +7283,7 @@ if test yes != "$_lt_caught_CXX_error"; then
141
 	        # Commands to make compiler produce verbose output that lists
142
 	        # what "hidden" libraries, object files and flags are used when
143
 	        # linking a shared library.
144
-	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
145
+	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
146
 	      else
147
 	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
148
 	        # platform.
149
@@ -7313,7 +7294,7 @@ if test yes != "$_lt_caught_CXX_error"; then
150
 	        # Commands to make compiler produce verbose output that lists
151
 	        # what "hidden" libraries, object files and flags are used when
152
 	        # linking a shared library.
153
-	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
154
+	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
155
 	      fi
156
 
157
 	      _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
(-)b/sysutils/lttng-ust/files/patch-src_common_compat_dlfcn.h (+11 lines)
Added Link Here
1
--- src/common/compat/dlfcn.h.orig	2022-03-25 15:37:17.000000000 +0000
2
+++ src/common/compat/dlfcn.h	2022-04-07 08:12:24.038410000 +0000
3
@@ -9,6 +9,8 @@
4
 #ifndef _UST_COMMON_COMPAT_DLFCN_H
5
 #define _UST_COMMON_COMPAT_DLFCN_H
6
 
7
+typedef long Lmid_t;
8
+
9
 #ifdef _DLFCN_H
10
 #error "Please include compat/dlfcn.h before dlfcn.h."
11
 #endif /* _DLFCN_H */
(-)b/sysutils/lttng-ust/files/patch-src_common_elf.h (+14 lines)
Added Link Here
1
--- src/common/elf.h.orig	2022-03-25 15:37:17.000000000 +0000
2
+++ src/common/elf.h	2022-04-07 08:12:24.040730000 +0000
3
@@ -10,6 +10,11 @@
4
 #include <stdlib.h>
5
 #include <stdint.h>
6
 #include <stdio.h>
7
+#if defined(__FreeBSD__)
8
+#include <sys/types.h>
9
+#include <sys/endian.h>
10
+#define NT_GNU_BUILD_ID 3
11
+#endif
12
 #include <elf.h>
13
 
14
 #include <lttng/ust-endian.h>
(-)b/sysutils/lttng-ust/files/patch-src_lib_lttng-ust-ctl_ustctl.c (+14 lines)
Added Link Here
1
--- src/lib/lttng-ust-ctl/ustctl.c.orig	2022-03-25 15:37:22.000000000 +0000
2
+++ src/lib/lttng-ust-ctl/ustctl.c	2022-04-07 08:12:24.043859000 +0000
3
@@ -8,6 +8,11 @@
4
 #include <stdint.h>
5
 #include <string.h>
6
 #include <sys/mman.h>
7
+#if defined(__FreeBSD__)
8
+#include <sys/types.h>
9
+#include <sys/endian.h>
10
+#define NT_GNU_BUILD_ID 3
11
+#endif
12
 #include <unistd.h>
13
 #include <sys/types.h>
14
 #include <sys/socket.h>
(-)b/sysutils/lttng-ust/files/patch-src_lib_lttng-ust-dl_ust_dl.h (+10 lines)
Added Link Here
1
--- src/lib/lttng-ust-dl/ust_dl.h.orig	2022-03-25 15:37:17.000000000 +0000
2
+++ src/lib/lttng-ust-dl/ust_dl.h	2022-04-07 08:12:24.046219000 +0000
3
@@ -21,6 +21,7 @@ extern "C" {
4
 
5
 #define LTTNG_UST_DL_PROVIDER
6
 #include <lttng/tracepoint.h>
7
+#include <common/compat/dlfcn.h>
8
 
9
 LTTNG_UST_TRACEPOINT_EVENT(lttng_ust_dl, dlopen,
10
 	LTTNG_UST_TP_ARGS(void *, ip, void *, baddr, const char *, path,
(-)b/sysutils/lttng-ust/files/patch-src_lib_lttng-ust.pc.in (+10 lines)
Added Link Here
1
--- src/lib/lttng-ust.pc.in.orig	2022-03-25 15:37:17.000000000 +0000
2
+++ src/lib/lttng-ust.pc.in	2022-04-07 08:12:24.048438000 +0000
3
@@ -7,6 +7,6 @@ Name: LTTng Userspace Tracer
4
 Description: The LTTng Userspace Tracer (UST) is a library accompanied by a set of tools to trace userspace code. 
5
 Version: @PACKAGE_VERSION@
6
 Requires:
7
-Libs: -L${libdir} -llttng-ust -llttng-ust-common -ldl
8
+Libs: -L${libdir} -llttng-ust -llttng-ust-common
9
 Cflags: -I${includedir} 
10
 

Return to bug 263112