Package: ddcci-dkms
Version: 0.2-1
Severity: important

Dear Maintainer,

After installing the ddcci-dkms package, DKMS builds and installs both
modules successfully, but the ddcci-backlight module can't be loaded
due to symbol lookup errors:

> [19754.067449] ddcci_backlight: no symbol version for ddcci_device_write
> [19754.067457] ddcci_backlight: Unknown symbol ddcci_device_write (err -22)
> [19754.067465] ddcci_backlight: no symbol version for ddcci_register_driver
> [19754.067468] ddcci_backlight: Unknown symbol ddcci_register_driver (err -22)
> [19754.067475] ddcci_backlight: no symbol version for ddcci_del_driver
> [19754.067478] ddcci_backlight: Unknown symbol ddcci_del_driver (err -22)
> [19754.067485] ddcci_backlight: no symbol version for ddcci_device_writeread
> [19754.067488] ddcci_backlight: Unknown symbol ddcci_device_writeread (err 
> -22)

This might be due to DKMS taking advantages of multiple CPU cores to
build both modules in parallel, while the ddcci one needs to be built
before the ddcci-backlight one can be.

I can reasily reproduce the error by running `make -j2` (or more) on
the sources (I get make-time warnings:)

> WARNING: "ddcci_del_driver" 
> [/tmp/ddcci-driver-linux-0.2/ddcci-backlight/ddcci-backlight.ko] undefined!
> WARNING: "ddcci_register_driver" 
> [/tmp/ddcci-driver-linux-0.2/ddcci-backlight/ddcci-backlight.ko] undefined!
> WARNING: "ddcci_device_writeread" 
> [/tmp/ddcci-driver-linux-0.2/ddcci-backlight/ddcci-backlight.ko] undefined!
> WARNING: "ddcci_device_write" 
> [/tmp/ddcci-driver-linux-0.2/ddcci-backlight/ddcci-backlight.ko] undefined!

While when I build with a single job (make -j1) it works and produces a
loadable ddcci-backlight module.

See also https://gitlab.com/ddcci-driver-linux/ddcci-driver-linux/issues/1

Regards,
Colomban

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500, 'testing'), 
(500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages ddcci-dkms depends on:
ii  dkms  2.2.0.3-5

ddcci-dkms recommends no packages.

ddcci-dkms suggests no packages.

-- no debconf information

Reply via email to