[csw-maintainers] Building tightvnc (was: Can't run Sun Studio in vncserver)

Maciej (Matchek) Blizinski maciej at opencsw.org
Wed Sep 9 11:26:01 CEST 2009


On Wed, Sep 9, 2009 at 10:05 AM, Sebastian Kayser<skayser at opencsw.org> wrote:
> Maciej (Matchek) Blizinski wrote on 09.09.2009 10:39:
>> I find it strange that it doesn't find this symbol, because
>> dix/libdix.a is present in the cc invocation (see above). Do you have
>> any ideas what might be the problem?
>
> AFAIR symbol resolution during the link phase takes place _once_ from
> left to right, where symbol references come first and symbol definitions
> need to be placed on the right hand side.
>
> >From ld(1):
>
>         Archives  are
>         traditionally  specified  at the end of the command line
>         so that their symbol definitions resolve  any  preceding
>         references.  However, specifying archives multiple times
>         to satisfy their own interdependencies,  can  be  neces-
>         sary.
>
> Above, dix/libdix.a (symbol definition) comes before os/libos.a (symbol
> reference). Does it make a difference when add another dix/libdix.a
> _after_ os/libos.a?

maciej at netra ~/src/vnc-nongar/vnc_unixsrc/Xvnc/programs/Xserver $
LD_RUN_PATH=/usr/openwin/lib /opt/studio/SOS12/SUNWspro/bin/cc -o Xvnc
-xO3 -Xa    -L/opt/csw/lib -L../.././/exports/lib  dix/libdix.a
os/libos.a dix/libdix.a ../.././/lib/Xau/libXau.a
../.././/lib/Xdmcp/libXdmcp.a ../.././/exports/lib/libfont.a
hw/vnc/libvnc.a ../.././/../libvncauth/libvncauth.a cfb/libcfb.a
cfb16/libcfb.a cfb24/libcfb.a cfb32/libcfb.a mfb/libmfb.a
dix/libxpstubs.a mi/libmi.a Xext/libext.a             -lsocket -lnsl
-lm   -L/usr/local/lib -ljpeg -lz -lcrypt
maciej at netra ~/src/vnc-nongar/vnc_unixsrc/Xvnc/programs/Xserver $

Wow, it worked! Thanks!

Maciej



More information about the maintainers mailing list