cc -c -I/usr/local/apache2/include -I/usr/local/apache2/regex
-I/usr/local/apache2/os/unix -I/usr/include/apr-1
-I/home/ruben/src/Embperl-2.5.0_4/xs -D_REENTRANT -D_GNU_SOURCE -fPIC
-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2
-I/usr/local/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE -DMOD_PERL
-DMP_COMPAT_1X -fgnu89-inline -DLINUX -O2 -DVERSION=\"2.5.0_4\"
-DXS_VERSION=\"2.5.0_4\" -fPIC
"-I/usr/local/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE" -DAPACHE
-DAPACHE2 -DEP2 -o epcache.o epcache.c
cc -c -I/usr/local/apache2/include -I/usr/local/apache2/regex
-I/usr/local/apache2/os/unix -I/usr/include/apr-1
-I/home/ruben/src/Embperl-2.5.0_4/xs -D_REENTRANT -D_GNU_SOURCE -fPIC
-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2
-I/usr/local/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE -DMOD_PERL
-DMP_COMPAT_1X -fgnu89-inline -DLINUX -O2 -DVERSION=\"2.5.0_4\"
-DXS_VERSION=\"2.5.0_4\" -fPIC
"-I/usr/local/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE" -DAPACHE
-DAPACHE2 -DEP2 -o epprovider.o epprovider.c
cc -c -I/usr/local/apache2/include -I/usr/local/apache2/regex
-I/usr/local/apache2/os/unix -I/usr/include/apr-1
-I/home/ruben/src/Embperl-2.5.0_4/xs -D_REENTRANT -D_GNU_SOURCE -fPIC
-fwrapv -fno-strict-aliasing -pipe -fstack-protector-strong
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2
-I/usr/local/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE -DMOD_PERL
-DMP_COMPAT_1X -fgnu89-inline -DLINUX -O2 -DVERSION=\"2.5.0_4\"
-DXS_VERSION=\"2.5.0_4\" -fPIC
"-I/usr/local/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE" -DAPACHE
-DAPACHE2 -DEP2 -o mod_embperl.o mod_embperl.c
mod_embperl.c:42:12: error: static declaration of ‘gettid’ follows
non-static declaration
42 | static int gettid()
| ^~~~~~
In file included from /usr/include/unistd.h:1221,
from /usr/include/bits/sigstksz.h:24,
from /usr/include/signal.h:328,
from /usr/include/sys/param.h:28,
from
/usr/local/lib/perl5/5.26.1/x86_64-linux-thread-multi/CORE/perl.h:775,
from ep.h:45,
from mod_embperl.c:19:
/usr/include/bits/unistd_ext.h:34:16: note: previous declaration of
‘gettid’ with type ‘__pid_t(void)’ {aka ‘int(void)’}
34 | extern __pid_t gettid (void) __THROW;
| ^~~~~~
make: *** [Makefile:577: mod_embperl.o] Error 1
cd /home/ruben/src/Embperl-2.5.0_4/
2
Patch the gettid Collision
Resolve symbol conflict
Use sed to rename the local gettid function to ep_gettid in
mod_embperl.c:
Bash
sed -i 's/\bgettid\b/ep_gettid/g' mod_embperl.c
Verification: Run git diff mod_embperl.c or inspect line 42 to confirm
gettid was changed to ep_gettid.
3
Clean and Re-run Makefile
Fresh compilation
Clean any partial build artifacts, reconfigure, and build:
Bash
make clean
perl Makefile.PL
make
--
So many immigrant groups have swept through our town
that Brooklyn, like Atlantis, reaches mythological
proportions in the mind of the world - RI Safir 1998
http://www.mrbrklyn.com
DRM is THEFT - We are the STAKEHOLDERS - RI Safir 2002
http://www.nylxs.com - Leadership Development in Free Software
http://www2.mrbrklyn.com/resources - Unpublished Archive
http://www.brooklyn-fishing.com - the wilds in our backyard
http://www.brooklyn-living.com
Being so tracked is for FARM ANIMALS and extermination camps,
but incompatible with living as a free human being. -RI Safir 2013
Democracy requires agency and education.
They are pillars of rational self-interest and democratic governance.
Incitement on communication platforms shaped by opaque proprietary code
and optimized for instant profits is not a capitalist endeavor, but an
attack on our political system — a system of governance, not chaos,
that must guarantee minority rights, majority interests, and above all
else, transparency to be evaluated by the governed.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]