Subject: | Error compilation under ubuntu 14.04 |
Hi!
I fixed the compilation error in your module.
The problem appeared in the new ubuntu 14.04.
Perl version: 5.18.2
Operating System: Linux 3.13.0-54-generic #91-Ubuntu SMP Tue May 26 19:15:08 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
My solution to the problem - In the file ppport.h added the declaration of variables:
# define PL_uid 0
# define PL_euid 0
# define PL_gid 0
# define PL_egid 0
Subject: | UnixSetUser_error.txt |
root@p35:/usr/local/lib/perl/5.18.2# cpan -i Unix::SetUser
Reading '/root/.cpan/Metadata'
Database was generated on Sat, 26 Sep 2015 04:17:02 GMT
Running install for module 'Unix::SetUser'
Running make for D/DM/DMARTIN/Unix-SavedIDs-0.4.1.tar.gz
Checksum for /root/.cpan/sources/authors/id/D/DM/DMARTIN/Unix-SavedIDs-0.4.1.tar.gz ok
CPAN.pm: Building D/DM/DMARTIN/Unix-SavedIDs-0.4.1.tar.gz
You are running Linux with a kernel newer than 2.1.44. Good!
Do I have permission to run a test that will touch and unlink a randomly named, currenly non-existant file in your /tmp dir? (Y/N) [N ]
N
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Unix-SavedIDs' version 'v0.4.1'
Building Unix-SavedIDs
cc -I/usr/lib/perl/5.18/CORE -DXS_VERSION="v0.4.1" -DVERSION="v0.4.1" -fPIC -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -o lib/Unix/SavedIDs.o lib/Unix/SavedIDs.c
lib/Unix/SavedIDs.xs: In function ‘XS_Unix__SavedIDs__setresuid’:
lib/Unix/SavedIDs.xs:56:3: error: ‘PL_uid’ undeclared (first use in this function)
PL_uid = getuid();
^
lib/Unix/SavedIDs.xs:56:3: note: each undeclared identifier is reported only once for each function it appears in
lib/Unix/SavedIDs.xs:57:3: error: ‘PL_euid’ undeclared (first use in this function)
PL_euid = geteuid();
^
lib/Unix/SavedIDs.xs: In function ‘XS_Unix__SavedIDs__setresgid’:
lib/Unix/SavedIDs.xs:69:3: error: ‘PL_gid’ undeclared (first use in this function)
PL_gid = getgid();
^
lib/Unix/SavedIDs.xs:70:3: error: ‘PL_egid’ undeclared (first use in this function)
PL_egid = getegid();
^
error building lib/Unix/SavedIDs.o from 'lib/Unix/SavedIDs.c' at /usr/share/perl/5.18/ExtUtils/CBuilder/Base.pm line 177.
DMARTIN/Unix-SavedIDs-0.4.1.tar.gz
./Build -- NOT OK
Running Build test
Can't test without successful make
Running Build install
Make had returned bad status, install seems impossible
root@p35:/usr/local/lib/perl/5.18.2#