Opened 13 years ago

Closed 12 years ago

#33119 closed defect (fixed)

unrtf: error: non-void function 'attr_get_param' should return a value [-Wreturn-type]

Reported by: marcoanttonnio@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: clang Cc: ryandesign (Ryan Carsten Schmidt)
Port: unrft

Description

Build fails. Port tbz2 source file is not available. The directory "urtf/" does not exist in "http://packages.macports.org/".

:info:archivefetch --->  unrtf-0.21.2_0.darwin_11.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/software/unrtf
:msg:archivefetch --->  Attempting to fetch unrtf-0.21.2_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/unrtf
:debug:archivefetch Fetching archive failed:: The requested URL returned error: 404

Attachments (1)

main.log (20.2 KB) - added by marcoanttonnio@… 13 years ago.
Build main log

Download all attachments as: .zip

Change History (4)

Changed 13 years ago by marcoanttonnio@…

Attachment: main.log added

Build main log

comment:1 Changed 13 years ago by marcoanttonnio@…

The build fase fails with the following error (full log attached for reference):

:info:build output.c:389:9: warning: assigning to 'unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
:info:build                 inbuf = (char *) my_malloc(inbytes + 1);
:info:build                       ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:info:build output.c:417:65: warning: conversion specifies type 'int' but the argument has type 'size_t' (aka 'unsigned long') [-Wformat]
:info:build                                 fprintf(stderr, "unrtf: Error in executing iconv - inbytes=%d inbuf[0]=%o inbuf[1]=%o\n", inbytes, inbuf[0], inbuf[1]);
:info:build                                                                                            ~^                             ~~~~~~~
:info:build                                                                                            %lu
:info:build attr.c:353:3: error: non-void function 'attr_get_param' should return a value [-Wreturn-type]
:info:build                 return;
:info:build                 ^
:info:build attr.c:690:10: warning: format string is empty [-Wformat-zero-length]
:info:build                 printf("");
:info:build                        ^~
:info:build mv -f .deps/error.Tpo .deps/error.Po
:info:build mv -f .deps/malloc.Tpo .deps/malloc.Po
:info:build 1 warning and 1 error generated.
:info:build make[2]: *** [attr.o] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build convert.c:1897:7: warning: if statement has empty body [-Wempty-body]
:info:build                     ;
:info:build                     ^
:info:build mv -f .deps/hash.Tpo .deps/hash.Po
:info:build mv -f .deps/my_iconv.Tpo .deps/my_iconv.Po
:info:build mv -f .deps/main.Tpo .deps/main.Po
:info:build 2 warnings generated.
:info:build mv -f .deps/output.Tpo .deps/output.Po
:info:build 1 warning generated.
:info:build mv -f .deps/convert.Tpo .deps/convert.Po
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_unrtf/unrtf/work/unrtf-0.21.2/src'
:info:build make[1]: *** [all-recursive] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_unrtf/unrtf/work/unrtf-0.21.2'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_unrtf/unrtf/work/unrtf-0.21.2'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_unrtf/unrtf/work/unrtf-0.21.2" && /usr/bin/make -j8 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)

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

Keywords: clang added
Summary: unrtf @0.21.2 fetch error - tbz2 file missingunrtf: error: non-void function 'attr_get_param' should return a value [-Wreturn-type]

The fact that the package/archive does not exist is not the problem; we have no packages/archives for Lion yet.

The compile failure is probably due to clang being more strict than gcc was.

We have no MacPorts maintainer for unrtf at this time. You should report this problem to the developers of unrtf so they can fix it.

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

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.