Opened 13 years ago

Closed 13 years ago

#32870 closed defect (fixed)

whirlgif: build failure with clang: error: 'main' must return 'int'

Reported by: jxzhu@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: clang Cc:
Port: whirlgif

Description (last modified by mf2k (Frank Schima))

When the following command

sudo port install whirlgif

is executed on Lion 10.7.2 with Xcode 4.2.1, the error comes out as copied/pasted below. The main.log file is attached.

Any help is appreciated.

JX

--->  Fetching archive for whirlgif
--->  Attempting to fetch whirlgif-3.04_0.darwin_11.x86_64.tbz2 from http://packages.macports.org/whirlgif
--->  Fetching whirlgif
--->  Verifying checksum(s) for whirlgif
--->  Extracting whirlgif
--->  Configuring whirlgif
--->  Building whirlgif
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for whirlgif is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_whirlgif/whirlgif/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (1)

main.log (10.2 KB) - added by jxzhu@… 13 years ago.

Download all attachments as: .zip

Change History (8)

Changed 13 years ago by jxzhu@…

Attachment: main.log added

comment:1 Changed 13 years ago by mf2k (Frank Schima)

Description: modified (diff)
Port: whirlgif added
Priority: HighNormal

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

Cc: ryandesign@… added
Keywords: clang added
Summary: whirlgif installation failurewhirlgif build failure with clang

From the log:

whirlgif.c:99:1: error: 'main' must return 'int'

Same error as with gtime in #32860. Hopefully fix is simple. If not, you can use a different compiler.

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

Summary: whirlgif build failure with clangwhirlgif: build failure with clang: error: 'main' must return 'int'

comment:4 in reply to:  2 Changed 13 years ago by jxzhu@…

Replying to ryandesign@…:

From the log:

whirlgif.c:99:1: error: 'main' must return 'int'

Same error as with gtime in #32860. Hopefully fix is simple. If not, you can use a different compiler.

It did fix the error. No compiler is changed.

JX

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

Wait, what fixed the error?

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

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

Jian-Xin Zhu replied by email:

Change "void main" to "int main" in whirlgif.c.

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

Resolution: fixed
Status: assignedclosed

Thanks, fixed in r88920.

Note: See TracTickets for help on using tickets.