Opened 15 years ago

Closed 15 years ago

#21190 closed defect (invalid)

linking error with xorg-libXinerama

Reported by: jpgoldberg (Jeffrey Goldberg) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port: xorg-libXinerama

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

See the attached output (stdout and stderr) from

sudo port -d install xorg-libXinerama

Attachments (1)

xorg-libXinerama.txt.bz2 (4.8 KB) - added by jpgoldberg (Jeffrey Goldberg) 15 years ago.
bzip2-ed output of port -d install xorg-libXinerama

Download all attachments as: .zip

Change History (7)

Changed 15 years ago by jpgoldberg (Jeffrey Goldberg)

Attachment: xorg-libXinerama.txt.bz2 added

bzip2-ed output of port -d install xorg-libXinerama

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

Cc: ryandesign@… added; Ryan Schmidt <ryandesign@…> removed
Description: modified (diff)

The output says:

ld: warning: in /opt/local/lib/libXext.dylib, file is not of required architecture
ld: warning: in /opt/local/lib/libX11.dylib, file is not of required architecture
ld: warning: in /opt/local/lib/libXdmcp.dylib, file is not of required architecture

Of what architecture are those files? You can use "lipo -info" to find out.

For what architecture are you now trying to build? Are you building universal? What are your build_arch and universal_archs settings in macports.conf?

What version of Xcode and Mac OS X?

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

Owner: changed from macports-tickets@… to jeremyhu@…

comment:3 Changed 15 years ago by jpgoldberg (Jeffrey Goldberg)

Of what architecture are those files?

% pwd
/opt/local/lib
% lipo -info libXext.dylib libX11.dylib libXdmcp.dylib 
Non-fat file: libXext.dylib is architecture: i386
Non-fat file: libX11.dylib is architecture: i386
Non-fat file: libXdmcp.dylib is architecture: i386

For what architecture are you now trying to build?

Intel.

What are your build_arch and universal_archs settings in macports.conf?

build_arch is commented out, so it is presumably the default. universal_archs is "x86_64 i386"

What version of Xcode and Mac OS X?

OS X 10.6, Xcode 3.2

comment:4 in reply to:  3 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to jeffrey@…:

Of what architecture are those files?

% lipo -info libXext.dylib libX11.dylib libXdmcp.dylib
Non-fat file: libXext.dylib is architecture: i386
Non-fat file: libX11.dylib is architecture: i386
Non-fat file: libXdmcp.dylib is architecture: i386

Ok, i386.

For what architecture are you now trying to build?

Intel.

i386 or x86_64? :)

What are your build_arch and universal_archs settings in macports.conf?

build_arch is commented out, so it is presumably the default. universal_archs is "x86_64 i386"

The default build_arch is i386 or ppc on Mac OS X 10.5 or earlier, and x86_64 on Mac OS X 10.6.

What version of Xcode and Mac OS X?

OS X 10.6, Xcode 3.2

Ok, so you're on 10.6, which means you're now trying to build things for x86_64, hence the incompatibility with things that were built for i386. Did you upgrade from 10.5? If so, did you rebuild all your ports -- see the Migration page? You need to rebuild all ports so they are x86_64 instead of i386.

comment:5 Changed 15 years ago by jpgoldberg (Jeffrey Goldberg)

Ok, so you're on 10.6, which means you're now trying to build things for x86_64, hence the incompatibility with things that were built for i386. Did you upgrade from 10.5? If so, did you rebuild all your ports -- see the Migration page? You need to rebuild all ports so they are x86_64 instead of i386.

How embarrassing. I had done this a few weeks ago when I moved from PPC to Intel, and had somehow misremembered whether I did that before or after moving to 10.6.

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

Resolution: invalid
Status: newclosed

No problem. :) Rebuild your ports should clear it up.

Note: See TracTickets for help on using tickets.