Opened 12 years ago

Closed 12 years ago

#35375 closed defect (fixed)

mmencode: non-void function 'from64' should return a value

Reported by: pkutzner+macports@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: clang Cc:
Port: mmencode

Description

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

Attachments (1)

main.log (11.5 KB) - added by pkutzner+macports@… 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by pkutzner+macports@…

Attachment: main.log added

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: clang added; mountainlion removed
Port: 2.7.0 removed
Summary: mmencode fails to build on Mountain Lion (10.8)mmencode: non-void function 'from64' should return a value

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.