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 81
    • Issues 81
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 18
    • Merge Requests 18
  • 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
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source Projects
  • dhcp
  • Issues
  • #32

Closed
Open
Created 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