Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
D
dhcp
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 64
    • Issues 64
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 16
    • Merge Requests 16
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • ISC Open Source Projects
  • dhcp
  • Issues
  • #32

Closed
Open
Opened Jul 10, 2019 by Enrico Scholz@ensc

undefined symbols in libomapi

Describe the bug

Calling dhclient fails here with

dhclient: symbol lookup error: /usr/lib/libomapi.so.0: undefined symbol: dns_rootname 

This is caused by a combination of -Wl,-as-needed and -Wl,-no-add-nedded linkerflags (although sounding similarly, they have diffierent semantics and latter one is the default e.g. on Fedora).

Because code in libomapi.so uses functionality from libdns and other libraries, it should be linked against them.

I fixed it with omapilibs.patch

Index: dhcp-4.4.1/omapip/Makefile.am.in
===================================================================
--- dhcp-4.4.1.orig/omapip/Makefile.am.in
+++ dhcp-4.4.1/omapip/Makefile.am.in
@@ -11,6 +11,10 @@ libomapi_@A@_SOURCES = protocol.c buffer
 		       handle.c message.c convert.c hash.c auth.c inet_addr.c \
 		       array.c trace.c toisc.c iscprint.c isclib.c
 
+libomapi_@A@_LIBADD = $(BINDLIBDNSDIR)/libdns.@A@ \
+		      $(BINDLIBIRSDIR)/libirs.@A@ \
+		      $(BINDLIBISCCFGDIR)/libisccfg.@A@
+
 man_MANS = omapi.3
 EXTRA_DIST = $(man_MANS)
 

Environment:

  • seen with OpenEmbedded thud (http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-connectivity/dhcp?h=thud)
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: isc-projects/dhcp#32