Date: Fri, 30 Jan 2009 11:04:51 -0500 From: William Bentley <William@futurecis.com> To: freebsd-questions@freebsd.org Subject: Perl5.8 Won't Build Message-ID: <49832523.60402@futurecis.com>
next in thread | raw e-mail | index | archive | help
Hey All, Trying to build Perl5.8 and keep getting error messages about the makefile. This is a new installation under AMD64 7.1Release inside of a jail. Already did a make clean and portsnap. I already wrote to the lang mailing list as well to no avail as of yet. Any ideas appreciated. Here is the output. #make ===> Vulnerability check disabled, database not found ===> Found saved configuration for perl-5.8.9 ===> Extracting for perl-5.8.9 => MD5 Checksum OK for perl/perl-5.8.9.tar.bz2. => SHA256 Checksum OK for perl/perl-5.8.9.tar.bz2. => MD5 Checksum OK for perl/BSDPAN-5.8.9.tar.bz2. => SHA256 Checksum OK for perl/BSDPAN-5.8.9.tar.bz2. => MD5 Checksum OK for perl/defined-or-5.8.9.bz2. => SHA256 Checksum OK for perl/defined-or-5.8.9.bz2. ===> Patching for perl-5.8.9 ===> Applying distribution patches for perl-5.8.9 ===> Applying FreeBSD patches for perl-5.8.9 /usr/bin/sed -e 's|%%PREFIX%%|/usr/local|g;' -e 's|%%PERL_VER%%|5.8.9|g;' -e 's|%%PERL_VERSION%%|5.8.9|g;' -e 's|%%PERL_ARCH%%|mach|g;' -e 's|%%MAKE_CONF%%|/etc/make.conf|g;' /usr/ports/lang/perl5.8/files/use.perl > /usr/ports/lang/perl5.8/work/use.perl /usr/bin/sed -e 's|%%PERL%%|/usr/local/bin/perl|g;' /usr/ports/lang/perl5.8/files/perl-after-upgrade > /usr/ports/lang/perl5.8/work/perl-after-upgrade /bin/cp /usr/ports/lang/perl5.8/work/use.perl /usr/ports/lang/perl5.8/work/pkg-install /bin/cp /usr/ports/lang/perl5.8/work/use.perl /usr/ports/lang/perl5.8/work/pkg-deinstall /usr/bin/sed -i.bak -e 's|%%PTHREAD_LIBS%%||g;' -e 's|%%PTHREAD_CFLAGS%%||g;' /usr/ports/lang/perl5.8/work/perl-5.8.9/hints/freebsd.sh ===> Configuring for perl-5.8.9 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'. Good, your tr supports [:lower:] and [:upper:] to convert case. Using [:upper:] and [:lower:] to convert case. 3b1 catamount dynixptx i386 machten next_3 qnx sunos_4_0 unisysdynix aix convexos epix interix machten_2 next_3_0 rhapsody sunos_4_1 utekv aix_3 cxux esix4 irix_4 midnightbsd next_4 riscos super-ux uts aix_4 cygwin fps irix_5 mint nonstopux sco svr4 uwin altos486 darwin freebsd irix_6 mips openbsd sco_2_3_0 svr5 vmesa amigaos dcosx genix irix_6_0 mirbsd opus sco_2_3_1 ti1500 vos apollo dec_osf gnu irix_6_1 mpc os2 sco_2_3_2 titanos atheos dgux gnukfreebsd isc mpeix os390 sco_2_3_3 ultrix_4 aux_3 dos_djgpp gnuknetbsd isc_2 ncr_tower os400 sco_2_3_4 umips beos dragonfly greenhills linux netbsd posix-bc solaris_2 unicos bsdos dynix hpux lynxos newsos4 powerux stellar unicosmk Which of these apply, if any? [freebsd] ./hints/freebsd.sh: /usr/bin/objformat: not found Some users have reported that Configure halts when testing for the O_NONBLOCK symbol with a syntax error. This is apparently a sh error. Rerunning Configure with ksh apparently fixes the problem. Try ksh Configure [your options] Operating system name? [freebsd] Operating system version? [7.1-release] Installation prefix to use? (~name ok) [/usr/local] AFS does not seem to be running... What installation prefix should I use for installing files? (~name ok) [/usr/local] Build Perl for SOCKS? [n] Use the PerlIO abstraction layer? [y] Getting the current patchlevel... Build a threading Perl? [n] Build Perl for multiplicity? [n] 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/lib /usr/local/lib] What is the file extension used for shared libraries? [so] Try to use long doubles if available? [n] Checking for optional libraries... What libraries to use? [-lm -lcrypt -lutil] What optimizer/debugger flag should be used? [-O2 -fno-strict-aliasing -pipe] Any additional cc flags? [-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.9/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include] Let me guess what the preprocessor flags are... Any additional ld flags (NOT including libraries)? [ -Wl,-E -L/usr/local/lib] Checking your choice of C compiler and flags for coherency... Computing filename position in cpp output for #include directives... <stdlib.h> found. 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... <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 to see how big your double precision numbers are... Checking to see if you have long double... Checking to see how big your long doubles are... What is your architecture name [amd64-freebsd] This architecture is naturally 64-bit, not changing architecture name. Perlio selected. Pathname where the public executables will reside? (~name ok) [/usr/local/bin] Use relocatable @INC? [n] Pathname where the private library files will reside? (~name ok) [/usr/local/lib/perl5/5.8.9] Where do you want to put the public architecture-dependent libraries? (~name ok) [/usr/local/lib/perl5/5.8.9/mach] 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] Do you want to do setuid/setgid emulation? [n] Installation prefix to use for add-on modules and utilities? (~name ok) [/usr/local] Pathname for the site-specific library files? (~name ok) [/usr/local/lib/perl5/site_perl/5.8.9] List of earlier versions to include in @INC? [none] <malloc.h> NOT found. Checking to see how well your C compiler groks the void type... Good. It appears to support void to the level perl5 wants. 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? [y] 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/lib/perl5/site_perl/5.8.9/mach] Do you want to configure vendor-specific add-on directories? [n] Colon-separated list of additional directories for perl to search? [none] Checking out function prototypes... 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] Checking for GNU C Library... Shall I use /usr/bin/nm to extract C symbols from the libraries? [n] <dld.h> NOT found. Checking for C++... 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? [-DPIC -fPIC] What command should be used to create dynamic libraries? [cc] Any special flags to pass to cc to create a dynamically loaded library? [-shared -L/usr/local/lib] Any special flags to pass to cc to use dynamic linking? [none] Build a shared libperl.so (y/n) [y] What name do you want to give to the shared libperl? [libperl.so] Adding -Wl,-R/usr/local/lib/perl5/5.8.9/mach/CORE to the flags passed to cc so that the perl executable will find the installed shared libperl.so. System manual is in /usr/share/man/man1. Where do the main Perl5 manual pages (source) go? (~name ok) [/usr/local/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/lib/perl5/5.8.9/perl/man/man3] What suffix should be used for the perl5 library man pages? [3] Figuring out host name... Your host name appears to be "p1.futurecis.com". Right? [y] What is your domain name? [.futurecis.com] What is your e-mail address? [wbentley@p1.futurecis.com] Perl administrator e-mail address [wbentley@p1.futurecis.com] Do you want to install only the version-specific parts of perl? [n] What shall I put after the #! to start up perl ("none" to not use #!)? [/usr/local/bin/perl] Where do you keep publicly executable scripts? (~name ok) [/usr/local/bin] Pathname where the add-on public executables should be installed? (~name ok) [/usr/local/bin] 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/man/man1] Pathname where the site-specific library manual pages should be installed? (~name ok) [/usr/local/lib/perl5/5.8.9/man/man3] Pathname where add-on public executable scripts should be installed? (~name ok) [/usr/local/bin] Use the "fast stdio" if available? [y] off_t found. Checking to see how big your file offsets are... fpos_t found. Checking the size of fpos_t... Using <string.h> instead of <strings.h>. qgcvt() NOT found. Checking how to print long doubles... gconvert NOT found. gcvt NOT found. sprintf() found. I'll use sprintf to convert floats into a string. fwalk() NOT found. access() found. <sys/file.h> defines the *_OK access constants. accessx() NOT found. aintl() NOT found. alarm() found. <pthread.h> found. <sys/types.h> found. <sys/select.h> found. Testing to see if we should include <time.h>, <sys/time.h> or both. 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. atolf() NOT found. atoll() found. Checking whether your compiler can handle __attribute__((format)) ... 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__((warn_unused_result)) ... bcmp() found. bcopy() found. getpgrp() found. You have to use getpgrp() instead of getpgrp(pid). setpgrp() found. You have to use setpgrp(pid,pgrp) instead of setpgrp(). Checking whether your compiler can handle __builtin_choose_expr ... Checking whether your compiler can handle __builtin_expect ... bzero() found. <stdarg.h> found. <varargs.h> found. We'll include <stdarg.h> to get va_dcl definition. You have <stdarg.h> and <stdlib.h>, so 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. vprintf() found. Your vsprintf() returns (int). 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 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"... copysignl() found. crypt() found. <crypt.h> NOT found. crypt_r() NOT found. ctermid() found. ctermid_r() found. ctime_r() found. cuserid() NOT found. <limits.h> found. <float.h> found. DBL_DIG 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. dlerror() found. <dlfcn.h> found. What is the extension of dynamically loaded modules [so] Checking whether your dlsym() needs a leading underscore ... dlsym doesn't need a leading underscore. drand48_r() NOT found. dup2() found. eaccess() 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... 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. 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). fgetpos() found. finite() found. finitel() NOT found. flock() found. fp_class() NOT found. pathconf() found. fpathconf() found. fpclass() NOT found. fpclassify() NOT found. fpclassl() 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 getcwd() found. getespwnam() NOT found. getfsstat() found. getgrent() found. getgrent_r() 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() found. gethostbyname_r() found. gethostent_r() found. getitimer() found. getlogin() found. getlogin_r() found. getmnt() NOT found. getmntent() NOT found. getnetbyaddr() found. getnetbyname() found. getnetent() found. getnetbyaddr_r() found. getnetbyname_r() found. getnetent_r() found. getpagesize() found. getprotobyname() found. getprotobynumber() found. getprotoent() found. getpgid() found. getpgrp2() NOT found. getppid() found. getpriority() found. getprotobyname_r() found. getprotobynumber_r() found. getprotoent_r() found. getprpwnam() NOT found. getpwent() found. getpwent_r() found. getpwnam_r() found. getpwuid_r() found. getservbyname() found. getservbyport() found. getservent() found. getservbyname_r() found. getservbyport_r() found. getservent_r() 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. ilogbl() found. strchr() found. inet_aton() found. isascii() found. isfinite() NOT found. isinf() found. isnan() found. isnanl() NOT found. killpg() found. lchown() found. LDBL_DIG found. <math.h> found. Checking to see if your libm supports _LIB_VERSION... No, it does not (probably harmless) link() found. localtime_r() found. localeconv() found. lockf() found. lstat() found. madvise() found. malloc_size() NOT found. malloc_good_size() NOT found. mblen() found. mbstowcs() found. mbtowc() found. memchr() found. memcmp() found. memcpy() found. memmove() found. memset() found. mkdir() found. mkdtemp() found. mkfifo() found. mkstemp() found. mkstemps() found. mktime() found. <sys/mman.h> found. mmap() found. and it returns (void *). sqrtl() NOT found. scalbnl() found. modfl() found. Your modfl() seems okay for large values. 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. nice() found. <langinfo.h> found. nl_langinfo() found. Checking to see if your C compiler knows about "volatile"... Choosing the C types to be used for Perl's internal types... Checking how many bits of your UVs your NVs can preserve... 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... pause() found. poll() found. readlink() found. vfork() found. Do you still want to use vfork()? [y] pthread_attr_setscope() found. random_r() NOT found. readdir() found. seekdir() found. telldir() found. rewinddir() found. readdir64_r() NOT found. readdir_r() found. readv() found. recvmsg() found. rename() found. rmdir() found. <memory.h> found. Checking if your memcmp() can compare relative magnitude... 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() found. setprotoent_r() NOT found. setpwent() found. setpwent_r() NOT found. setregid() found. setresgid() found. setreuid() found. setresuid() found. setrgid() found. setruid() found. setservent() found. setservent_r() NOT found. setsid() found. setvbuf() found. <sfio.h> NOT found. shmctl() found. shmget() found. shmat() found. and it returns (void *). shmdt() found. You have the full shm*(2) library. sigaction() found. <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. Checking whether sprintf returns the length of the string... sprintf returns the length of the string (as ANSI says it should) srand48_r() NOT found. srandom_r() NOT 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... 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. Checking to see if your C compiler can copy structs... strerror() found. strerror_r() found. strftime() found. strlcat() found. strlcpy() found. strtod() found. strtol() found. strtold() found. strtoll() found. strtoq() found. strtoul() found. strtoull() found. strtouq() found. strxfrm() found. symlink() found. syscall() found. sysconf() found. system() found. tcgetpgrp() found. tcsetpgrp() found. time() found. time_t found. <sys/times.h> found. times() found. clock_t found. tmpnam_r() NOT 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. wcstombs() found. wctomb() found. writev() found. Checking alignment constraints... Doubles must be aligned on a how-many-byte boundary? [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 ... Looking for a random number function... Good, found drand48(). Use which function to generate random numbers? [drand48] 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/bin/make program sets $(MAKE)... mode_t found. Bus error (core dumped) 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] pid_t found. Checking how to generate random libraries on your machine... Your select() operates on 64 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. 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... Which compiler compiler (byacc or yacc) shall I use? [/usr/bin/byacc] <fp.h> NOT found. <fp_class.h> NOT found. <gdbm.h> NOT found. <ieeefp.h> found. <libutil.h> found. <mntent.h> NOT found. <ndbm.h> found. dbm_open() found. <net/errno.h> NOT found. <netinet/tcp.h> found. <poll.h> found. <prot.h> NOT found. Guessing which symbols your C compiler and preprocessor define... tcsetattr() found. You have POSIX termios.h... good! <stddef.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/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. <values.h> NOT found. <vfork.h> NOT found. Looking for extensions... What extensions do you wish to load dynamically? [B ByteLoader Cwd DB_File Data/Dumper Devel/DProf Devel/PPPort Devel/Peek Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call Hash/Util I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 NDBM_File Opcode POSIX PerlIO/encoding PerlIO/scalar PerlIO/via SDBM_File Socket Storable Sys/Hostname Sys/Syslog Text/Soundex Time/HiRes Unicode/Normalize XS/APItest XS/Typemap attrs re threads threads/shared] What extensions do you wish to load statically? [none] Stripping down executable paths... Creating config.sh... Doing variable substitutions on .SH files... Extracting config.h (with variable substitutions) Extracting cflags (with variable substitutions) Not re-extracting config.h Extracting makeaperl (with variable substitutions) Extracting makedepend (with variable substitutions) Extracting makedir (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 utils/Makefile (with variable substitutions) Extracting writemain (with variable substitutions) Extracting x2p/cflags (with variable substitutions) Extracting x2p/Makefile (with variable substitutions) Configure done. 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. ===> Building for perl-5.8.9 make: cannot open makefile. *** Error code 2 Stop in /usr/ports/lang/perl5.8. *** Error code 1 Stop in /usr/ports/lang/perl5.8.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49832523.60402>