Bug Hunting Session
Bug 51948 - linking -ldl on BSD in pyuno
Summary: linking -ldl on BSD in pyuno
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: sdk (show other bugs)
Version:
(earliest affected)
3.6.0.0.beta3
Hardware: All FreeBSD
: medium normal
Assignee: David Tardon
URL:
Whiteboard: target:3.7.0
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-10 14:18 UTC by Waitman Gobble
Modified: 2012-07-13 12:29 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Waitman Gobble 2012-07-10 14:18:29 UTC
build fails in tail_build

[ build LNK ] Library/pyuno.so
/usr/local/bin/ld: cannot find -ldl
collect2: error: ld returned 1 exit status
gmake[2]: *** [/usr/home/waitman/libreoffice/libo/workdir/unxfbsd.pro/LinkTarget/Library/pyuno.so] Error 1


--> quick fix is to update Library_pyuno_wrapper.mk 

remove:

ifneq ($(GUI)$(COM),WNTMSC)
ifneq ($(OS),MACOSX)
$(eval $(call gb_Library_add_libs,pyuno_wrapper,\
-ldl \
))
endif
endif

However, probably condition should be added if OS = BSD/Unix to skip -ldl

Thank you.
Comment 1 Not Assigned 2012-07-13 12:29:08 UTC
David Tardon committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=e9c6367cd546e6cf69cc2212b5a8771599bc54d8

fdo#51948 do not link with dl on *BSD