Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem when compiling Xprt of X11R7.1



On Oct 22, 2006, at 6:39 AM, Peter Dyballa wrote:


Am 22.10.2006 um 09:16 schrieb Ben Byer:
The problem here is in the ordering of the dynamic libraries. If you move them ('-lX11 -lXfont -lm -lfontenc -lfreetype -lz -lXdmcp -lXau') to the end of that line, after libXext.la, it will compile correctly.

How do you find this? Which tools might tell to do so? Or is it just experience?


(I am trying to compile xorg-server-1.1.99.3 of X11R7.1, that's what 'git status' tells me. And this seems to be a bit 'experimental:' minor changes in environment variables change success of making the lib targets!)

I wish I had a clever or insightful answer for you here -- you will have to settle for "trial and error". :)


I had already built the Xorg Xserver successfully, so I went and looked at my build-log and found the command that worked for me, but failed for you.

Then, I tried to rebuild the Xserver with no patches (presumably, like you were) -- and I saw the same errors you did.

Next, I cut and pasted the command from my build-log to the failing build -- that worked. So I knew that there was some difference between those two commands that was causing those error messages.

I then slowly modified my "good" build command to more closely resemble the one you had that was failing. Eventually, the only difference was in the order of the parameters -- I saw that the errors mentioned libXfont, so I tried putting it (and the other shared libraries) at the end of the command line.

Not too much fun, but now we have both learned a lesson: -l flags always go last!

(I think this is how one gets "experience"...)

Ben
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >Problem when compiling Xprt of X11R7.1 (From: Peter Dyballa <email@hidden>)
 >Re: Problem when compiling Xprt of X11R7.1 (From: Ben Byer <email@hidden>)
 >Re: Problem when compiling Xprt of X11R7.1 (From: Peter Dyballa <email@hidden>)
 >Re: Problem when compiling Xprt of X11R7.1 (From: Ben Byer <email@hidden>)
 >Re: Problem when compiling Xprt of X11R7.1 (From: Peter Dyballa <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.