Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#32561 closed defect (fixed)

gtk1: build fails with clang

Reported by: mlewis1973 Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: clang Cc: fheday@…, ryandesign (Ryan Schmidt)
Port: gtk1

Description (last modified by ryandesign (Ryan Schmidt))

same problem as Ticket #21135 (closed defect: fixed)

sudo port -v install gtk1
...
checking for X... no
sudo port -v install xorg-libXt

does not fix problem

Attachments (3)

config.log (18.3 KB) - added by mlewis1973 8 years ago.
main.log (42.3 KB) - added by mlewis1973 8 years ago.
main.2.log (84.2 KB) - added by mlewis1973 8 years ago.

Download all attachments as: .zip

Change History (15)

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

Description: modified (diff)

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

Please attach the config.log.

Changed 8 years ago by mlewis1973

Attachment: config.log added

Changed 8 years ago by mlewis1973

Attachment: main.log added

comment:3 in reply to:  2 Changed 8 years ago by mlewis1973

Replying to ryandesign@…:

Please attach the config.log.

done

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

Does r88077 help?

Changed 8 years ago by mlewis1973

Attachment: main.2.log added

comment:5 in reply to:  4 Changed 8 years ago by mlewis1973

Replying to ryandesign@…:

Does r88077 help?

that solved the config problem with X........ a problem with linking (probably similar solution) then arises. see main.2.log

*** Warning: This library needs some functionality provided by -lX11.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

comment:6 Changed 8 years ago by fheday@…

Cc: fheday@… added

Cc Me!

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

Cc: ryandesign@… added
Keywords: clang added
Resolution: fixed
Status: newclosed
Summary: gtk1 configure error on Lion with MacPorts 2.0.3gtk1: build fails with clang

I'm going to assume using llvm-gcc-4.2 instead of clang will fix this, as it did for glib1. Made this change in r88465. Please re-open if not fixed.

comment:8 Changed 8 years ago by mlewis1973

r88465 worked!

I had to make the same change to the Portfiles for:
gtkglarea
fsv

comment:9 in reply to:  8 Changed 8 years ago by ryandesign (Ryan Schmidt)

Replying to matthew.lewis@…:

I had to make the same change to the Portfiles for:
gtkglarea

r88553

fsv

r88554

comment:10 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Please try to actually fix the problems rather than just using old compilers.

comment:11 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Really fixed this time with r91180

comment:12 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Reverted the similar changes in gtk1, gtkglarea, and fsv: r91181 r91182 r91183

Note: See TracTickets for help on using tickets.