Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#21251 closed defect (fixed)

librsync +universal: in ./.libs/librsync.dylib, file is not of required architecture

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

Description

I can't build librsync +universal for x86_64/i386 on Snow Leopard:

/usr/bin/gcc-4.2 -Wall -Wshadow -Wundef -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -O2 -arch x86_64 -arch i386 -arch x86_64 -arch i386 -o .libs/rdiff rdiff.o isprefix.o  -L/opt/local/lib ./.libs/librsync.dylib /opt/local/lib/libpopt.dylib /opt/local/lib/libintl.dylib -lc /opt/local/lib/libiconv.dylib -lbz2 -lz
ld: warning: in ./.libs/librsync.dylib, file is not of required architecture

A non-universal x86_64-only build works fine.

Attachments (2)

librsync.txt (41.1 KB) - added by ryandesign (Ryan Carsten Schmidt) 15 years ago.
Portfile.diff (604 bytes) - added by Veence (Vincent) 15 years ago.

Download all attachments as: .zip

Change History (7)

Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: librsync.txt added

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

Summary: librsync +universal:librsync +universal: in ./.libs/librsync.dylib, file is not of required architecture

comment:2 Changed 15 years ago by Veence (Vincent)

Try the appended patch and let me know

Changed 15 years ago by Veence (Vincent)

Attachment: Portfile.diff added

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

Resolution: fixed
Status: newclosed

Thanks, that works. I tweaked it a bit and applied it in r57331.

comment:4 Changed 15 years ago by jmroot (Joshua Root)

Procedures have namespace prefixes when they're not part of the API. You want ${configure.cc_archflags}.

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

${configure.cc_archflags} only contains the arch flag for the build_arch. I need the arch flags for the universal_archs.

Note: See TracTickets for help on using tickets.