[csw-maintainers] Problems with mapfile and linking

Ben Walton bwalton at opencsw.org
Tue Sep 18 17:54:01 CEST 2012


Hi Jan,

Is autoconf detecting this properly for certain or just by
happenstance due to other requirements?  Is -lrt passed on the command
line that is trying to build transaction.o?  I wonder what the
configure environment is doing with regard to the new linker maps?
(It's likely doing the right thing but I haven't looked...)

> The function fdatasync is defined in 1.22.7 but also since forever in
> librt. The auto* tool for samba do detect that correctly and add -lrt
> for linking.
> The Linker does still fails though with:
>
> Undefined                       first referenced
>  symbol                             in file
> fdatasync                           ../lib/tdb/common/transaction.o
> (symbol belongs to unavailable version /lib/libc.so (SUNW_1.22.7))

> First thought was that -ignore might be a problem here so I removed it
> didn't help.

I wonder if this is an ordering issue of the -l parameters and the
implicit -lc ?

> I can build samba without fdatasync but this might hit us again so I'm
> looking for a solution. There probably is none and it's a linker bug but
> I don't know for sure :)

And presumably that's a useful function for samba to use so disabling
it doesn't seem like the best option either.

Thanks
-Ben


More information about the maintainers mailing list