minimal_client.c does not compile as described
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subversion (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The minimal_client.c demo program states in its first lines how to compile it:
* To compile on Debian:
*
* cc minimal_client.c -o minimal_client \
* -I/usr/
*
But on Ubuntu we have to use:
$ gcc minimal_client.c -o minimal_client -I/usr/
instead!
The source can be found at /usr/share/
$ lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10
$ apt-cache policy libsvn-dev libsvn-doc
libsvn-dev:
Installed: 1.6.12dfsg-4ubuntu5
Candidate: 1.6.12dfsg-4ubuntu5
Version table:
*** 1.6.12dfsg-4ubuntu5 0
500 http://
100 /var/lib/
libsvn-doc:
Installed: 1.6.12dfsg-4ubuntu5
Candidate: 1.6.12dfsg-4ubuntu5
Version table:
*** 1.6.12dfsg-4ubuntu5 0
500 http://
100 /var/lib/
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