Questions tagged [apr]

The Apache Portable Runtime (APR) library provides a variety of services masking the differences between different operating systems with a uniform, platform-neutral interface.

The Apache Portable Runtime (APR) project's stated mission is:

The mission of the Apache Portable Runtime (APR) project is to create and maintain software libraries that provide a predictable and consistent interface to underlying platform-specific implementations. The primary goal is to provide an API to which software developers may code and be assured of predictable if not identical behaviour regardless of the platform on which their software is built, relieving them of the need to code special-case conditions to work around or take advantage of platform-specific deficiencies or features.

188 questions
2
votes
0 answers

Are strings interleaved when using ap_log_error() in a prefork apache?

Using printf() and fprintf() from an apache module in a pre-fork apache seems to interleave the logs in error_log. Would using ap_log_error() instead of, say, fprintf(stderr, ...) fix the interleaving?
Raffi Khatchadourian
  • 3,042
  • 3
  • 31
  • 37
2
votes
0 answers

Downsides of Apache portable runtime (APR) for Tomcat 7

I have been reading blogs and everywhere i only see the positives sides of using APR modules. But i am wondering are there any downsides of using it as its by default not shipped in tomcat package ?
Novice User
  • 3,552
  • 6
  • 31
  • 56
2
votes
1 answer

APR Calculation using Newton Raphson in php

I am trying to calculate APR using Newton Raphson in PHP. I have modified the code from this question into php Calculating annual percentage rate (need some help with inherited code) However the formula in this question is based on an initial…
user2274191
  • 843
  • 2
  • 14
  • 24
2
votes
1 answer

Windows Jenkins Slave and ssh-agent

I have a master (Ubuntu) and a slave (Mac) and build is working fine. Now, I need to add a Windows 7 slave. The problem is that I use the ssh-agent plugin and it requires special tomcat-related installation: http://tomcat.apache.org/native-doc/ In…
Korchkidu
  • 4,908
  • 8
  • 49
  • 69
2
votes
3 answers

Apache Tomcat doesn't find Native library

I maintained countless instances of tomcat but now I run into a problem I never ran into before. I get the well known log message where tomcat complains that it can't find the native lib at D:\Programme\Apache Software Foundation\Tomcat…
shylynx
  • 597
  • 1
  • 7
  • 25
2
votes
0 answers

Linking APR (Apache Portable Runtime) with CMake in Windows

i would like to compile a project using the apache portable runtime libraries (APR) and cmake. It all looks good when running along with linux (as there i can use the apr-1-config shell script). Nevertheless, in windows it looks like cmake does not…
Steve
  • 21
  • 2
2
votes
2 answers

Why is apr_palloc faster than malloc?

Reading through The Apache Modules Book, I come across this claim in part 3.4.3: "A secondary benefit is that pool allocation is faster than malloc on most platforms!" An open question, I realize, but.. well, why?
maligree
  • 5,939
  • 10
  • 34
  • 51
2
votes
2 answers

Error with apr-util while installing httpd 2.4.1 on centos

I am trying to install httpd-2.4.1 on my CentOS machine (it has 2.2.15 currently). I did the following... sudo yum install gcc sudo yum install perl sudo yum install libbz2 libbz2-devel sudo yum install bzip2-devel sudo yum install curl-devel sudo…
crazyphoton
  • 623
  • 5
  • 20
1
vote
2 answers

apr fails to configure when building subversion

I am trying to build subversion 1.7.4 on my ReadyNas Duo, it's a Sparc box running Debian with a couple of disks in it I use as my NAS. When i do a ./configure --prefix /c/local/packages from my subversion-1.7.4 directory I get configure: error: No…
Paddy Carroll
  • 528
  • 3
  • 20
1
vote
1 answer

can not install passenger. libapr-1.a: could not read symbols: Bad value

I have an error while installing passenger. # passenger-install-apache2-module My environment is CentOS release 5.7 (Final) httpd.x86_64 2.2.3-63.el5.centos.1 Phusion Passenger 3.0.11 Any help is appreciated. Thanks in advance. g++ -shared…
anchor
  • 23
  • 3
1
vote
1 answer

Jboss AS7, APR native connectors and sendfile

I've set out on an endeavour to implement support for a feature similar to mod_xsendfile on torquebox (www.torquebox.org). Torquebox is basically a bunch of code on top of JBoss AS 7, which makes my effort kinda equivalent to making sendfile work…
Parbst
  • 93
  • 1
  • 9
1
vote
1 answer

converting c method that uses bitwise to php

I'm trying to convert an APR (apache runtime) method to PHP, but I can't quite figure it out. The method creates a string that is a directory path and file - so example output would be A/B/C/[a-fA-F0-9_@]. It's using bitwise operations on a binary…
rynop
  • 50,086
  • 26
  • 101
  • 112
1
vote
1 answer

apr-utils apr_strmatch regex syntax

I want to port the following regex from python: HASH_REGEX = re.compile("([a-fA-F0-9]{32})") if HASH_REGEX.match(target): print "We have match" to C with apr-utils apr_strmatch function: pattern = apr_strmatch_precompile(pool,…
Darius Kucinskas
  • 10,193
  • 12
  • 57
  • 79
1
vote
2 answers

format specifier for apr apr_time_h

gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1 Apache protable runtime 1.4 c89 and compiling in -m32 mode Code: apr_time_t time_msecs = 0; time_msecs = apr_time_as_msec(apr_time_now()); printf("Time in msecs [ %lu ]\n", time_msecs); I get the…
ant2009
  • 27,094
  • 154
  • 411
  • 609
1
vote
1 answer

Tomcat crashes while using unixDomainSocket as a connector

I was excited to see Tomcat 9 finally get support for Unix domain sockets, but it appears my setup is bad or incomplete. Unfortunately I can't seem to find a working example of a server.xml anywhere on the internet. What seems to be happening is…
Jonathan S. Fisher
  • 8,189
  • 6
  • 46
  • 84