Opened 15 years ago

Closed 15 years ago

#20969 closed defect (fixed)

gtk+-1.2.10 Build error - can't find X libs/inc on Snow Leopard

Reported by: mike@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.8.0
Keywords: x11 gtk snowleopard Cc:
Port: gtk1

Description

I'm guessing there's something I've done wrong, but while trying to build gtk1 I'm getting the following error message on my newly upgraded Snow Leopard system.

I did wipe out my /opt/local dir and reinstall MacPorts 1.8 from scratch after upgrading to Snow Leopard:

checking for X... no
configure: error: 
*** X libraries or include files not found. Check 'config.log' for 
*** more details.

Output from gcc -v:

[mburkett@intruder ~]# gcc -v
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5646~6/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5646)

Config.log attached...

Attachments (1)

config.log (17.0 KB) - added by mike@… 15 years ago.
Config log from attempt to build gtk1.

Download all attachments as: .zip

Change History (6)

Changed 15 years ago by mike@…

Attachment: config.log added

Config log from attempt to build gtk1.

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

Keywords: snow leopard removed

Did you install X11 from the Snow leopard install disk?

comment:2 Changed 15 years ago by mike@…

I thought I did, and X is working and the /usr/X11/include and /usr/X11/lib files are all in place, but maybe that's all from the previous version.

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

We're not using Apple's X11 client libs any more. This probably needs either a build dependency on pkgconfig, or --x-includes/--x-libraries configure args.

comment:4 Changed 15 years ago by elb@…

I had this build failure earlier today, and resolved it by simply running 'port install xorg-libXt' and then reinstalling the port which required gtk1. (I may have had to 'port clean gtk1', I cannot recall.)

I'm not sure if simply adding xorg-libXt to the gtk1 dependencies is the right fix or not, I didn't look closely. Too many broken ports and too much work to do at the moment. :-)

comment:5 Changed 15 years ago by blb@…

Resolution: fixed
Status: newclosed

Toby added xorg-libXt as a dependency in r57171 and builds fine here.

Note: See TracTickets for help on using tickets.