Opened 13 years ago

Closed 13 years ago

#30353 closed defect (fixed)

procmail @3.22 Build error - 'getline' conflict

Reported by: rodolpho.eckhardt@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.0
Keywords: lion Cc:
Port: procmail

Description

I'm trying to install procmail on a Lion machine, but it fails with a conflict with 'getline'. Build log:

version:1
:debug:main Executing org.macports.main (procmail)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 502
:debug:archivefetch archivefetch phase started at Mon Jul 25 01:43:59 BRT 2011
:msg:archivefetch --->  Fetching archive for procmail
:debug:archivefetch Executing org.macports.archivefetch (procmail)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/software/procmail to macports
:debug:archivefetch euid/egid changed to: 502/501
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  procmail-3.22_2.darwin_11.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/software/procmail
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Mon Jul 25 01:43:59 BRT 2011
:notice:fetch --->  Fetching procmail
:debug:fetch euid/egid changed to: 0/0
:debug:fetch chowned /opt/local/var/macports/distfiles/procmail to macports
:debug:fetch euid/egid changed to: 502/501
:debug:fetch Executing org.macports.fetch (procmail)
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Mon Jul 25 01:43:59 BRT 2011
:notice:checksum --->  Verifying checksum(s) for procmail
:debug:checksum Executing org.macports.checksum (procmail)
:info:checksum --->  Checksumming procmail-3.22.tar.gz
:debug:checksum Correct (md5) checksum for procmail-3.22.tar.gz
:debug:checksum Privilege de-escalation not attempted as not running as root.
:debug:extract extract phase started at Mon Jul 25 01:43:59 BRT 2011
:notice:extract --->  Extracting procmail
:debug:extract Executing org.macports.extract (procmail)
:info:extract --->  Extracting procmail-3.22.tar.gz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/procmail/procmail-3.22.tar.gz'
:debug:extract Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7'
:debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/procmail/procmail-3.22.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
:debug:extract Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/procmail/procmail-3.22.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
:debug:extract euid/egid changed to: 0/0
:debug:extract chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work to macports
:debug:extract euid/egid changed to: 502/501
:debug:extract Privilege de-escalation not attempted as not running as root.
:debug:patch patch phase started at Mon Jul 25 01:43:59 BRT 2011
:debug:patch Executing org.macports.patch (procmail)
:debug:patch Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Mon Jul 25 01:43:59 BRT 2011
:notice:configure --->  Configuring procmail
:debug:configure Using compiler 'Mac OS X llvm-gcc 4.2'
:debug:configure Executing org.macports.configure (procmail)
:debug:configure euid/egid changed to: 0/0
:debug:configure chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/config.h to macports
:debug:configure euid/egid changed to: 502/501
:debug:configure euid/egid changed to: 0/0
:debug:configure setting attributes on /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/config.h
:debug:configure euid/egid changed to: 502/501
:debug:configure euid/egid changed to: 0/0
:debug:configure chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/config.h to macports
:debug:configure euid/egid changed to: 502/501
:debug:configure euid/egid changed to: 0/0
:debug:configure setting attributes on /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/config.h
:debug:configure euid/egid changed to: 502/501
:debug:configure euid/egid changed to: 0/0
:debug:configure chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/Makefile to macports
:debug:configure euid/egid changed to: 502/501
:debug:configure euid/egid changed to: 0/0
:debug:configure setting attributes on /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/Makefile
:debug:configure euid/egid changed to: 502/501
:debug:configure euid/egid changed to: 0/0
:debug:configure chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/Makefile to macports
:debug:configure euid/egid changed to: 502/501
:debug:configure euid/egid changed to: 0/0
:debug:configure setting attributes on /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/Makefile
:debug:configure euid/egid changed to: 502/501
:debug:configure Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Mon Jul 25 01:43:59 BRT 2011
:notice:build --->  Building procmail
:debug:build Executing org.macports.build (procmail)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22" && /usr/bin/make -j2 -w all BASENAME=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local LOCKINGTEST=/tmp'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22" && /usr/bin/make -j2 -w all BASENAME=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local LOCKINGTEST=/tmp 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22'
:info:build /bin/sh ./initmake /bin/sh "/bin/sh" "/bin/rm -f" "mv -f" "ln" \
:info:build  "-lm -ldir -lx -lsocket -lnet -linet -lnsl_s -lnsl_i -lnsl -lsun -lgen -lsockdns -ldl" \
:info:build  "/lib /usr/lib /opt/local/lib" \
:info:build  /dev/null "/usr/bin/make" o \
:info:build  "cc" "-O  " "-s  " "procmail lockfile formail mailstat" \
:info:build  "procmail formail lockfile" \
:info:build  "procmailrc procmailsc procmailex" "src man" \
:info:build  "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local/bin" \
:info:build  "strip"
:info:build cc seems to work fine, using that as the C-compiler
:info:build 	...scanning for 13 libraries...
:info:build 	...scanning for 12 libraries...
:info:build 	...scanning for 11 libraries...
:info:build 	...scanning for 10 libraries...
:info:build 	...scanning for 9 libraries...
:info:build 	...scanning for 8 libraries...
:info:build 	...scanning for 7 libraries...
:info:build 	...scanning for 6 libraries...
:info:build 	...scanning for 5 libraries...
:info:build 	...scanning for 4 libraries...
:info:build 	...scanning for 3 libraries...
:info:build Added LDFLAGS= -lm -ldl -lc
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22'
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22'
:info:build cd src; /usr/bin/make ../autoconf.h
:info:build echo Housekeeping file >config.check
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/src'
:info:build /bin/sh ./autoconf /bin/sh "/bin/rm -f" "mv -f" /dev/null \
:info:build  "grep -F" "/usr/bin/make" o "/tmp" \
:info:build  "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local/bin" ../autoconf.h
:info:build Using the following directories for the LOCKINGTESTs:
:info:build   /tmp 
:info:build Initiating fcntl()/kernel-locking-support tests
:info:build 
:info:build Proceeding with kernel-locking-support tests in the background
:info:build Testing for const
:info:build Testing for volatile
:info:build Testing for prototypes
:info:build Testing for enum
:info:build Checking for POSIX and ANSI/ISO system include files
:info:build Checking for network/comsat/biff support
:info:build Testing for void*, size_t, off_t, pid_t, time_t, mode_t, uid_t & gid_t
:info:build Checking realloc implementation
:info:build Testing for WIFEXITED(), WIFSTOPPED(), WEXITSTATUS() & WSIGTERM()
:info:build Testing for various struct passwd members
:info:build Testing for memmove, strchr, strpbrk, strcspn, strtol, strstr,
:info:build 	rename, setrgid, setegid, pow, opendir, mkdir, waitpid, fsync,
:info:build 	ftruncate, strtod, strncasecmp, strerror, strlcat,
:info:build 	memset, bzero, and _exit
:info:build Determining the maximum number of 16 byte arguments execv() takes
:info:build Benchmarking your system's strstr() implementation
:info:build Waiting for the kernel-locking tests to finish...
:info:build Every two digits a file is locked.  First digit: which file, second digit:
:info:build which program, XX indicates a lock conflict or failure
:info:build 
:info:build Starting test 4 on /tmp/_locktest
:info:build  04 15 04 16 03 17 03 14 07 07 07 17 07 17 17 07 13 03 13 03 13 03 13 04 14 04 14 04 14 05 15 15 15 05 05 15 05 01 11 11 11 01 11 11 01 01 00 10 00 00 00 10 00 00 10 06 16 02 12 16 16 06 12 06 12
:info:build Starting test 6 on /tmp/_locktest
:info:build  17
:info:build Starting test 7 on /tmp/_locktest
:info:build 
:info:build 
:info:build 
:info:build Collecting results from kernel-locking tests
:info:build =============================autoconf.h===================================
:info:build /* This file was automagically generated by autoconf */
:info:build 
:info:build #define GOT_bin_test
:info:build #define MAX_argc 10363
:info:build /* Your system's strstr() is 1.00 times SLOWER than my C-routine */
:info:build #define UDP_protocolno 17
:info:build #define BIFF_serviceport "512"
:info:build #define IP_localhost {127,0,0,1}
:info:build #define MAILSPOOLDIR "/var/mail/"
:info:build #define SENDMAIL "/usr/sbin/sendmail"
:info:build #define CF_no_procmail_yet
:info:build #define buggy_SENDMAIL
:info:build #define defPATH "PATH=$HOME/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11/bin"
:info:build #define defSPATH "PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11/bin"
:info:build #define PM_VERSION "3.22"
:info:build /*locktype: 4, countlocks: 0, timeout 0, watchdog 8, /tmp/_locktest*/
:info:build /*locktype: 6, countlocks: 0, timeout 0, watchdog 8, /tmp/_locktest*/
:info:build /*locktype: 7, countlocks: 80, timeout 1, watchdog 14, /tmp/_locktest*/
:info:build /* Hotwire LOCKINGTEST=110 */
:info:build /* Procmail will lock via: dotlocking, fcntl(), lockf() */
:info:build #define USElockf
:info:build /* autoconf completed */
:info:build ==========================================================================
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/src'
:info:build cd src; /usr/bin/make ../new/procmail ../new/lockfile ../new/formail ../new/mailstat
:info:build cd man; /usr/bin/make ../new/procmail.1 ../new/formail.1 ../new/lockfile.1 ../new/procmailrc.5 ../new/procmailsc.5 ../new/procmailex.5
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/man'
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/src'
:info:build cc -c -O   procmail.c
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/src'
:info:build cc -c -O   cstdio.c
:info:build ld: warning: option -s is obsolete and being ignored
:info:build cc -c -O   common.c
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/src'
:info:build /bin/sh ./mansed /bin/sh procmail.man procmail.1 "/bin/rm -f" /dev/null
:info:build cc -c -O   exopen.c
:info:build /bin/sh ./mansed /bin/sh formail.man formail.1 "/bin/rm -f" /dev/null
:info:build /bin/sh ./mansed /bin/sh lockfile.man lockfile.1 "/bin/rm -f" /dev/null
:info:build cc -c -O   goodies.c
:info:build cc -c -O   locking.c
:info:build cc -c -O   mailfold.c
:info:build cc -c -O   foldinfo.c
:info:build /bin/sh ./mansed /bin/sh procmailrc.man procmailrc.5 "/bin/rm -f" /dev/null
:info:build cc -c -O   misc.c
:info:build /bin/sh ./mansed /bin/sh procmailsc.man procmailsc.5 "/bin/rm -f" /dev/null
:info:build /bin/sh ./mansed /bin/sh procmailex.man procmailex.5 "/bin/rm -f" /dev/null
:info:build ln ../man/procmail.1 ../new/procmail.1
:info:build ln ../man/formail.1 ../new/formail.1
:info:build ln ../man/lockfile.1 ../new/lockfile.1
:info:build ln ../man/procmailrc.5 ../new/procmailrc.5
:info:build ln ../man/procmailsc.5 ../new/procmailsc.5
:info:build ln ../man/procmailex.5 ../new/procmailex.5
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/man'
:info:build cc -c -O   pipes.c
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/src'
:info:build cc -c -O   regexp.c
:info:build cc -c -O   sublib.c
:info:build ld: warning: option -s is obsolete and being ignored
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/src'
:info:build ===============================================================================
:info:build If you are a system administrator you should consider integrating procmail
:info:build into the mail-delivery system -- for advanced functionality, speed AND
:info:build SECURITY --.  For more information about this topic you should look in the
:info:build examples/advanced file.
:info:build 
:info:build Also, HIGHLY RECOMMENDED (type 'make install-suid' to execute it):
:info:build 
:info:build chown root /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local/bin/procmail
:info:build chgrp mail /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local/bin/procmail /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local/bin/lockfile
:info:build chmod 6755 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local/bin/procmail
:info:build chmod 2755 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local/bin/lockfile
:info:build ===============================================================================
:info:build cc -c -O   robust.c
:info:build cc -c -O   acommon.c
:info:build cc -c -O   mcommon.c
:info:build cc -c -O   lastdirsep.c
:info:build cc -c -DPROCMAIL -O   authenticate.c
:info:build cc -c -O   lmtp.c
:info:build cc -c -O   memblk.c
:info:build cc -c -O   variables.c
:info:build cc -c -O   from.c
:info:build cc -c -O   comsat.c
:info:build cc -c -O   lockfile.c
:info:build cc -c -O   formail.c
:info:build In file included from formail.c:25:
:info:build formisc.h:20: error: conflicting types for ‘getline’
:info:build /usr/include/stdio.h:449: error: previous declaration of ‘getline’ was here
:info:build make[1]: *** [formail.o] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/src'
:info:build make: *** [bins] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22" && /usr/bin/make -j2 -w all BASENAME=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local LOCKINGTEST=/tmp " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for procmail): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for procmail is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/main.log

