On Feb 4, 2009, at 2:59 PM, Brian H. Nelson wrote:

myron wrote:
I tired a few things now.
I had gcc-4.2.1 on my system, si I trited that. It failed at the same spot. I then tried it with Sun's gcc and Sun's ld and that failed with an option to ld that it didn't understand. I think that's the reason I use gnu's ld. So, now I'm trying it with Sun's gcc and gnu's ld.


It may be obvious, but did you 'make clean' and re-configure between each attempt? If not, that could be why it's passing ld wrong options.

Also, I'm not sure if you can mix and match linkers. I presume that you need to be using the linker that gcc says it was configured for, but perhaps thats not true.

I tried all the combinations. The furthest I get is

Linking bin/smbd
./bin/libtdb.so: undefined reference to `wr...@sunw_0.9'
./bin/libwbclient.so: undefined reference to `sl...@sunw_0.7'
./bin/libtdb.so: undefined reference to `prea...@sunw_1.4'
./bin/libtdb.so: undefined reference to `fc...@sunw_0.9'
./bin/libtalloc.so: undefined reference to `cl...@sunw_0.9'
./bin/libtdb.so: undefined reference to `r...@sunw_0.9'
./bin/libtdb.so: undefined reference to `ms...@sunw_0.9'
./bin/libtdb.so: undefined reference to `pwrit...@sunw_1.4'
./bin/libtdb.so: undefined reference to `sel...@sunw_1.4'
./bin/libtdb.so: undefined reference to `fs...@sunw_0.9'
collect2: ld returned 1 exit status
make: *** [bin/smbd] Error 1

If I look at ./bin/libwbclient.so I see that it can't find one of the libraries:
# ldd libwbclient.so
        libthread.so.1 =>        /usr/lib/libthread.so.1
        libtalloc.so.1 =>        (file not found)
        libc.so.1 =>     /usr/lib/libc.so.1
        libm.so.2 =>     /usr/lib/libm.so.2
        /platform/SUNW,Ultra-60/lib/libc_psr.so.1

I can't find that library on my system. Do you have a library by that name?



-Brian

--
---------------------------------------------------
Brian H. Nelson         Youngstown State University
System Administrator   Media and Academic Computing
            bnelson[at]cis.ysu.edu
---------------------------------------------------


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Reply via email to