cmocka_apache_module's Introduction
cmocka_apache_module's People
cmocka_apache_module's Issues
Make tests undefined reference to `ap_rprintf'
$ make test
rm -rf *.la *.lo *.slo .libs run_tests
gcc -o run_test mod_hello.c run_test.c \
-lcmocka -lapr-1 -laprutil-1 \
-I/usr/include/apache2 -I/usr/include/apr-1.0
/tmp/ccgCgA7c.o: In function `hello_register_hooks':
mod_hello.c:(.text+0x23): undefined reference to `ap_hook_quick_handler'
/tmp/ccgCgA7c.o: In function `hello_request_handler':
mod_hello.c:(.text+0x4d): undefined reference to `ap_rprintf'
collect2: error: ld returned 1 exit status
Makefile:17: recipe for target 'test' failed
make: *** [test] Error 1
It seems that I have to link ap_rprintf somehow but I don't know how. The function is declared in http_protocol.h ...
/usr/include/apache2/http_protocol.h:AP_DECLARE_NONSTD(int) ap_rprintf(request_rec *r, const char *fmt,...)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.