When I try to replace 'getline' with 'internal_getline' in both 'formisc.h' and 'formisc.c' to avoid the conflict, it fails with:

cc -c -O   formail.c
cc -c -O   fields.c
fields.c: In function ‘readhead’:
fields.c:113: error: too few arguments to function ‘getline’
fields.c:119: error: too few arguments to function ‘getline’
fields.c:122: error: too few arguments to function ‘getline’
make[1]: *** [fields.o] Error 1
make: *** [bins] Error 2

Change History (2)

comment:1 in reply to:  description Changed 13 years ago by admsimat@…

Replying to rodolpho.eckhardt@…:

I'm trying to install procmail on a Lion machine, but it fails with a conflict with 'getline'. Build log:

version:1
:debug:main Executing org.macports.main (procmail)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 501
:debug:main euid changed to: 502
:debug:archivefetch archivefetch phase started at Mon Jul 25 01:43:59 BRT 2011
:msg:archivefetch --->  Fetching archive for procmail
:debug:archivefetch Executing org.macports.archivefetch (procmail)
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/software/procmail to macports
:debug:archivefetch euid/egid changed to: 502/501
:debug:archivefetch euid/egid changed to: 0/0
:debug:archivefetch chowned /opt/local/var/macports/incoming to macports
:debug:archivefetch euid/egid changed to: 502/501
:info:archivefetch --->  procmail-3.22_2.darwin_11.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/software/procmail
:debug:archivefetch Privilege de-escalation not attempted as not running as root.
:debug:fetch fetch phase started at Mon Jul 25 01:43:59 BRT 2011
:notice:fetch --->  Fetching procmail
:debug:fetch euid/egid changed to: 0/0
:debug:fetch chowned /opt/local/var/macports/distfiles/procmail to macports
:debug:fetch euid/egid changed to: 502/501
:debug:fetch Executing org.macports.fetch (procmail)
:debug:fetch Privilege de-escalation not attempted as not running as root.
:debug:checksum checksum phase started at Mon Jul 25 01:43:59 BRT 2011
:notice:checksum --->  Verifying checksum(s) for procmail
:debug:checksum Executing org.macports.checksum (procmail)
:info:checksum --->  Checksumming procmail-3.22.tar.gz
:debug:checksum Correct (md5) checksum for procmail-3.22.tar.gz
:debug:checksum Privilege de-escalation not attempted as not running as root.
:debug:extract extract phase started at Mon Jul 25 01:43:59 BRT 2011
:notice:extract --->  Extracting procmail
:debug:extract Executing org.macports.extract (procmail)
:info:extract --->  Extracting procmail-3.22.tar.gz
:debug:extract setting option extract.args to '/opt/local/var/macports/distfiles/procmail/procmail-3.22.tar.gz'
:debug:extract Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7'
:debug:extract Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/procmail/procmail-3.22.tar.gz' | /usr/bin/gnutar --no-same-owner -xf -'
:debug:extract Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles/procmail/procmail-3.22.tar.gz' | /usr/bin/gnutar --no-same-owner -xf - 
:debug:extract euid/egid changed to: 0/0
:debug:extract chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work to macports
:debug:extract euid/egid changed to: 502/501
:debug:extract Privilege de-escalation not attempted as not running as root.
:debug:patch patch phase started at Mon Jul 25 01:43:59 BRT 2011
:debug:patch Executing org.macports.patch (procmail)
:debug:patch Privilege de-escalation not attempted as not running as root.
:debug:configure configure phase started at Mon Jul 25 01:43:59 BRT 2011
:notice:configure --->  Configuring procmail
:debug:configure Using compiler 'Mac OS X llvm-gcc 4.2'
:debug:configure Executing org.macports.configure (procmail)
:debug:configure euid/egid changed to: 0/0
:debug:configure chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/config.h to macports
:debug:configure euid/egid changed to: 502/501
:debug:configure euid/egid changed to: 0/0
:debug:configure setting attributes on /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/config.h
:debug:configure euid/egid changed to: 502/501
:debug:configure euid/egid changed to: 0/0
:debug:configure chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/config.h to macports
:debug:configure euid/egid changed to: 502/501
:debug:configure euid/egid changed to: 0/0
:debug:configure setting attributes on /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/config.h
:debug:configure euid/egid changed to: 502/501
:debug:configure euid/egid changed to: 0/0
:debug:configure chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/Makefile to macports
:debug:configure euid/egid changed to: 502/501
:debug:configure euid/egid changed to: 0/0
:debug:configure setting attributes on /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/Makefile
:debug:configure euid/egid changed to: 502/501
:debug:configure euid/egid changed to: 0/0
:debug:configure chowned /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/Makefile to macports
:debug:configure euid/egid changed to: 502/501
:debug:configure euid/egid changed to: 0/0
:debug:configure setting attributes on /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/Makefile
:debug:configure euid/egid changed to: 502/501
:debug:configure Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Mon Jul 25 01:43:59 BRT 2011
:notice:build --->  Building procmail
:debug:build Executing org.macports.build (procmail)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22" && /usr/bin/make -j2 -w all BASENAME=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local LOCKINGTEST=/tmp'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22" && /usr/bin/make -j2 -w all BASENAME=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local LOCKINGTEST=/tmp 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22'
:info:build /bin/sh ./initmake /bin/sh "/bin/sh" "/bin/rm -f" "mv -f" "ln" \
:info:build  "-lm -ldir -lx -lsocket -lnet -linet -lnsl_s -lnsl_i -lnsl -lsun -lgen -lsockdns -ldl" \
:info:build  "/lib /usr/lib /opt/local/lib" \
:info:build  /dev/null "/usr/bin/make" o \
:info:build  "cc" "-O  " "-s  " "procmail lockfile formail mailstat" \
:info:build  "procmail formail lockfile" \
:info:build  "procmailrc procmailsc procmailex" "src man" \
:info:build  "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local/bin" \
:info:build  "strip"
:info:build cc seems to work fine, using that as the C-compiler
:info:build 	...scanning for 13 libraries...
:info:build 	...scanning for 12 libraries...
:info:build 	...scanning for 11 libraries...
:info:build 	...scanning for 10 libraries...
:info:build 	...scanning for 9 libraries...
:info:build 	...scanning for 8 libraries...
:info:build 	...scanning for 7 libraries...
:info:build 	...scanning for 6 libraries...
:info:build 	...scanning for 5 libraries...
:info:build 	...scanning for 4 libraries...
:info:build 	...scanning for 3 libraries...
:info:build Added LDFLAGS= -lm -ldl -lc
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22'
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22'
:info:build cd src; /usr/bin/make ../autoconf.h
:info:build echo Housekeeping file >config.check
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/src'
:info:build /bin/sh ./autoconf /bin/sh "/bin/rm -f" "mv -f" /dev/null \
:info:build  "grep -F" "/usr/bin/make" o "/tmp" \
:info:build  "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local/bin" ../autoconf.h
:info:build Using the following directories for the LOCKINGTESTs:
:info:build   /tmp 
:info:build Initiating fcntl()/kernel-locking-support tests
:info:build 
:info:build Proceeding with kernel-locking-support tests in the background
:info:build Testing for const
:info:build Testing for volatile
:info:build Testing for prototypes
:info:build Testing for enum
:info:build Checking for POSIX and ANSI/ISO system include files
:info:build Checking for network/comsat/biff support
:info:build Testing for void*, size_t, off_t, pid_t, time_t, mode_t, uid_t & gid_t
:info:build Checking realloc implementation
:info:build Testing for WIFEXITED(), WIFSTOPPED(), WEXITSTATUS() & WSIGTERM()
:info:build Testing for various struct passwd members
:info:build Testing for memmove, strchr, strpbrk, strcspn, strtol, strstr,
:info:build 	rename, setrgid, setegid, pow, opendir, mkdir, waitpid, fsync,
:info:build 	ftruncate, strtod, strncasecmp, strerror, strlcat,
:info:build 	memset, bzero, and _exit
:info:build Determining the maximum number of 16 byte arguments execv() takes
:info:build Benchmarking your system's strstr() implementation
:info:build Waiting for the kernel-locking tests to finish...
:info:build Every two digits a file is locked.  First digit: which file, second digit:
:info:build which program, XX indicates a lock conflict or failure
:info:build 
:info:build Starting test 4 on /tmp/_locktest
:info:build  04 15 04 16 03 17 03 14 07 07 07 17 07 17 17 07 13 03 13 03 13 03 13 04 14 04 14 04 14 05 15 15 15 05 05 15 05 01 11 11 11 01 11 11 01 01 00 10 00 00 00 10 00 00 10 06 16 02 12 16 16 06 12 06 12
:info:build Starting test 6 on /tmp/_locktest
:info:build  17
:info:build Starting test 7 on /tmp/_locktest
:info:build 
:info:build 
:info:build 
:info:build Collecting results from kernel-locking tests
:info:build =============================autoconf.h===================================
:info:build /* This file was automagically generated by autoconf */
:info:build 
:info:build #define GOT_bin_test
:info:build #define MAX_argc 10363
:info:build /* Your system's strstr() is 1.00 times SLOWER than my C-routine */
:info:build #define UDP_protocolno 17
:info:build #define BIFF_serviceport "512"
:info:build #define IP_localhost {127,0,0,1}
:info:build #define MAILSPOOLDIR "/var/mail/"
:info:build #define SENDMAIL "/usr/sbin/sendmail"
:info:build #define CF_no_procmail_yet
:info:build #define buggy_SENDMAIL
:info:build #define defPATH "PATH=$HOME/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11/bin"
:info:build #define defSPATH "PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11/bin"
:info:build #define PM_VERSION "3.22"
:info:build /*locktype: 4, countlocks: 0, timeout 0, watchdog 8, /tmp/_locktest*/
:info:build /*locktype: 6, countlocks: 0, timeout 0, watchdog 8, /tmp/_locktest*/
:info:build /*locktype: 7, countlocks: 80, timeout 1, watchdog 14, /tmp/_locktest*/
:info:build /* Hotwire LOCKINGTEST=110 */
:info:build /* Procmail will lock via: dotlocking, fcntl(), lockf() */
:info:build #define USElockf
:info:build /* autoconf completed */
:info:build ==========================================================================
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/src'
:info:build cd src; /usr/bin/make ../new/procmail ../new/lockfile ../new/formail ../new/mailstat
:info:build cd man; /usr/bin/make ../new/procmail.1 ../new/formail.1 ../new/lockfile.1 ../new/procmailrc.5 ../new/procmailsc.5 ../new/procmailex.5
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/man'
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/src'
:info:build cc -c -O   procmail.c
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/src'
:info:build cc -c -O   cstdio.c
:info:build ld: warning: option -s is obsolete and being ignored
:info:build cc -c -O   common.c
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/src'
:info:build /bin/sh ./mansed /bin/sh procmail.man procmail.1 "/bin/rm -f" /dev/null
:info:build cc -c -O   exopen.c
:info:build /bin/sh ./mansed /bin/sh formail.man formail.1 "/bin/rm -f" /dev/null
:info:build /bin/sh ./mansed /bin/sh lockfile.man lockfile.1 "/bin/rm -f" /dev/null
:info:build cc -c -O   goodies.c
:info:build cc -c -O   locking.c
:info:build cc -c -O   mailfold.c
:info:build cc -c -O   foldinfo.c
:info:build /bin/sh ./mansed /bin/sh procmailrc.man procmailrc.5 "/bin/rm -f" /dev/null
:info:build cc -c -O   misc.c
:info:build /bin/sh ./mansed /bin/sh procmailsc.man procmailsc.5 "/bin/rm -f" /dev/null
:info:build /bin/sh ./mansed /bin/sh procmailex.man procmailex.5 "/bin/rm -f" /dev/null
:info:build ln ../man/procmail.1 ../new/procmail.1
:info:build ln ../man/formail.1 ../new/formail.1
:info:build ln ../man/lockfile.1 ../new/lockfile.1
:info:build ln ../man/procmailrc.5 ../new/procmailrc.5
:info:build ln ../man/procmailsc.5 ../new/procmailsc.5
:info:build ln ../man/procmailex.5 ../new/procmailex.5
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/man'
:info:build cc -c -O   pipes.c
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/src'
:info:build cc -c -O   regexp.c
:info:build cc -c -O   sublib.c
:info:build ld: warning: option -s is obsolete and being ignored
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/src'
:info:build ===============================================================================
:info:build If you are a system administrator you should consider integrating procmail
:info:build into the mail-delivery system -- for advanced functionality, speed AND
:info:build SECURITY --.  For more information about this topic you should look in the
:info:build examples/advanced file.
:info:build 
:info:build Also, HIGHLY RECOMMENDED (type 'make install-suid' to execute it):
:info:build 
:info:build chown root /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local/bin/procmail
:info:build chgrp mail /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local/bin/procmail /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local/bin/lockfile
:info:build chmod 6755 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local/bin/procmail
:info:build chmod 2755 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local/bin/lockfile
:info:build ===============================================================================
:info:build cc -c -O   robust.c
:info:build cc -c -O   acommon.c
:info:build cc -c -O   mcommon.c
:info:build cc -c -O   lastdirsep.c
:info:build cc -c -DPROCMAIL -O   authenticate.c
:info:build cc -c -O   lmtp.c
:info:build cc -c -O   memblk.c
:info:build cc -c -O   variables.c
:info:build cc -c -O   from.c
:info:build cc -c -O   comsat.c
:info:build cc -c -O   lockfile.c
:info:build cc -c -O   formail.c
:info:build In file included from formail.c:25:
:info:build formisc.h:20: error: conflicting types for ‘getline’
:info:build /usr/include/stdio.h:449: error: previous declaration of ‘getline’ was here
:info:build make[1]: *** [formail.o] Error 1
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22/src'
:info:build make: *** [bins] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/procmail-3.22" && /usr/bin/make -j2 -w all BASENAME=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/work/destroot/opt/local LOCKINGTEST=/tmp " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for procmail): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for procmail is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_mail_procmail/procmail/main.log

When I try to replace 'getline' with 'internal_getline' in both 'formisc.h' and 'formisc.c' to avoid the conflict, it fails with:

cc -c -O   formail.c
cc -c -O   fields.c
fields.c: In function ‘readhead’:
fields.c:113: error: too few arguments to function ‘getline’
fields.c:119: error: too few arguments to function ‘getline’
fields.c:122: error: too few arguments to function ‘getline’
make[1]: *** [fields.o] Error 1
make: *** [bins] Error 2

You should replace "getline" with "get_line" anywhere in the src directory. It seems to work.

comment:2 Changed 13 years ago by jmroot (Joshua Root)

Keywords: lion added
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.