BewareMyPower commented on issue #512:
URL: 
https://github.com/apache/pulsar-client-cpp/issues/512#issuecomment-3411464952

   The debian package also misses the symbol.
   
   ```
   # g++ main.cc  -std=c++11 /usr/lib/libpulsarwithdeps.a
   /usr/bin/ld: /usr/lib/libpulsarwithdeps.a(roaring.c.o): in function 
`roaring_bitmap_to_bitset':
   roaring.c:(.text+0xe79c): undefined reference to `bitset_resize'
   collect2: error: ld returned 1 exit status
   ```
   
   The root cause is we use `ar -x` to uncompress static libraries to object 
files (`*.o`). However, libroaring has duplicated `bitset.c.o`. For example, on 
my macOS laptop,
   
   ```bash
   % ar t vcpkg/packages/roaring_arm64-osx/lib/libroaring.a
   __.SYMDEF SORTED
   isadetection.c.o
   array_util.c.o
   bitset_util.c.o
   art.c.o
   bitset.c.o
   array.c.o
   bitset.c.o
   ```
   
   After `ar -x`, only one `bitset.c.o` is retained, which means the other one 
is lost


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to