This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Dynamic linking.. or??




> (This debate can go on for ever :-).. I will probably give up 
> after this and idly start looking around for the docs, or 
> post on news :-) )
> 
> The question remains:
> =====================
> 
> You say it is the author of xkeycaps who should put -lXpm 
> into his Imakefile.. 

I did not say that... You read it in between lines, perhaps.
OUR LibXAW is static and needs libXpm to resolve many symbols.
In our case libXaw is static therefore it is not linked to any
Other libs, you need to provide other libs to the linker to resolve
Undefined symbols.


Suhaib

> 
> I don't agree.. If he doesn't use Xpm, in his application, 
> neither does his libXaw, why should he have to lookup what 
> our system wants and add that to the Imakefile..
> 
> Isn't it the configuration on the machine who wants to build 
> it who should put it there, because it knows that its libXaw 
> needs Xpm??
> 
> | > LD_RUN_PATH=/usr/openwin/lib cc -o xkeycaps -O -Xc -xF -xcg92
> | > -L/usr/openwin/lib ./xkeycaps.o ./KbdWidget.o  ./KeyWidget.o 
> | > ./info.o ./actions.o ./commands.o  ./guess.o ./all-kbds.o  
> | > ./sunOS.o  -lXaw
> | > -lXt -lSM -lICE  -lXmu -lm -lXext -lX11    -lsocket -lnsl  
> | 
> | Yep,  NOTE there is no -lXpm even on your Solaris?
> | libXaw.a in XF86 4.0.x  needs to link to libXpm, which was missing 
> | from your Imakefile.
> 
> Sorry I am running solaris on a sparc machine, therefore no 
> XF86 on that, tried two scenarios:
>  * Old OpenWin first. no libXpm exists.. linked ok.
>  * New X11R6 (on another SUN) compiled fine without -lXpm, even when
>    the X11R6 -lXaw __wants__ -lXpm.
> 
> I also compile xkeycaps on my linux machine, with XF86. There 
> is no -lXpm on the link-line, but it links ok anyhow.. And my 
> linux -lXaw wants Xpm, to be loaded during runtime.
> 
> 
> | > / Suhaib Siddiqi <ssiddiqi@inspirepharm.com> wrote:
> | > [...]
> | > | I assume this Imakefile of xfree86?
> | > 
> | > How do you mean?? This Imakefile is from the old application
> | > xkeycaps.. dated 99 or something. 
> | 
> | Yes older version, in 99 xf86 was 3.3.x and there was no 
> libXpm in it
> 
> No it is NO _xf86_ Imakefile, it is xkeycaps Imakefile.. 
> 
>         /Andy
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]