Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96903 - sysklogd fails to compile oops.c: linux/symtab_begin.h: No such file or directory
Summary: sysklogd fails to compile oops.c: linux/symtab_begin.h: No such file or dire...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-23 16:04 UTC by Ceesjan Luiten
Modified: 2005-06-26 00:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for the oops.c file (sysklogd-1.4.1-export-symbols.patch,913 bytes, patch)
2005-06-23 16:05 UTC, Ceesjan Luiten
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ceesjan Luiten 2005-06-23 16:04:55 UTC
When trying to compile app-admin/sysklogd-1.4.1-r11 (which is needed for my
xmail mail server) with maketest enabled in my features, it fails to compile
(see bottom of this post for the errors). When googling for 'symtab_begin.h', I
stumbled upon this site:
http://www.ussg.iu.edu/hypermail/linux/kernel/9701.3/0298.html . It explains
that "The method for specifying module symbol tables in the kernel
changed.". I have tried to apply the solution given in that post on the oops.c
file, and I mananged to make it compile-able. The daemons will run (and keep
running so far) too, so I guess it worked out.

I have _no idea_ what my hacking did,  I might have removed the whole purpose of
that file :) I do know that the patch attached to this post works with the
ebuild, that it compiles and that the daemons run.





Portage output:

>>> Unpacking source...
>>> Unpacking sysklogd-1.4.1.tar.gz to /var/tmp/portage/sysklogd-1.4.1-r11/work
 * Applying sysklogd-1.4.1-SO_BSDCOMPAT.patch ... [ ok ]
 * Applying sysklogd-1.4.1-2.6.headers.patch ... [ ok ]
>>> Source unpacked.
gcc -O2 -march=athlon-xp -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce
-DSYSLOG_INET -DSYSLOG_UNIX AF -DNO_SCCS -DFSSTND
-DSYSLOGD_PIDNAME=\"syslogd.pid\"  -c syslogd.c
gcc -O2 -march=athlon-xp -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -c
pidfile.c
gcc -o syslogd syslogd.o pidfile.o 
gcc -O2 -march=athlon-xp -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce
-DFSSTND -c klogd.c
gcc -O2 -march=athlon-xp -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce
-DALLOW_KERNEL_LOGGING -c syslog.c
gcc -O2 -march=athlon-xp -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce
-DFSSTND  -c ksym.c
gcc -O2 -march=athlon-xp -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce
-DFSSTND -c ksym_mod.c
gcc -o klogd klogd.o syslog.o pidfile.o ksym.o \
        ksym_mod.o 
>>> Test phase [enabled]: app-admin/sysklogd-1.4.1-r11
>>> Test phase [test]: app-admin/sysklogd-1.4.1-r11
gcc  -O2 -march=athlon-xp -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce -c
syslog_tst.c
gcc -s -o syslog_tst syslog_tst.o
gcc  -O2 -march=athlon-xp -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce
-DTEST -o ksym_test.o -c ksym.c
gcc -s -o ksym ksym_test.o ksym_mod.o
gcc  -O2 -march=athlon-xp -fomit-frame-pointer -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -DSYSV -fomit-frame-pointer -Wall -fno-strength-reduce
-D__KERNEL__ -DMODULE -c oops.c
oops.c:37: error: variable `these_symbols' has initializer but incomplete type
oops.c:38:32: linux/symtab_begin.h: No such file or directory
oops.c:39: warning: implicit declaration of function `X'
oops.c:39: warning: excess elements in struct initializer
oops.c:39: warning: (near initialization for `these_symbols')
oops.c:40: warning: excess elements in struct initializer
oops.c:40: warning: (near initialization for `these_symbols')
oops.c:41: warning: excess elements in struct initializer
oops.c:41: warning: (near initialization for `these_symbols')
oops.c:42:30: linux/symtab_end.h: No such file or directory
oops.c:52: warning: initialization from incompatible pointer type
oops.c:54: warning: initialization from incompatible pointer type
oops.c: In function `init_module':
oops.c:99: warning: implicit declaration of function `register_symtab'
oops.c: At top level:
oops.c:37: error: storage size of `these_symbols' isn't known
make: *** [oops.o] Error 1

!!! ERROR: app-admin/sysklogd-1.4.1-r11 failed.
!!! Function src_test, Line 572, Exitcode 0
!!! Make test failed. See above for details.

Reproducible: Always
Steps to Reproduce:
1. emerge sysklogd
2.
3.

Actual Results:  
Compilation failed on multiple errors

Expected Results:  
It should have compiled, obviously :)

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-gentoo i686)
=================================================================
System uname: 2.6.12-gentoo i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.6.12
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks maketest sandbox sfperms strict test"
GENTOO_MIRRORS="ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/
ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/
ftp://mirror.switch.ch/mirror/gentoo/"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X aalib alsa apache2 apm avi berkdb bitmap-fonts cdr
crypt cups curl emboss encode esd fam flac foomaticdb fortran gd gdbm gif
gphoto2 gpm gstreamer gtk gtk2 guile imagemagick imlib ipv6 ithreads java jpeg
libcaca libg++ libwww mad matroska mikmod mmx mmxext motif mozilla moznomail mp3
mpeg mysql ncurses nptl nvidia ogg oggvorbis opengl pam pdflib perl plotutils
png python qt quicktime readline real sdl sftplogging slang snmp sse ssl svga
tcltk tcpd test tiff truetype truetype-fonts type1-fonts unicode usb vorbis
win32codecs wxwindows xine xml xml2 xmms xv zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Ceesjan Luiten 2005-06-23 16:05:31 UTC
Created attachment 61809 [details, diff]
Patch for the oops.c file
Comment 2 SpanKY gentoo-dev 2005-06-26 00:19:35 UTC
disabled test in sysklogd