Re: linker wiredness?
FreeBSD's linker doesn't add /usr/local/lib to the search path by default, unlike some other operating systems. The -L/usr/local/lib flag is therefore required... but ldconfig already found the library (line 441)!? ld(1) doesn't consult ldconfig(8). oh, I was probably confused by the `man ldconfig`: The ldconfig utility is used to prepare a set of ``hints'' for use by the dynamic linker to facilitate quick lookup of shared libraries available [...] The 'dynamic linker' doesn't mean 'compiler's linker' here, I suppose. In any case, how do I tell ld(1) where to look without specifying '-L' or modifying Makefie? I tried `export LD_LIBRARY_PATH=/usr/local/lib` and `echo /usr/local/lib /etc/ld.so.conf`, but nothing changed. Timestamp: 0x44617F2B [SorAlx] ridin' VN1500-B2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
linker wiredness?
[EMAIL PROTECTED] /geda-gschem-20060123]# rm ./conftest [EMAIL PROTECTED] /geda-gschem-20060123]# cc -o conftest -g -O2 conftest.c -lstroke /usr/bin/ld: cannot find -lstroke -- why??? [EMAIL PROTECTED] /geda-gschem-20060123]# ldconfig -r|grep stroke 441:-lstroke.0 = /usr/local/lib/libstroke.so.0 442:-lgstroke.0 = /usr/local/lib/libgstroke.so.0 [EMAIL PROTECTED] /geda-gschem-20060123]# cc -o conftest -g -O2 conftest.c -L/usr/local/lib -lstroke [EMAIL PROTECTED] /geda-gschem-20060123]# ll ./conftest -rwxr-xr-x 1 root 1000 5594 May 9 04:06 ./conftest* Am I missing something here? P.S.: plz CC to me, as I'm not following -questions. Timestamp: 0x44607809 [SorAlx] ridin' VN1500-B2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: linker wiredness?
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] /geda-gschem-20060123]# rm ./conftest [EMAIL PROTECTED] /geda-gschem-20060123]# cc -o conftest -g -O2 conftest.c -lstroke /usr/bin/ld: cannot find -lstroke -- why??? [EMAIL PROTECTED] /geda-gschem-20060123]# ldconfig -r|grep stroke 441:-lstroke.0 = /usr/local/lib/libstroke.so.0 442:-lgstroke.0 = /usr/local/lib/libgstroke.so.0 [EMAIL PROTECTED] /geda-gschem-20060123]# cc -o conftest -g -O2 conftest.c -L/usr/local/lib -lstroke [EMAIL PROTECTED] /geda-gschem-20060123]# ll ./conftest -rwxr-xr-x 1 root 1000 5594 May 9 04:06 ./conftest* Am I missing something here? FreeBSD's linker doesn't add /usr/local/lib to the search path by default, unlike some other operating systems. The -L/usr/local/lib flag is therefore required... -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: linker wiredness?
[EMAIL PROTECTED] wrote: [EMAIL PROTECTED] /geda-gschem-20060123]# rm ./conftest [EMAIL PROTECTED] /geda-gschem-20060123]# cc -o conftest -g -O2 conftest.c -lstroke /usr/bin/ld: cannot find -lstroke -- why??? [EMAIL PROTECTED] /geda-gschem-20060123]# ldconfig -r|grep stroke 441:-lstroke.0 = /usr/local/lib/libstroke.so.0 442:-lgstroke.0 = /usr/local/lib/libgstroke.so.0 [EMAIL PROTECTED] /geda-gschem-20060123]# cc -o conftest -g -O2 conftest.c -L/usr/local/lib -lstroke [EMAIL PROTECTED] /geda-gschem-20060123]# ll ./conftest -rwxr-xr-x 1 root 1000 5594 May 9 04:06 ./conftest* Am I missing something here? FreeBSD's linker doesn't add /usr/local/lib to the search path by default, unlike some other operating systems. The -L/usr/local/lib flag is therefore required... but ldconfig already found the library (line 441)!? Timestamp: 0x44607FB0 [SorAlx] ridin' VN1500-B2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: linker wiredness?
On Tue, May 09, 2006 at 04:41:57AM -0700, [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] /geda-gschem-20060123]# rm ./conftest [EMAIL PROTECTED] /geda-gschem-20060123]# cc -o conftest -g -O2 conftest.c -lstroke /usr/bin/ld: cannot find -lstroke -- why??? [EMAIL PROTECTED] /geda-gschem-20060123]# ldconfig -r|grep stroke 441:-lstroke.0 = /usr/local/lib/libstroke.so.0 442:-lgstroke.0 = /usr/local/lib/libgstroke.so.0 [EMAIL PROTECTED] /geda-gschem-20060123]# cc -o conftest -g -O2 conftest.c -L/usr/local/lib -lstroke [EMAIL PROTECTED] /geda-gschem-20060123]# ll ./conftest -rwxr-xr-x 1 root 1000 5594 May 9 04:06 ./conftest* Am I missing something here? FreeBSD's linker doesn't add /usr/local/lib to the search path by default, unlike some other operating systems. The -L/usr/local/lib flag is therefore required... but ldconfig already found the library (line 441)!? ld(1) doesn't consult ldconfig(8). -- Jonathan Chen [EMAIL PROTECTED] -- A person should be able to do a small bit of everything, specialisation is for insects ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]