Skip to content

Commit 1f38cba

Browse files
committed
macOS: updated package dependencies and gcc support
Signed-off-by: Hofi <hofione@gmail.com>
1 parent 715bd4c commit 1f38cba

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

doc/_dev-guide/chapter_4/section_2/README.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ Like every project {{ site.product.short_name }} also uses different libraries a
3434
* autoconf-archive
3535
* automake
3636
* bison
37+
* cmake
3738
* flex
3839
* glib
3940
* ivykis
4041
* json-c
4142
* libtool
4243
* openssl
43-
* pcre
44+
* pcre2
4445
* pkg-config
4546
4. The following package might be needed too depending on your macOS version and architecture:
4647
* net-snmp
@@ -49,15 +50,15 @@ Like every project {{ site.product.short_name }} also uses different libraries a
4950
* ~~libdbi~~ - See bellow!
5051
* libmaxminddb
5152
* libnet
53+
* libpaho-mqtt
5254
* librdkafka
5355
* mongo-c-driver
5456
* python3
5557
* rabbitmq-c
5658
* riemann-client
5759
6. Extra tools you might require
58-
* cmake
5960
* criterion
60-
* gcc@11
61+
* ~~gcc@11~~ - See bellow!
6162

6263
**Hint:** If you have [[{{ site.product.short_name }} installed via brew|dev-inst-macos#installation]], as a reference, you can check the dependencies of the brew built version using `brew deps syslog-ng`
6364
{: .notice--info}
@@ -76,30 +77,31 @@ brew install \
7677
autoconf-archive \
7778
automake \
7879
bison \
80+
# cmake - Optional, a better replacement of autotools making system
7981
flex \
8082
glib \
8183
ivykis \
8284
json-c \
8385
libtool \
8486
net-snmp \
8587
openssl \
86-
pcre \
88+
pcre2 \
8789
pkg-config \
8890
# Optional {{ site.product.short_name }} module dependencies
8991
hiredis \
9092
# Do not use the homebrew provided one, see bellow!
9193
# libdbi
9294
libmaxminddb \
9395
libnet \
96+
libpaho-mqtt \
9497
librdkafka \
9598
mongo-c-driver \
9699
python3 \
97100
rabbitmq-c \
98101
riemann-client
99102
# Optional development modules
100-
# cmake - Optional, a better replacement of autotools making system
101103
# criterion - Optional, needed for unit testing
102-
# gcc@11 - Optional, clang now should compile all modules nicely
104+
# gcc@11 - Optional, clang now should compile all modules nicely and it is the oficially supported compiler on macOS
103105
```
104106

105107
> **Note:**
@@ -162,9 +164,10 @@ git clone https://github.com/syslog-ng/syslog-ng .
162164

163165
### Select the compiler
164166

165-
Latest version of {{ site.product.short_name }} [has dropped support of gcc](https://github.com/syslog-ng/syslog-ng/pull/4897), so now the platform default llvm/clang must be used to complie the source
167+
Latest version of {{ site.product.short_name }} [has dropped support of gcc](https://github.com/syslog-ng/syslog-ng/pull/4897), so now the platform default llvm/clang must be used to complie the source.\
168+
`gcc` still might compile most of syslog-ng and its modules, but there is no guarantie and support of it anymore (HINT: you can turn off any problematic module via is feature switch)
166169

167-
To make sure clang is used (optional) you can use:
170+
To make sure clang is used you can use (optional):
168171

169172
```shell
170173
export CC=clang
@@ -192,7 +195,7 @@ mkdir build; cd build
192195
For a full (urrently supported) feature set you can add further configure flags (excluded the not yet supported modules on macOS), for example
193196

194197
```shell
195-
../configure --enable-all-modules --with-ivykis=system --with-systemd-journal=no --disable-java --disable-java-modules --disable-smtp --disable-mqtt --disable-pacct --disable-grpc
198+
../configure --enable-all-modules --with-ivykis=system --with-systemd-journal=no --disable-java --disable-java-modules --disable-smtp --disable-pacct
196199
```
197200

198201
> **Note:**
@@ -208,7 +211,7 @@ For more details please see the [[actual state of supported features|dev-macos-m
208211
For the full feature set you can use
209212

210213
```shell
211-
cmake --install-prefix /full_path_of/installdir -B build . -Wno-dev -DIVYKIS_SOURCE=system -DENABLE_JAVA=OFF -DENABLE_JAVA_MODULES=OFF -DENABLE_PYTHON=ON -DENABLE_PYTHON_MODULES=ON -DBUILD_TESTING=OFF -DENABLE_AFSMTP=OFF -DENABLE_MQTT=OFF -DENABLE_PACCT=OFF -DENABLE_CPP=ON -DENABLE_GRPC=OFF --fresh
214+
cmake --install-prefix /full_path_of/installdir -B build . -Wno-dev -DIVYKIS_SOURCE=system -DENABLE_JAVA=OFF -DENABLE_JAVA_MODULES=OFF -DENABLE_PYTHON=ON -DENABLE_PYTHON_MODULES=ON -DBUILD_TESTING=OFF -DENABLE_AFSMTP=OFF -DENABLE_PACCT=OFF -DENABLE_CPP=ON -DENABLE_GRPC=ON --fresh
212215
```
213216

214217
### Compile and install

0 commit comments

Comments
 (0)