On Wed, Sep 9, 2009 at 10:05 AM, Sebastian Kayser<[email protected]> 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?
mac...@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 mac...@netra ~/src/vnc-nongar/vnc_unixsrc/Xvnc/programs/Xserver $ Wow, it worked! Thanks! Maciej _______________________________________________ maintainers mailing list [email protected] https://lists.opencsw.org/mailman/listinfo/maintainers
