Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.28.0 fails to compile on macOS 10.13 with Duseshrplib #16599

Closed
p5pRT opened this issue Jun 25, 2018 · 9 comments
Closed

5.28.0 fails to compile on macOS 10.13 with Duseshrplib #16599

p5pRT opened this issue Jun 25, 2018 · 9 comments

Comments

@p5pRT
Copy link

p5pRT commented Jun 25, 2018

Migrated from rt.perl.org#133306 (status was 'open')

Searchable as RT133306$

@p5pRT
Copy link
Author

p5pRT commented Jun 25, 2018

From dominyktiller@gmail.com

Hey folks,

Trying to update Perl to the latest 5.28.0 release over at Homebrew we
discovered (Homebrew/homebrew-core#29384) the
problematic use of `DYLD_LIBRARY_PATH` has expanded from the testsuite
(https://rt-archive.perl.org/perl5/Ticket/Display.html?id=126706) to the main build
itself.

I'll attach a full make printout but the failures are all similar to​:

cd dist/Storable ;
DYLD_LIBRARY_PATH=/private/tmp/perl-20180625-20323-1h89sy0/perl-5.28.0
/Applications/Xcode.app/Contents/Developer/usr/bin/make
lib/Storable/Limit.pm
/private/tmp/perl-20180625-20323-1h89sy0/perl-5.28.0/dist/Storable/../../miniperl
"-I../../lib" -MExtUtils​::Command -e 'mkpath' -- ../../lib
/private/tmp/perl-20180625-20323-1h89sy0/perl-5.28.0/cpan/Encode/KR/../../../miniperl
"-I../../../lib" -MExtUtils​::Command​::MM -e 'cp_nonempty' -- KR.bs
../../../lib/auto/Encode/KR/KR.bs 644
"../../perl" "-I../../lib" "-I../../lib" stacksize --core
dyld​: Library not loaded​:
/usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level/CORE/libperl.dylib
  Referenced from​:
/private/tmp/perl-20180625-20323-1h89sy0/perl-5.28.0/dist/Storable/../../perl
  Reason​: image not found
make[1]​: *** [lib/Storable/Limit.pm] Abort trap​: 6
make​: *** [dist/Storable/lib/Storable/Limit.pm] Error 2
make​: *** Waiting for unfinished jobs....

I appreciate the use of `-Duseshrplib` is not a default setting on macOS
(https://github.com/Perl/perl5/blob/74269297/hints/darwin.sh#L359-L360)
but given Homebrew, MacPorts and Apple themselves ship perl configured
with that option it's a pretty major issue for the platform.

It's worth noting that `DYLD_LIBRARY_PATH` has been intentionally
hobbled since macOS 10.11 as part of Apple's System Integrity Protection
and consequently for the vast majority of cases it should no longer be
used; rpath has become the standard replacement.

I've also attached a hastily thrown together bash script to show the
issue with passing `DYLD_LIBRARY_PATH`, in case that's a clearer way of
explaining the situation. Run that on any version of macOS after 10.11 &
it should blow up in the same way Perl's make process now does.

Thanks,

Dominyk
--
Sent from macOS.

@p5pRT
Copy link
Author

p5pRT commented Jun 25, 2018

From dominyktiller@gmail.com

2018-06-25 23​:48​:08 +0100

./Configure
-des
-Dprefix=/usr/local/Cellar/perl/5.28.0
-Dprivlib=/usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0
-Dsitelib=/usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0
-Dotherlibdirs=/usr/local/lib/perl5/site_perl/5.28.0
-Dperlpath=/usr/local/opt/perl/bin/perl
-Dstartperl=#!/usr/local/opt/perl/bin/perl
-Dman1dir=/usr/local/Cellar/perl/5.28.0/share/man/man1
-Dman3dir=/usr/local/Cellar/perl/5.28.0/share/man/man3
-Duseshrplib
-Duselargefiles
-Dusethreads

First let's make sure your kit is complete. Checking...
Locating common programs...
Checking compatibility between /bin/echo and builtin echo (if any)...
Symbolic links are supported.
Checking how to test for symbolic links...
You can test for symbolic links with 'test -h'.
Checking for cross-compile
No targethost for running compiler tests against defined, running locally
Good, your tr supports [​:lower​:] and [​:upper​:] to convert case.
Using [​:upper​:] and [​:lower​:] to convert case.
aix gnuknetbsd os390
aix_3 greenhills os400
aix_4 haiku posix-bc
altos486 hpux qnx
amigaos i386 riscos
atheos interix sco
aux_3 irix_4 sco_2_3_0
bitrig irix_5 sco_2_3_1
bsdos irix_6 sco_2_3_2
catamount irix_6_0 sco_2_3_3
convexos irix_6_1 sco_2_3_4
cxux isc solaris_2
cygwin isc_2 stellar
darwin linux-android sunos_4_0
dcosx linux sunos_4_1
dec_osf lynxos super-ux
dos_djgpp midnightbsd svr4
dragonfly mips svr5
dynix mirbsd ti1500
dynixptx mpc ultrix_4
epix ncr_tower umips
esix4 netbsd unicos
fps newsos4 unicosmk
freebsd nonstopux unisysdynix
freemint openbsd utekv
gnu opus uwin
gnukfreebsd os2 vos
Which of these apply, if any? [darwin]
Adding -mmacosx-version-min=10.13 to ccflags
Adding -mmacosx-version-min=10.13 to ldflags
Operating system name? [darwin]
Operating system version? [17.7.0]
Installation prefix to use? (~name ok) [/usr/local/Cellar/perl/5.28.0]
AFS does not seem to be running...
What installation prefix should I use for installing files? (~name ok)
[/usr/local/Cellar/perl/5.28.0]
Getting the current patchlevel...
Build a threading Perl? [y]
Use which C compiler? [cc]
Checking for GNU cc in disguise and/or its version number...
Now, how can we feed standard input to your C preprocessor...
Directories to use for library searches?
[/usr/local/lib /usr/include/libxml2 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/lib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib /usr/lib]
What is the file extension used for shared libraries? [dylib]
Make shared library basenames unique? [n]
Build Perl for SOCKS? [n]
Try to use long doubles if available? [n]
Checking for optional libraries...
What libraries to use? [-lpthread -lgdbm -ldbm -ldb -ldl -lm -lutil -lc]
What optimizer/debugger flag should be used? [-O3]
Any additional cc flags?
[-fno-common -DPERL_DARWIN -mmacosx-version-min=10.13 -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include]
Let me guess what the preprocessor flags are...
Any additional ld flags (NOT including libraries)?
[ -mmacosx-version-min=10.13 -fstack-protector-strong -L/usr/local/lib]
Checking your choice of C compiler and flags for coherency...
Checking to see how big your integers are...
Checking to see if you have long long...
Checking to see how big your long longs are...
Computing filename position in cpp output for #include directives...
<inttypes.h> found.
Checking to see if you have int64_t...
Checking which 64-bit integer type we could use...
We could use 'long' for 64-bit integers.
Try to use maximal 64-bit support, if available? [y]
Checking if your C library has broken 64-bit functions...
Checking for GNU C Library...
Shall I use /usr/bin/nm to extract C symbols from the libraries? [n]
Checking for C++...
Checking to see how big your double precision numbers are...
Checking to see if you have long double...
ldexpl() found.
Checking to see how big your long doubles are...
Checking the kind of long doubles you have...
You have x86 80-bit little endian long doubles.
What is your architecture name [darwin]
Add the Perl API version to your archname? [n]
Threads selected.
...setting architecture name to darwin-thread.
Multiplicity selected.
...setting architecture name to darwin-thread-multi.
This architecture is naturally 64-bit, not changing architecture name.
Pathname where the public executables will reside? (~name ok)
[/usr/local/Cellar/perl/5.28.0/bin]
Directory /usr/local/Cellar/perl/5.28.0/bin doesn't exist. Use that name anyway?
[y]
Use relocatable @​INC? [n]
Pathname where the private library files will reside? (~name ok)
[/usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0]
Where do you want to put the public architecture-dependent libraries? (~name ok)
[/usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level]
Other username to test security of setuid scripts with? [none]
I'll assume setuid scripts are *not* secure.
Does your kernel have *secure* setuid scripts? [n]
Installation prefix to use for add-on modules and utilities? (~name ok)
[/usr/local/Cellar/perl/5.28.0]
Pathname for the site-specific library files? (~name ok)
[/usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0]
List of earlier versions to include in @​INC? [none]
<malloc/malloc.h> found.
<malloc.h> NOT found.
Checking to see how big your pointers are...
Do you wish to wrap malloc calls to protect against potential overflows? [y]
Do you wish to attempt to use the malloc that comes with perl5? [n]
Your system wants malloc to return 'void *', it would seem.
Your system uses void free(), it would seem.
Pathname for the site-specific architecture-dependent library files? (~name ok)
[/usr/local/Cellar/perl/5.28.0/lib/perl5/site_perl/5.28.0/darwin-thread-multi-2level]
Do you want to configure vendor-specific add-on directories? [n]
Colon-separated list of additional directories for perl to search?
[/usr/local/lib/perl5/site_perl/5.28.0]
Support DTrace if available? [n]
Install any extra modules (y or n)? [n]
Directory for the main Perl5 html pages? (~name ok) [none]
Directory for the Perl5 module html pages? (~name ok) [none]
Do you want to install perl as /usr/bin/perl? [n]
dlopen() found.
<unistd.h> found.
Do you wish to use dynamic loading? [y]
Source file to use for dynamic loading [ext/DynaLoader/dl_dlopen.xs]
Any special flags to pass to cc -c to compile shared library modules? [none]
What command should be used to create dynamic libraries? [cc]
Any special flags to pass to cc to create a dynamically loaded library?
[ -mmacosx-version-min=10.13 -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector-strong]
Any special flags to pass to cc to use dynamic linking? [none]
Build a shared libperl.dylib (y/n) [y]
What name do you want to give to the shared libperl? [libperl.dylib]
System manual is in /usr/share/man/man1.
Where do the main Perl5 manual pages (source) go? (~name ok)
[/usr/local/Cellar/perl/5.28.0/share/man/man1]
What suffix should be used for the main Perl5 man pages? [1]
You can have filenames longer than 14 characters.
Where do the perl5 library man pages (source) go? (~name ok)
[/usr/local/Cellar/perl/5.28.0/share/man/man3]
What suffix should be used for the perl5 library man pages? [3]
Figuring out host name...
Your host name appears to be "tests-MacBook-Pro.local". Right? [y]
What is your domain name? [.local]
What is your e-mail address? [test@​tests-macbook-pro.local]
Perl administrator e-mail address [test@​tests-macbook-pro.local]
Do you want to use a version number suffix for installed binaries? [n]
Where do you keep publicly executable scripts? (~name ok)
[/usr/local/Cellar/perl/5.28.0/bin]
Directory /usr/local/Cellar/perl/5.28.0/bin doesn't exist. Use that name anyway?
[y]
Pathname where the add-on public executables should be installed? (~name ok)
[/usr/local/Cellar/perl/5.28.0/bin]
Directory /usr/local/Cellar/perl/5.28.0/bin doesn't exist. Use that name anyway?
[y]
Pathname where the site-specific html pages should be installed? (~name ok)
[none]
Pathname where the site-specific library html pages should be installed? (~name ok)
[none]
Pathname where the site-specific manual pages should be installed? (~name ok)
[/usr/local/Cellar/perl/5.28.0/share/man/man1]
Pathname where the site-specific library manual pages should be installed? (~name ok)
[/usr/local/Cellar/perl/5.28.0/share/man/man3]
Pathname where add-on public executable scripts should be installed? (~name ok)
[/usr/local/Cellar/perl/5.28.0/bin]
backtrace() found.
Use the "fast stdio" if available? [n]
off_t found.
Checking to see how big your file offsets are...
fpos_t found.
Checking the size of fpos_t...
qgcvt() NOT found.
Checking the kind of doubles you have...
You have IEEE 754 64-bit little endian doubles.
Checking how to print long doubles...
gconvert NOT found.
gcvt() found.
sprintf() found.
I'll use sprintf to convert floats into a string.
fwalk() NOT found.
accept4() NOT found.
access() found.
<sys/file.h> defines the *_OK access constants.
accessx() NOT found.
acosh() found.
aintl() NOT found.
alarm() found.
ctime64() NOT found.
localtime64() NOT found.
gmtime64() NOT found.
mktime64() NOT found.
difftime64() NOT found.
asctime64() NOT found.
<pthread.h> found.
<sys/types.h> found.
<sys/select.h> found.
Testing to see if we should include <sys/time.h>.
We'll include <sys/time.h>.
Checking to see if your struct tm has tm_zone field...
Checking to see if your struct tm has tm_gmtoff field...
asctime_r() found.
asinh() found.
atanh() found.
atolf() NOT found.
atoll() found.
Checking whether your compiler can handle __attribute__((format)) ...
Checking whether your compiler allows __printf__ format to be null ...
Checking whether your compiler can handle __attribute__((malloc)) ...
Checking whether your compiler can handle __attribute__((nonnull(1))) ...
Checking whether your compiler can handle __attribute__((noreturn)) ...
Checking whether your compiler can handle __attribute__((pure)) ...
Checking whether your compiler can handle __attribute__((unused)) ...
Checking whether your compiler can handle __attribute__((deprecated)) ...
Checking whether your compiler can handle __attribute__((warn_unused_result)) ...
getpgrp() found.
You have to use getpgrp() instead of getpgrp(pid).
setpgrp() found.
You have to use setpgrp() instead of setpgrp(pid,pgrp).
Checking whether your compiler can handle __builtin_add_overflow ...
Checking whether your compiler can handle __builtin_sub_overflow ...
Checking whether your compiler can handle __builtin_mul_overflow ...
Checking whether your compiler can handle __builtin_choose_expr ...
Checking whether your compiler can handle __builtin_expect ...
Checking for C99 variadic macros.
You have C99 variadic macros.
You have void (*signal())().
Checking whether your C compiler can cast large floats to int32.
Checking whether your C compiler can cast negative float to unsigned.
cbrt() found.
chown() found.
chroot() found.
chsize() NOT found.
class() NOT found.
clearenv() NOT found.
Hmm... Looks like you have Berkeley networking support.
socketpair() found.
Checking the availability sa_len in the sock struct ...
Checking the availability struct sockaddr_in6 ...
Checking the availability sin6_scope_id in struct sockaddr_in6 ...
Checking the availability struct ip_mreq ...
Checking the availability struct ip_mreq_source ...
Checking the availability struct ipv6_mreq ...
Checking the availability struct ipv6_mreq_source ...
Checking the availability of certain socket constants...
<sys/uio.h> found.
Checking to see if your system supports struct cmsghdr...
Checking to see if your C compiler knows about "const"...
copysign() found.
copysignl() found.
crypt() found.
<crypt.h> NOT found.
crypt_r() NOT found.
ctermid() found.
ctermid_r() found.
ctime_r() found.
cuserid() NOT found.
dbmclose() NOT found.
difftime() found.
<dirent.h> found.
Your directory entries are struct dirent.
Good, your directory entry keeps length information in d_namlen.
Checking to see if DIR has a dd_fd member variable
<sys/dir.h> found.
<sys/ndir.h> NOT found.
dirfd() found.
dladdr() found.
dlerror() found.
<dlfcn.h> found.
What is the extension of dynamically loaded modules [bundle]
Checking whether your dlsym() needs a leading underscore ...
dlsym doesn't need a leading underscore.
drand48_r() NOT found.
dup2() found.
dup3() NOT found.
<xlocale.h> found.
newlocale() found.
freelocale() found.
uselocale() found.
duplocale() found.
querylocale() found.
eaccess() NOT found.
endgrent() found.
<grp.h> found.
endgrent_r() NOT found.
endhostent() found.
<netdb.h> found.
endhostent_r() NOT found.
endnetent() found.
endnetent_r() NOT found.
endprotoent() found.
endprotoent_r() NOT found.
endpwent() found.
<pwd.h> found.
endpwent_r() NOT found.
endservent() found.
endservent_r() NOT found.
<sys/file.h> defines the O_* constants...
and you have the 3 argument form of open().
<sys/file.h> found.
We'll be including <sys/file.h>.
<fcntl.h> found.
We don't need to include <fcntl.h> if we include <sys/file.h>.
fork() found.
pipe() found.
Figuring out the flag used by open() for non-blocking I/O...
Let's see what value errno gets from read() on a O_NONBLOCK file...
erf() found.
erfc() found.
exp2() found.
expm1() found.
Checking how std your stdio is...
Checking to see what happens if we set the stdio ptr...
Increasing ptr in your stdio leaves cnt unchanged. Good.
You seem to have 'fast stdio' to directly manipulate the stdio buffers.
fchdir() found.
fchmod() found.
openat() found.
unlinkat() found.
renameat() found.
linkat() found.
fchmodat() found.
fchown() found.
fcntl() found.
Well, your system knows about the normal fd_set typedef...
and you have the normal fd_set macros (just as I'd expect).
fdclose() NOT found.
fdim() found.
fegetround() found.
fgetpos() found.
finite() found.
Hmm. Based on the hints in hints/darwin.sh,
the recommended value for $d_finite on this machine was "undef"!
  Keep the recommended value? [y]
finitel() NOT found.
flock() found.
fma() found.
fmax() found.
fmin() found.
fp_class() NOT found.
Checking to see if you have fpclassify...
fp_classify() NOT found.
fp_classl() NOT found.
pathconf() found.
fpathconf() found.
fpclass() NOT found.
fpclassl() NOT found.
fpgetround() NOT found.
Checking to see if you have fpos64_t...
frexpl() found.
<sys/param.h> found.
<sys/mount.h> found.
Checking to see if your system supports struct fs_data...
fseeko() found.
fsetpos() found.
fstatfs() found.
statvfs() found.
fstatvfs() found.
fsync() found.
ftello() found.
Checking if you have a working futimes()
Yes, you have
A working gai_strerror() found.
<ndbm.h> found.
<gdbm/ndbm.h> NOT found.
<gdbm-ndbm.h> NOT found.
dbm_open() found.
Checking if your <ndbm.h> uses prototypes...
getaddrinfo() found.
getcwd() found.
getespwnam() NOT found.
getfsstat() found.
getgrent() found.
getgrent_r() NOT found.
getgrgid_r() found.
getgrnam_r() found.
gethostbyaddr() found.
gethostbyname() found.
gethostent() found.
gethostname() found.
uname() found.
Shall I ignore gethostname() from now on? [n]
gethostbyaddr_r() NOT found.
gethostbyname_r() NOT found.
gethostent_r() NOT found.
getitimer() found.
getlogin() found.
getlogin_r() found.
getmnt() NOT found.
getmntent() NOT found.
getnameinfo() found.
getnetbyaddr() found.
getnetbyname() found.
getnetent() found.
getnetbyaddr_r() NOT found.
getnetbyname_r() NOT found.
getnetent_r() NOT found.
getpagesize() found.
getprotobyname() found.
getprotobynumber() found.
getprotoent() found.
getpgid() found.
getpgrp2() NOT found.
getppid() found.
getpriority() found.
getprotobyname_r() NOT found.
getprotobynumber_r() NOT found.
getprotoent_r() NOT found.
getprpwnam() NOT found.
getpwent() found.
getpwent_r() NOT found.
getpwnam_r() found.
getpwuid_r() found.
getservbyname() found.
getservbyport() found.
getservent() found.
getservbyname_r() NOT found.
getservbyport_r() NOT found.
getservent_r() NOT found.
getspnam() NOT found.
<shadow.h> NOT found.
getspnam_r() NOT found.
gettimeofday() found.
gmtime_r() found.
hasmntopt() NOT found.
<netinet/in.h> found.
<arpa/inet.h> found.
htonl() found.
hypot() found.
ilogb() found.
ilogbl() found.
inet_aton() found.
inet_ntop() found.
inet_pton() found.
isascii() found.
isblank() found.
Checking to see if you have isfinite...
isfinitel() NOT found.
Checking to see if you have isinf...
isinfl() NOT found.
Checking to see if you have isless...
Checking to see if you have isnan...
isnanl() NOT found.
Checking to see if you have isnormal...
j0() found.
j0l() NOT found.
killpg() found.
localeconv() found.
lchown() found.
LDBL_DIG found.
lgamma() found.
lgamma_r() found.
Checking to see if your libm supports _LIB_VERSION...
No, it does not (probably harmless)
link() found.
llrint() found.
llrintl() found.
llround() found.
llroundl() found.
localeconv_l() found.
localtime_r() found.
lockf() found.
log1p() found.
log2() found.
logb() found.
lrint() found.
lrintl() found.
lround() found.
lroundl() found.
lstat() found.
madvise() found.
malloc_size() found.
malloc_good_size() found.
mblen() found.
mbrlen() found.
mbrtowc() found.
mbstowcs() found.
mbtowc() found.
memmem() found.
memrchr() NOT found.
mkdir() found.
mkdtemp() found.
mkfifo() found.
mkostemp() found.
Hmm. Based on the hints in hints/darwin.sh,
the recommended value for $d_mkostemp on this machine was "undef"!
  Keep the recommended value? [y]
mkstemp() found.
mkstemps() found.
mktime() found.
<sys/mman.h> found.
mmap() found.
and it returns (void *).
sqrtl() found.
scalbnl() found.
truncl() found.
modfl() found.
mprotect() found.
msgctl() found.
msgget() found.
msgsnd() found.
msgrcv() found.
You have the full msg*(2) library.
Checking to see if your system supports struct msghdr...
msync() found.
munmap() found.
nan() found.
nanosleep() found.
nearbyint() found.
nextafter() found.
nexttoward() found.
nice() found.
<langinfo.h> found.
nl_langinfo() found.
<quadmath.h> NOT found.
Choosing the C types to be used for Perl's internal types...
Checking how many bits of your UVs your NVs can preserve...
Checking to find the largest integer value your NVs can hold...
The largest integer your NVs can preserve is equal to 256.0*256.0*256.0*256.0*256.0*256.0*2.0*2.0*2.0*2.0*2.0
Checking whether NV 0.0 is all bits zero in memory...
0.0 is represented as all bits zero in memory
Checking to see if you have off64_t...
Checking what constant to use for creating joinable pthreads...
You seem to use PTHREAD_CREATE_JOINABLE.
pause() found.
pipe2() NOT found.
poll() found.
Hmm. Based on the hints in hints/darwin.sh,
the recommended value for $d_poll on this machine was "undef"!
  Keep the recommended value? [y]
prctl() NOT found.
readlink() found.
vfork() found.
Do you still want to use vfork()? [y]
pthread_atfork found.
pthread_attr_setscope() found.
sched_yield() found.
pthread_yield() NOT found.
Checking to see if you have ptrdiff_t...
random_r() NOT found.
readdir() found.
seekdir() found.
telldir() found.
rewinddir() found.
readdir64_r() NOT found.
readdir_r() found.
readv() found.
recvmsg() found.
regcomp() found.
remainder() found.
remquo() found.
rename() found.
rint() found.
rmdir() found.
round() found.
scalbn() found.
select() found.
semctl() found.
semget() found.
semop() found.
You have the full sem*(2) library.
You have union semun in <sys/sem.h>.
You can use union semun for semctl IPC_STAT.
You can also use struct semid_ds* for semctl IPC_STAT.
sendmsg() found.
setegid() found.
seteuid() found.
setgrent() found.
setgrent_r() NOT found.
sethostent() found.
sethostent_r() NOT found.
setitimer() found.
setlinebuf() found.
setlocale() found.
<locale.h> found.
setlocale_r() NOT found.
setnetent() found.
setnetent_r() NOT found.
setprotoent() found.
setpgid() found.
setpgrp2() NOT found.
setpriority() found.
setproctitle() NOT found.
setprotoent_r() NOT found.
setpwent() found.
setpwent_r() NOT found.
setregid() found.
setresgid() NOT found.
setreuid() found.
setresuid() NOT found.
setrgid() found.
setruid() found.
setservent() found.
setservent_r() NOT found.
setsid() found.
setvbuf() found.
shmctl() found.
shmget() found.
shmat() found.
and it returns (void *).
shmdt() found.
You have the full shm*(2) library.
sigaction() found.
pid_t found.
Checking if your siginfo_t has si_errno field...
Checking if your siginfo_t has si_pid field...
Checking if your siginfo_t has si_uid field...
Checking if your siginfo_t has si_addr field...
Checking if your siginfo_t has si_status field...
Checking if your siginfo_t has si_band field...
Checking if your siginfo_t has si_value field...
Checking if your siginfo_t has si_fd field...
<sunmath.h> NOT found.
Checking to see if you have signbit() available to work on double... Yes.
sigprocmask() found.
POSIX sigsetjmp found.
snprintf() found.
vsnprintf() found.
sockatmark() found.
socks5_init() NOT found.
srand48_r() NOT found.
srandom_r() NOT found.
stat() found.
<sys/stat.h> found.
Checking to see if your struct stat has st_blocks field...
<sys/vfs.h> NOT found.
<sys/statfs.h> NOT found.
Checking to see if your system supports struct statfs...
Checking to see if your struct statfs has f_flags field...
Your compiler supports static __inline__.
Checking how to access stdio streams by file descriptor number...
I can't figure out how to access stdio streams by file descriptor number.
strcoll() found.
strerror_l() NOT found.
strerror_r() found.
strftime() found.
strlcat() found.
strlcpy() found.
strnlen() found.
strtod() found.
strtod_l() found.
strtol() found.
strtold() found.
strtold_l() found.
strtoll() found.
strtoq() found.
strtoul() found.
strtoull() found.
strtouq() found.
strxfrm() found.
symlink() found.
syscall() found.
Hmm. Based on the hints in hints/darwin.sh,
the recommended value for $d_syscall on this machine was "undef"!
  Keep the recommended value? [y]
sysconf() found.
system() found.
tcgetpgrp() found.
tcsetpgrp() found.
tgamma() found.
your system does not have nl_langinfo_l()
time() found.
time_t found.
timegm() found.
<sys/times.h> found.
times() found.
clock_t found.
tmpnam_r() NOT found.
trunc() found.
truncate() found.
ttyname_r() found.
tzname[] found.
(Testing for character data alignment may crash the test. That's okay.)
It seems that you must access character data in an aligned manner.
ualarm() found.
umask() found.
unordered() NOT found.
unsetenv() found.
usleep() found.
ustat() NOT found.
closedir() found.
Checking whether closedir() returns a status...
wait4() found.
waitpid() found.
A working wcscmp() found.
wcstombs() found.
A working wcsxfrm() found.
wctomb() found.
writev() found.
Checking alignment constraints...
Doubles must be aligned on a how-many-byte boundary? [8]
Checking how long a character is (in bits)...
What is the length of a character (in bits)? [8]
Checking to see how your cpp does stuff like concatenate tokens...
Oh! Smells like ANSI's been here.
<db.h> found.
Checking Berkeley DB version ...
Looks OK.
Checking return type needed for hash for Berkeley DB ...
Checking return type needed for prefix for Berkeley DB ...
Exclude . from @​INC by default? [y]
Checking the kind of infinities and nans you have...
(The following tests may crash. That's okay.)
Checking how many mantissa bits your doubles have...
Checking how many mantissa bits your long doubles have...
Checking how many mantissa bits your NVs have...
Using our internal random number implementation...
Determining whether or not we are on an EBCDIC system...
Nope, no EBCDIC, probably ASCII or some ISO Latin. Or UTF-8.
Checking how to flush all pending stdio output...
Your fflush(NULL) works okay for output streams.
Let's see if it clobbers input pipes...
fflush(NULL) seems to behave okay with input streams.
Checking the size of gid_t...
Checking the sign of gid_t...
Checking how to print 64-bit integers...
Checking the format strings to be used for Perl's internal types...
Checking the format string to be used for gids...
getgroups() found.
setgroups() found.
What type pointer is the second argument to getgroups() and setgroups()?
[gid_t]
Checking if your /usr/local/Homebrew/Library/Homebrew/shims/mac/super/make program sets $(MAKE)...
mode_t found.
It seems that va_copy() or similar will be needed.
size_t found.
What is the type for the 1st argument to gethostbyaddr? [char *]
What is the type for the 2nd argument to gethostbyaddr? [size_t]
What pager is used on your system? [/usr/bin/less -R]
Checking how to generate random libraries on your machine...
Your select() operates on 32 bits at a time.
Generating a list of signal names and numbers...
Checking the size of size_t...
Checking to see if you have socklen_t...
<socks.h> NOT found.
I'll be using ssize_t for functions returning a byte count.
Checking the size of st_ino...
Checking the sign of st_ino...
Your stdio uses signed chars.
Checking the size of uid_t...
Checking the sign of uid_t...
Checking the format string to be used for uids...
Determining whether we can use sysctl with KERN_PROC_PATHNAME to find executing program...
I'm unable to compile the test program.
I'll assume no sysctl with KERN_PROC_PATHNAME here.
Determining whether we can use _NSGetExecutablePath to find executing program...
You can use _NSGetExecutablePath to find the executing program.
Which compiler compiler (yacc or bison -y) shall I use? [yacc]
<bfd.h> found.
<execinfo.h> found.
<fenv.h> found.
<fp.h> NOT found.
<fp_class.h> NOT found.
<gdbm.h> found.
gdbm_open() found.
<ieeefp.h> NOT found.
<libutil.h> NOT found.
<mach/cthreads.h> NOT found.
<mntent.h> NOT found.
<net/errno.h> NOT found.
<netinet/tcp.h> found.
<poll.h> found.
Hmm. Based on the hints in hints/darwin.sh,
the recommended value for $i_poll on this machine was "undef"!
  Keep the recommended value? [y]
<prot.h> NOT found.
Guessing which symbols your C compiler and preprocessor define...
You seem to have -D_FORTIFY_SOURCE already, not adding it.
tcsetattr() found.
You have POSIX termios.h... good!
<stdbool.h> found.
<stdint.h> found.
<sys/access.h> NOT found.
<sys/filio.h> found.
<sys/ioctl.h> found.
You have socket ioctls defined in <sys/sockio.h>.
<syslog.h> found.
<sys/mode.h> NOT found.
<sys/poll.h> found.
<sys/resource.h> found.
<sys/security.h> NOT found.
<sys/statvfs.h> found.
<sys/un.h> found.
<sys/utsname.h> found.
<sys/wait.h> found.
<ustat.h> NOT found.
<utime.h> found.
<vfork.h> NOT found.
<wchar.h> found.
Looking for extensions...
What extensions do you wish to load dynamically?
[B Compress/Raw/Bzip2 Compress/Raw/Zlib Cwd DB_File Data/Dumper Devel/PPPort Devel/Peek Digest/MD5 Digest/SHA Encode Fcntl File/DosGlob File/Glob Filter/Util/Call GDBM_File Hash/Util Hash/Util/FieldHash I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 Math/BigInt/FastCalc NDBM_File Opcode POSIX PerlIO/encoding PerlIO/mmap PerlIO/scalar PerlIO/via SDBM_File Socket Storable Sys/Hostname Sys/Syslog Tie/Hash/NamedCapture Time/HiRes Time/Piece Unicode/Collate Unicode/Normalize XS/APItest XS/Typemap arybase attributes mro re threads threads/shared]
What extensions do you wish to load statically? [none]
I see a config.over file. Do you wish to load it? [y]
Stripping down executable paths...
Creating config.sh...
Doing variable substitutions on .SH files...
Extracting config.h (with variable substitutions)
cflags.SH​: Adding -std=c89.
cflags.SH​: Adding -Werror=declaration-after-statement.
cflags.SH​: Adding -Werror=pointer-arith.
cflags.SH​: Adding -Wextra.
cflags.SH​: Adding -Wc++-compat.
cflags.SH​: Adding -Wwrite-strings.
cflags.SH​: Adding -Wthread-safety because usethreads and clang and gccversion '4.2.1 Compatible Apple LLVM 9.1.0 (clang-902.0.39.2)'
cflags.SH​: cc = cc
cflags.SH​: ccflags = -fno-common -DPERL_DARWIN -mmacosx-version-min=10.13 -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -DPERL_USE_SAFE_PUTENV
cflags.SH​: stdflags = -std=c89
cflags.SH​: optimize = -O3
cflags.SH​: warn = -Wall -Werror=declaration-after-statement -Werror=pointer-arith -Wextra -Wc++-compat -Wwrite-strings -Wthread-safety
Extracting cflags (with variable substitutions)
Not re-extracting config.h
Extracting makedepend (with variable substitutions)
Extracting Makefile (with variable substitutions)
Extracting myconfig (with variable substitutions)
Extracting pod/Makefile (with variable substitutions)
Extracting Policy.sh (with variable substitutions)
Extracting runtests (with variable substitutions)
Run make depend now? [y]
cc -c -DPERL_CORE -fno-common -DPERL_DARWIN -mmacosx-version-min=10.13 -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -DPERL_USE_SAFE_PUTENV -std=c89 -O3 -Wall -Werror=declaration-after-statement -Werror=pointer-arith -Wextra -Wc++-compat -Wwrite-strings -Wthread-safety generate_uudmap.c
cc -o generate_uudmap -mmacosx-version-min=10.13 -fstack-protector-strong -L/usr/local/lib generate_uudmap.o -lpthread -ldl -lm -lutil -lc
./generate_uudmap uudmap.h bitcount.h mg_data.h
sh ./makedepend MAKE="/Applications/Xcode.app/Contents/Developer/usr/bin/make" cflags
rm -f opmini.c
rm -f perlmini.c
/bin/ln -s op.c opmini.c
/bin/ln -s perl.c perlmini.c
echo av.c scope.c op.c doop.c doio.c dump.c gv.c hv.c mg.c reentr.c mro_core.c perl.c perly.c pp.c pp_hot.c pp_ctl.c pp_sys.c regcomp.c regexec.c utf8.c sv.c taint.c toke.c util.c deb.c run.c universal.c pad.c globals.c keywords.c perlio.c perlapi.c numeric.c mathoms.c locale.c pp_pack.c pp_sort.c caretx.c dquote.c time64.c miniperlmain.c opmini.c perlmini.c | tr ' ' '\n' >.clist
Finding dependencies for av.o
Finding dependencies for scope.o
Finding dependencies for op.o
Finding dependencies for doop.o
Finding dependencies for doio.o
Finding dependencies for dump.o
Finding dependencies for gv.o
Finding dependencies for hv.o
Finding dependencies for mg.o
Finding dependencies for reentr.o
Finding dependencies for mro_core.o
Finding dependencies for perl.o
Finding dependencies for perly.o
Finding dependencies for pp.o
Finding dependencies for pp_hot.o
Finding dependencies for pp_ctl.o
Finding dependencies for pp_sys.o
Finding dependencies for regcomp.o
Finding dependencies for regexec.o
Finding dependencies for utf8.o
Finding dependencies for sv.o
Finding dependencies for taint.o
Finding dependencies for toke.o
Finding dependencies for util.o
Finding dependencies for deb.o
Finding dependencies for run.o
Finding dependencies for universal.o
Finding dependencies for pad.o
Finding dependencies for globals.o
Finding dependencies for keywords.o
Finding dependencies for perlio.o
Finding dependencies for perlapi.o
Finding dependencies for numeric.o
Finding dependencies for mathoms.o
Finding dependencies for locale.o
Finding dependencies for pp_pack.o
Finding dependencies for pp_sort.o
Finding dependencies for caretx.o
Finding dependencies for dquote.o
Finding dependencies for time64.o
Finding dependencies for miniperlmain.o
Finding dependencies for opmini.o
Finding dependencies for perlmini.o
Updating GNUmakefile...
Now you must run 'make'.

If you compile perl5 on a different machine or from a different object
directory, copy the Policy.sh file from this object directory to the
new one before you run Configure -- this will help you with most of
the policy defaults.

@p5pRT
Copy link
Author

p5pRT commented Jun 25, 2018

@p5pRT
Copy link
Author

p5pRT commented Jun 25, 2018

@p5pRT
Copy link
Author

p5pRT commented Jun 29, 2018

From @craigberry

On Mon, Jun 25, 2018 at 6​:25 PM, Dominyk Tiller (via RT)
<perlbug-followup@​perl.org> wrote​:

Trying to update Perl to the latest 5.28.0 release over at Homebrew we
discovered (Homebrew/homebrew-core#29384) the
problematic use of `DYLD_LIBRARY_PATH` has expanded from the testsuite
(https://rt-archive.perl.org/perl5/Ticket/Display.html?id=126706) to the main build
itself.
<snip>
I appreciate the use of `-Duseshrplib` is not a default setting on macOS
(https://github.com/Perl/perl5/blob/74269297/hints/darwin.sh#L359-L360)
but given Homebrew, MacPorts and Apple themselves ship perl configured
with that option it's a pretty major issue for the platform.

Although I use macOS at home for a lot of things, I'm no Darwin guru
and there may be other more qualified responders. But since you
haven't had a response, here's what I know (which isn't much).

15 years ago, useshrplib was turned off by default on Darwin​:

<https://perl5.git.perl.org/perl.git/blobdiff/d12a485175b2df4bc21c0d510c12c134794e6223..39225f5c712b7c912695bc38ab029bc2998beff8:/hints/darwin.sh>

with the comment, "useshrplib=true results in much slower startup
times." Is that no longer true, or was never true, or is true but not
significant enough to warrant the downsides of its absence? Unless
there is something uniquely performance-harming on macOS, this does
not seem to me like a default that should be platform-dependent.

It's worth noting that `DYLD_LIBRARY_PATH` has been intentionally
hobbled since macOS 10.11 as part of Apple's System Integrity Protection
and consequently for the vast majority of cases it should no longer be
used; rpath has become the standard replacement.

Good to know, thanks. I've have tried to read up on this, such as here​:

<https://blogs.oracle.com/dipol/dynamic-libraries,-rpath,-and-mac-os>

How do you make a run-time path that works for both running the test
suite and for the installed Perl?

@p5pRT
Copy link
Author

p5pRT commented Jun 29, 2018

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Sep 26, 2018

From @tonycoz

On Fri, 29 Jun 2018 05​:14​:24 -0700, craig.a.berry@​gmail.com wrote​:

How do you make a run-time path that works for both running the test
suite and for the installed Perl?

Adjust the rpath during installation, discussed at​:

http​://mac-os-forge.2317878.n4.nabble.com/Request-for-help-with-DYLD-LIBRARY-PATH-related-bug-in-perl5-28-build-td364192.html

with install_name_tool.

I'm looking over this now, as an alternative to my (partial) solution in #126706.

Tony

@p5pRT
Copy link
Author

p5pRT commented Oct 4, 2018

From @tonycoz

On Tue, 25 Sep 2018 23​:22​:36 -0700, tonyc wrote​:

I'm looking over this now, as an alternative to my (partial) solution
in #126706.

There's a new patch in #126706 using rpath/install_name_tool.

Tony

@xenu
Copy link
Member

xenu commented Oct 20, 2021

This is a duplicate of #15057. Closing.

@xenu xenu closed this as completed Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants