[DRBD-user] SLES 11 showstoppers in the drbd-8.3.6.tar.gz source distribution ...

Joe Bill foxycode at yahoo.com
Wed Dec 9 14:16:30 CET 2009

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.

Just to fix a few showstoppers when building DRBD under SLES 11...


At http://www.drbd.org/users-guide-emb/s-build-rpm.html

every occurence of ...

`rpm -E _sourcedir`

should read instead ...

`rpm -E %_sourcedir`


Then, several occurences of '/etc/SuSErelease', in files
'configure' and 'configure.ac', whereas '/etc/SuSErelease' doesn't exist in my SLES 11 installation but '/etc/SuSE-release' does.


Finally, when running the following line ...
rpmbuild -bb drbd-km.spec

... you may get the following error message:

"error: Failed build dependencies:
kernel-syms = is needed by drbd-km-8.3.6-12.i586"

... although, as hard as you look at it, you already have "kernel-syms v2.6.27.39-0.3-default" installed.

The problem is to those major and minor version numbers there is an additional number (build?, revision ?) that occasionally finds it's way in the version number.

So eventually, if you're kernel was recently patched, you might have to change the line in file drbd-km.spec ...

'BuildRequires: gcc, kernel-syms = %{kernelversion}'


'BuildRequires: gcc, kernel-syms = v'

... 'v' being the exact version of the kernel-syms package installed, which may be found using yast.

Myself I found out I had kernel-syms v installed, and ended having this in the spec file (quotes excluded of course) to get it to recognize my installed kernel-syms:

'BuildRequires: gcc, kernel-syms ='


More information about the drbd-user mailing list