Opened 12 years ago

Closed 12 years ago

#33254 closed defect (fixed)

mime @1.1: fails to build on Lion

Reported by: ClintO (Clint O) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: lion Cc: ryandesign (Ryan Carsten Schmidt)
Port: mime

Description (last modified by ryandesign (Ryan Carsten Schmidt))

:info:build cc  -Wall -I. -g    -c ct.c -o ct.o
:info:build cc  -Wall -I. -g    -c header.c -o header.o
:info:build In file included from header.c:34:
:info:build ./util.h:33: error: conflicting types for ‘memmem’
:info:build /usr/include/string.h:159: error: previous declaration of ‘memmem’ was here
:info:build make: *** [header.o] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_mime/mime/work/mime-1.1'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_mime/mime/work/mime-1.1" && /usr/bin/make -j2 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)

Attachments (2)

main.log (9.2 KB) - added by ClintO (Clint O) 12 years ago.
mail.log from build
main.2.log (8.7 KB) - added by ClintO (Clint O) 12 years ago.

Download all attachments as: .zip

Change History (11)

Changed 12 years ago by ClintO (Clint O)

Attachment: main.log added

mail.log from build

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

Description: modified (diff)

Please remember WikiFormatting.

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

Cc: ryandesign@… added

I've just committed a number of changes to the mime port. It builds for me on Snow Leopard. Please wait 30 minutes, then "sudo port selfupdate", "sudo port clean mime", and "sudo port install mime" again. If it fails again please attach the new main.log file.

Changed 12 years ago by ClintO (Clint O)

Attachment: main.2.log added

comment:3 Changed 12 years ago by ClintO (Clint O)

Gave it a whirl. The failure signature looked like:

:info:build /Developer/usr/bin/clang -arch x86_64  -Wall -I. -g    -c header.c -o header.o
:info:build In file included from header.c:34:
:info:build ./util.h:33:7: error: conflicting types for 'memmem'
:info:build char *memmem(const char *, int, const char *, int);
:info:build       ^
:info:build /usr/include/string.h:159:7: note: previous declaration is here
:info:build void    *memmem(const void *, size_t, const void *, size_t) __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3);
:info:build          ^
:info:build 1 error generated.
:info:build make: *** [header.o] Error 1
:info:build make: *** Waiting for unfinished jobs....
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_mime/mime/work/mime-1.1'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_textproc_mime/mime/work/mime-1.1" && /usr/bin/make -j2 -w all CC="/Developer/usr/bin/clang -arch x86_64" " returned error 2

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

Keywords: lion added
Summary: mime @1.1: fails to buildmime @1.1: fails to build on Lion

Ok, looks the same. Try using a different compiler. I have a feeling it's a difference with Lion though, since I tried with MacPorts clang 3 on Snow Leopard and that worked fine too. Note that this is very old software.

P.S: The WikiFormatting page shows you the formatting options that are available here in Trac; I recommend you use the Preview button before submitting so you can see if you got it right.

comment:5 Changed 12 years ago by ClintO (Clint O)

I'm OK with selecting a different port if you could suggest one. I was trying to find metamail, but that also appears to be long-gone in the s/w community (and there's no port). I've got a bunch of silly .eml files and they have base64 attachments embedded in them, so I wanted to extracted them.

Thanks for the tips on using the posting system.

comment:6 in reply to:  5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to clint.olsen@…:

I've got a bunch of silly .eml files and they have base64 attachments embedded in them, so I wanted to extracted them.

Can't Apple's Mail.app open those kinds of files? Try dragging one on top of the Mail.app icon.

comment:7 Changed 12 years ago by ClintO (Clint O)

I was able to use Mail.app. I was worried I would have to setup a bunch of junk to use it, but it will open up individual files. Thanks for the tip. Since I have a workaround, this is a low priority.

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

Great. If you have a bunch of .eml files you're trying to process identically, you may be able to write an AppleScript script to interact with Mail.app to do that.

comment:9 Changed 12 years ago by jmroot (Joshua Root)

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