[MacPorts] #35375: mmencode fails to build on Mountain Lion (10.8)
MacPorts
noreply at macports.org
Fri Jul 27 14:35:31 PDT 2012
#35375: mmencode fails to build on Mountain Lion (10.8)
-----------------------------------------+----------------------------------
Reporter: pkutzner+macports@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Keywords: mountainlion | Port: mmencode 2.7.0
-----------------------------------------+----------------------------------
When attempting to build mmencode under Mountain Lion, it throws the
following error:
{{{
---> Building mmencode
make: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_mmencode/mmencode/work/mm2.7/src/metamail'
rm -f mmencode.o
rm -f codes.o
cc -c -I.. -g -I. mmencode.c
cc -c -I.. -g -I. codes.c
mmencode.c:24:1: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
main(argc, argv)
^~~~
mmencode.c:38:4: warning: implicitly declaring library function 'exit'
with type 'void (int) __attribute__((noreturn))'
exit(-1);
^
mmencode.c:38:4: note: please include the header <stdlib.h> or explicitly
provide a declaration for 'exit'
mmencode.c:86:13: warning: implicit declaration of function 'to64' is
invalid in C99 [-Wimplicit-function-declaration]
to64(fp, fpo, portablenewlines);
^
mmencode.c:88:13: warning: implicit declaration of function 'from64' is
invalid in C99 [-Wimplicit-function-declaration]
from64(fp,fpo, (char **) NULL, (int *) 0, portablenewlines);
^
mmencode.c:91:21: warning: implicit declaration of function 'toqp' is
invalid in C99 [-Wimplicit-function-declaration]
if (encode) toqp(fp, fpo); else fromqp(fp, fpo, NULL, 0);
^
mmencode.c:91:41: warning: implicit declaration of function 'fromqp' is
invalid in C99 [-Wimplicit-function-declaration]
if (encode) toqp(fp, fpo); else fromqp(fp, fpo, NULL, 0);
^
codes.c:72:1: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
to64(infile, outfile, PortableNewlines)
^~~~
codes.c:81:13: warning: implicit declaration of function 'output64chunk'
is invalid in C99 [-Wimplicit-function-declaration]
output64chunk(c1, 0, 0, 2, outfile);
^
codes.c:98:1: warning: control reaches end of non-void function [-Wreturn-
type]
}
^
codes.c:100:1: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
output64chunk(c1, c2, c3, pads, outfile)
^~~~~~~~~~~~~
codes.c:115:1: warning: control reaches end of non-void function
[-Wreturn-type]
}
^
codes.c:117:1: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
PendingBoundary(s, Boundaries, BoundaryCt)
^~~~~~~~~~~~~~~
codes.c:128:8: warning: implicitly declaring library function 'strlen'
with type 'unsigned long (const char *)'
len = strlen(Boundaries[i]);
^
codes.c:128:8: note: please include the header <string.h> or explicitly
provide a declaration for 'strlen'
codes.c:129:14: warning: implicitly declaring library function 'strncmp'
with type 'int (const char *, const char *, unsigned long)'
if (!strncmp(s, Boundaries[i], len)) {
^
codes.c:129:14: note: please include the header <string.h> or explicitly
provide a declaration for 'strncmp'
codes.c:143:1: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
almostputc(c, outfile, PortableNewlines)
^~~~~~~~~~
codes.c:166:1: warning: control reaches end of non-void function
[-Wreturn-type]
}
^
codes.c:177:1: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
from64(infile, outfile, boundaries, boundaryct, PortableNewlines)
^~~~~~
codes.c:206:17: error: non-void function 'from64' should return a value
[-Wreturn-type]
return;
^
codes.c:224:13: error: non-void function 'from64' should return a value
[-Wreturn-type]
return;
^
codes.c:278:1: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
toqp(infile, outfile)
^~~~
codes.c:353:1: warning: type specifier missing, defaults to 'int'
[-Wimplicit-int]
fromqp(infile, outfile, boundaries, boundaryct)
^~~~~~
codes.c:374:17: error: non-void function 'fromqp' should return a value
[-Wreturn-type]
return;
^
13 warnings and 3 errors generated.
6 warnings generated.
make: *** [codes.o] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_mmencode/mmencode/work/mm2.7/src/metamail'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_mmencode/mmencode/work/mm2.7/src/metamail"
&& /usr/bin/make -j2 -w mmencode
Exit code: 2
Error: org.macports.build for port mmencode returned: command execution
failed
Warning: targets not executed for mmencode: org.macports.activate
org.macports.build org.macports.destroot org.macports.install
Please see the log file for port mmencode for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_mmencode/mmencode/main.log
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port mmencode failed
}}}
--
Ticket URL: <https://trac.macports.org/ticket/35375>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list