Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Syslog.h?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
friedmud
Apprentice
Apprentice
User avatar
Posts: 258
Joined: Thu Apr 18, 2002 8:49 pm
Location: Austin, TX USA

Syslog.h?

  • Quote

Post by friedmud » Tue Mar 06, 2007 5:43 pm

Does anyone know what package provides syslog.h?

I'm getting some undefined references to stuff defined in syslog.h... like "openlog()" while trying to compile some programs... and I can't figure out what package is even supposed to provide it...

Friedmud
Top
IQgryn
l33t
l33t
Posts: 764
Joined: Mon Sep 05, 2005 10:54 pm
Location: WI, USA

  • Quote

Post by IQgryn » Tue Mar 06, 2007 5:47 pm

Code: Select all

me@iqgryn ~ $ equery belongs syslog.h
[ Searching for file(s) syslog.h in *... ]
sys-libs/glibc-2.5 (/usr/include/syslog.h)
sys-libs/glibc-2.5 (/usr/include/sys/syslog.h)
sys-libs/glibc-2.5 (/usr/include/bits/syslog.h)
Looks like glibc to me.
Top
friedmud
Apprentice
Apprentice
User avatar
Posts: 258
Joined: Thu Apr 18, 2002 8:49 pm
Location: Austin, TX USA

  • Quote

Post by friedmud » Tue Mar 06, 2007 6:01 pm

Thanks IQ....

Hmmm.... so why undefined references.... sigh.

Friedmud
Top
IQgryn
l33t
l33t
Posts: 764
Joined: Mon Sep 05, 2005 10:54 pm
Location: WI, USA

  • Quote

Post by IQgryn » Tue Mar 06, 2007 6:05 pm

What packages are giving you trouble?
Top
isoflux
n00b
n00b
Posts: 3
Joined: Sat Mar 04, 2006 8:47 am

  • Quote

Post by isoflux » Tue Mar 06, 2007 10:46 pm

syslog.h is provided by glibc, but the libraries are provided by a syslog daemon. There are a few packages that provide the syslog daemon and libraries.

To see if you have any of them installed, run:

Code: Select all

equery list | grep 'sysk\?log'
The two most common ones are syskolgd and syslog-ng. If you don't have them (or another syslog package) installed,

Code: Select all

emerge syslog-ng
Then you should be able to use the syslog library call. You will also need to start your syslog daemon for your messages to show up in /var/log.
Top
friedmud
Apprentice
Apprentice
User avatar
Posts: 258
Joined: Thu Apr 18, 2002 8:49 pm
Location: Austin, TX USA

  • Quote

Post by friedmud » Wed Mar 07, 2007 12:23 am

Thanks for the reply.

I'm actually not working in an environment where I can be root... or use emerge... so that makes things more difficult.

I have my own "root" that I build and install stuff into in /home/username/root ... I have tried building syslogng myself, and installing it into this area... but for some reason it doesn't seem to be installing anything other than the syslogng executable.

Maybe tomorrow I'll try sysklogd instead...

Thanks for the help!

Friedmud
Top
Post Reply

6 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic