Project

General

Profile

Bug #11905

Build and publish error for library/dbus

Added by Gary Mills 4 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
OI-Userland
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:

Description

The OI source is from 2018. Consequently, there may be a new version of the source, or some of the bugs may have already been fixed. Though the changes have been developed on SPARC hardware, they might correct bugs in some x86 packages. In any case, they should not damage other x86 packages.

During the build of library/dbus, I received this error:

  CCLD     dbus-monitor
Undefined                       first referenced
 symbol                             in file
inet_ntop                           dbus-print-message.o  (symbol belongs to implicit dependency /lib/libnsl.so.1)
ld: fatal: symbol referencing errors. No output written to .libs/dbus-monitor
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:684: dbus-monitor] Error 1

The cause of this error is a missing library on the link command line. The solution is to modify Makefile to add this library. The patch Makefile.diff accomplishes this change. With that one fixed, I received the following publish errors:

Couldn't find 'usr/share/doc/dbus/api/dir_5b42d9f00640640b7578618a0863a45d.html' in any of the specified search directories:
...
Couldn't find 'usr/share/doc/dbus/api/dir_e7d8299e1873836dc4681e7d05d03e4d.html' in any of the specified search directories:

The cause, in this case, is that the build on SPARC hardware did not create the html document files. The solution is to update the manifest to append variant.arch=i386 to those files. The patch dbus.diff accomplishes this change. With it, the publish was successful.


Files

Makefile.diff (239 Bytes) Makefile.diff Gary Mills, 2019-10-31 02:05 PM
dbus.diff (364 Bytes) dbus.diff Gary Mills, 2019-10-31 02:06 PM

Also available in: Atom PDF