When compiling with the original cmd line, we get this:
$ gcc minimal_client.c -o minimal_client -I/usr/include/subversion-1 $(pkg-config --cflags apr-1) -lsvn_client-1
minimal_client.c: In function ‘main’:
minimal_client.c:254:3: warning: ‘svn_client_ls’ is deprecated (declared at /usr/include/subversion-1/svn_client.h:4077) [-Wdeprecated-declarations]
/usr/bin/ld: /tmp/ccFIqY3z.o: undefined reference to symbol 'svn_auth_get_username_prompt_provider'
/usr/bin/ld: note: 'svn_auth_get_username_prompt_provider' is defined in DSO /usr/lib/libsvn_subr-1.so.1 so try adding it to the linker command line
/usr/lib/libsvn_subr-1.so.1: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
When compiling with the original cmd line, we get this:
$ gcc minimal_client.c -o minimal_client -I/usr/ include/ subversion- 1 $(pkg-config --cflags apr-1) -lsvn_client-1 client. c:254:3: warning: ‘svn_client_ls’ is deprecated (declared at /usr/include/ subversion- 1/svn_client. h:4077) [-Wdeprecated- declarations] get_username_ prompt_ provider' get_username_ prompt_ provider' is defined in DSO /usr/lib/ libsvn_ subr-1. so.1 so try adding it to the linker command line libsvn_ subr-1. so.1: could not read symbols: Invalid operation
minimal_client.c: In function ‘main’:
minimal_
/usr/bin/ld: /tmp/ccFIqY3z.o: undefined reference to symbol 'svn_auth_
/usr/bin/ld: note: 'svn_auth_
/usr/lib/
collect2: ld returned 1 exit status