unable to build against apr -- undefined reference to `apr_initialize'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apache2 (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
I'm trying to compile the following program in oneiric:
#include <apr.h>
#include <apr_general.h>
#include <apr_pools.h>
#include <apr_file_info.h>
#include <apr_file_io.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
apr_pool_t *pool;
apr_file_t *out;
apr_
//atexit(
apr_
apr_
apr_
apr_
return EXIT_SUCCESS;
}
$ gcc -Wall $(apr-1-config --cflags --cppflags --includes --link-ld) test2.c -o test
/tmp/ccmjrPSw.o: In function `main':
test2.c:
test2.c:
test2.c:
test2.c:
test2.c:
collect2: ld returned 1 exit status
This works fine in maverick.
$ apr-1-config --cflags --cppflags --includes --link-ld
-pthread -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/
$ lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10
$ apt-cache policy apache2-prefork-dev
apache2-
Installed: 2.2.20-1ubuntu1
Candidate: 2.2.20-1ubuntu1
Version table:
*** 2.2.20-1ubuntu1 0
500 http://
100 /var/lib/
Changed in apache2 (Ubuntu): | |
importance: | Undecided → Medium |
This works fine in natty I meant to say.