Skip to content

Commit e0d34ef

Browse files
committed
Fix missing symbol with reverting ClickHouse/ClickHouse#66087
1 parent 9cd3188 commit e0d34ef

File tree

2 files changed

+8
-41
lines changed

2 files changed

+8
-41
lines changed

contrib/libpqxx-cmake/CMakeLists.txt

Lines changed: 7 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
set (LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/libpqxx")
22

33
set (SRCS
4-
"${LIBRARY_DIR}/src/strconv.cxx"
54
"${LIBRARY_DIR}/src/array.cxx"
65
"${LIBRARY_DIR}/src/binarystring.cxx"
6+
"${LIBRARY_DIR}/src/blob.cxx"
77
"${LIBRARY_DIR}/src/connection.cxx"
88
"${LIBRARY_DIR}/src/cursor.cxx"
99
"${LIBRARY_DIR}/src/encodings.cxx"
@@ -12,59 +12,25 @@ set (SRCS
1212
"${LIBRARY_DIR}/src/field.cxx"
1313
"${LIBRARY_DIR}/src/largeobject.cxx"
1414
"${LIBRARY_DIR}/src/notification.cxx"
15+
"${LIBRARY_DIR}/src/params.cxx"
1516
"${LIBRARY_DIR}/src/pipeline.cxx"
1617
"${LIBRARY_DIR}/src/result.cxx"
1718
"${LIBRARY_DIR}/src/robusttransaction.cxx"
19+
"${LIBRARY_DIR}/src/row.cxx"
1820
"${LIBRARY_DIR}/src/sql_cursor.cxx"
21+
"${LIBRARY_DIR}/src/strconv.cxx"
1922
"${LIBRARY_DIR}/src/stream_from.cxx"
2023
"${LIBRARY_DIR}/src/stream_to.cxx"
2124
"${LIBRARY_DIR}/src/subtransaction.cxx"
25+
"${LIBRARY_DIR}/src/time.cxx"
2226
"${LIBRARY_DIR}/src/transaction.cxx"
2327
"${LIBRARY_DIR}/src/transaction_base.cxx"
24-
"${LIBRARY_DIR}/src/row.cxx"
25-
"${LIBRARY_DIR}/src/params.cxx"
2628
"${LIBRARY_DIR}/src/util.cxx"
2729
"${LIBRARY_DIR}/src/version.cxx"
30+
"${LIBRARY_DIR}/src/wait.cxx"
2831
)
2932

30-
# Need to explicitly include each header file, because in the directory include/pqxx there are also files
31-
# like just 'array'. So if including the whole directory with `target_include_directories`, it will make
32-
# conflicts with all includes of <array>.
33-
set (HDRS
34-
"${LIBRARY_DIR}/include/pqxx/array.hxx"
35-
"${LIBRARY_DIR}/include/pqxx/params.hxx"
36-
"${LIBRARY_DIR}/include/pqxx/binarystring.hxx"
37-
"${LIBRARY_DIR}/include/pqxx/composite.hxx"
38-
"${LIBRARY_DIR}/include/pqxx/connection.hxx"
39-
"${LIBRARY_DIR}/include/pqxx/cursor.hxx"
40-
"${LIBRARY_DIR}/include/pqxx/dbtransaction.hxx"
41-
"${LIBRARY_DIR}/include/pqxx/errorhandler.hxx"
42-
"${LIBRARY_DIR}/include/pqxx/except.hxx"
43-
"${LIBRARY_DIR}/include/pqxx/field.hxx"
44-
"${LIBRARY_DIR}/include/pqxx/isolation.hxx"
45-
"${LIBRARY_DIR}/include/pqxx/largeobject.hxx"
46-
"${LIBRARY_DIR}/include/pqxx/nontransaction.hxx"
47-
"${LIBRARY_DIR}/include/pqxx/notification.hxx"
48-
"${LIBRARY_DIR}/include/pqxx/pipeline.hxx"
49-
"${LIBRARY_DIR}/include/pqxx/prepared_statement.hxx"
50-
"${LIBRARY_DIR}/include/pqxx/result.hxx"
51-
"${LIBRARY_DIR}/include/pqxx/robusttransaction.hxx"
52-
"${LIBRARY_DIR}/include/pqxx/row.hxx"
53-
"${LIBRARY_DIR}/include/pqxx/separated_list.hxx"
54-
"${LIBRARY_DIR}/include/pqxx/strconv.hxx"
55-
"${LIBRARY_DIR}/include/pqxx/stream_from.hxx"
56-
"${LIBRARY_DIR}/include/pqxx/stream_to.hxx"
57-
"${LIBRARY_DIR}/include/pqxx/subtransaction.hxx"
58-
"${LIBRARY_DIR}/include/pqxx/transaction.hxx"
59-
"${LIBRARY_DIR}/include/pqxx/transaction_base.hxx"
60-
"${LIBRARY_DIR}/include/pqxx/types.hxx"
61-
"${LIBRARY_DIR}/include/pqxx/util.hxx"
62-
"${LIBRARY_DIR}/include/pqxx/version.hxx"
63-
"${LIBRARY_DIR}/include/pqxx/zview.hxx"
64-
)
65-
66-
add_library(_libpqxx ${SRCS} ${HDRS})
67-
33+
add_library(_libpqxx ${SRCS})
6834
target_link_libraries(_libpqxx PUBLIC ch_contrib::libpq)
6935
target_include_directories (_libpqxx SYSTEM BEFORE PUBLIC "${LIBRARY_DIR}/include")
7036

contrib/postgres-cmake/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ set(SRCS
5757
"${POSTGRES_SOURCE_DIR}/src/port/pg_bitutils.c"
5858
"${POSTGRES_SOURCE_DIR}/src/port/thread.c"
5959
"${POSTGRES_SOURCE_DIR}/src/port/path.c"
60+
"${POSTGRES_SOURCE_DIR}/src/port/explicit_bzero.c"
6061
)
6162

6263
add_library(_libpq ${SRCS})

0 commit comments

Comments
 (0)