[ovs-dev] [PATCH v3] Build: Shared libraries and versioning
Thomas Graf
tgraf at noironetworks.com
Wed Nov 12 16:31:05 UTC 2014
On 11/12/14 at 02:13pm, Flavio Leitner wrote:
> It doesn't work here:
>
> master]$ git log --oneline -2
> 7f2f24e Build: Add support for shared libraries and versioning.
> 86f35fb util: Add be32_prefix_mask().
>
> master]$ ./boot.sh && ./configure --enable-shared && make
> [...]
> /bin/sh ./libtool --tag=CC --mode=link gcc -std=gnu99
> -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith
> -Wno-format-zero-length -Wswitch-enum -Wunused-parameter
> -Wbad-function-cast -Wcast-align -Wmissing-prototypes
> -Wmissing-field-initializers -fno-strict-aliasing -g -O2 -o
> utilities/ovs-appctl utilities/ovs-appctl.o lib/libopenvswitch.la
> -latomic -lpthread -lrt -lm
> libtool: link: gcc -std=gnu99 -Wstrict-prototypes -Wall -Wextra
> -Wno-sign-compare -Wpointer-arith -Wno-format-zero-length
> -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align
> -Wmissing-prototypes -Wmissing-field-initializers -fno-strict-aliasing
> -g -O2 -o utilities/.libs/ovs-appctl utilities/ovs-appctl.o
> lib/.libs/libopenvswitch.so -lssl -lcrypto -latomic -lpthread -lrt -lm
> -Wl,-rpath -Wl,/usr/local/lib
> lib/.libs/libopenvswitch.so: undefined reference to `crc32c'
> lib/.libs/libopenvswitch.so: undefined reference to `sort'
> collect2: error: ld returned 1 exit status
> make[2]: *** [utilities/ovs-appctl] Error 1
>
> master]$ objdump -t lib/sort.o | grep .text
> 0000000000000000 l d .text 0000000000000000 .text
> 0000000000000000 l F .text 0000000000000109 quicksort
> 0000000000000110 g F .text 0000000000000013 sort
>
> master]$ objdump -t lib/crc32c.o | grep .text
> 0000000000000000 l d .text 0000000000000000 .text
> 0000000000000000 g F .text 0000000000000031 crc32c
>
> I guess it's missing the shared version.
> Am I missing something?
I had to run boot.sh. Does that help you as well?
More information about the dev
mailing list