LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-18-2004, 11:29 AM   #1
kaN5300
LQ Newbie
 
Registered: Sep 2004
Location: Russia
Distribution: Slackware linux 10
Posts: 27

Rep: Reputation: 15
ULOGD + Mysql trouble


Hi!

I've downloaded da latest ulogd (ulogd-1.02). Than i configured it tike this:
Code:
root@router:/tmp/src/ulogd-1.02/mysql# ./configure --with-mysql=/usr/local/mysql
Mys where is my *mysql*.so ???:

Code:
root@router:/tmp/src/ulogd-1.02/mysql# ls -al /usr/local/lib/ulogd/
total 225
drwxr-xr-x  2 root root   240 Nov 18 19:52 ./
drwxr-xr-x  7 root root   168 Nov 18 19:43 ../
-rwxr-xr-x  1 root root 42014 Nov 18 19:52 ulogd_BASE.so*
-rwxr-xr-x  1 root root 28907 Nov 18 19:52 ulogd_LOCAL.so*
-rwxr-xr-x  1 root root 42534 Nov 18 19:52 ulogd_LOGEMU.so*
-rwxr-xr-x  1 root root 30094 Nov 18 19:52 ulogd_OPRINT.so*
-rwxr-xr-x  1 root root 35118 Nov 18 19:52 ulogd_PCAP.so*
-rwxr-xr-x  1 root root 34059 Nov 18 19:52 ulogd_PWSNIFF.so*
root@router:/tmp/src/ulogd-1.02/mysql#
I've tried to make mysql *.so manualy:

Code:
root@router:/tmp/src/ulogd-1.02/mysql# make
gcc -I  -g -O2   -DULOGD_CONFIGFILE=\"/usr/local/etc/ulogd.conf\" -I/lib/modules/`uname -r`/build/include -I.. -I../libipulog/include -I../include -fPIC -o ulogd_MYSQL_sh.o -c ulogd_MYSQL.c
ulogd_MYSQL.c:53: error: parse error before '*' token
ulogd_MYSQL.c:53: warning: data definition has no type or storage class
ulogd_MYSQL.c: In function `_mysql_get_columns':
ulogd_MYSQL.c:250: error: `MYSQL_RES' undeclared (first use in this function)
ulogd_MYSQL.c:250: error: (Each undeclared identifier is reported only once
ulogd_MYSQL.c:250: error: for each function it appears in.)
ulogd_MYSQL.c:250: error: `result' undeclared (first use in this function)
ulogd_MYSQL.c:251: error: `MYSQL_FIELD' undeclared (first use in this function)
ulogd_MYSQL.c:251: error: `field' undeclared (first use in this function)
ulogd_MYSQL.c: In function `_mysql_open_db':
ulogd_MYSQL.c:299: warning: assignment makes pointer from integer without a cast
make: *** [ulogd_MYSQL_sh.o] Error 1
root@router:/tmp/src/ulogd-1.02/mysql#
So, wat i do wrong?
 
Old 12-07-2004, 04:00 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
i think this might be something to try (if it's slackware):

Code:
./configure --prefix=/usr --sysconfdir=/etc --with-mysql=/usr/lib/mysql

make

make install
you should then have a usr/lib/ulogd/ulogd_MYSQL.so installed...

just my two cents...

Last edited by win32sux; 12-07-2004 at 04:04 PM.
 
Old 12-08-2004, 01:18 AM   #3
kaN5300
LQ Newbie
 
Registered: Sep 2004
Location: Russia
Distribution: Slackware linux 10
Posts: 27

Original Poster
Rep: Reputation: 15
U r 2 late =( I wrote traffic collector in perl, it puts interesting data in mysql
 
Old 12-08-2004, 02:49 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally posted by kaN5300
U r 2 late
yeah, but my post was aimed at folks who will run into this thread using google, AS I DID...

it's never too late for THAT...

=)
 
Old 12-09-2004, 12:12 AM   #5
kaN5300
LQ Newbie
 
Registered: Sep 2004
Location: Russia
Distribution: Slackware linux 10
Posts: 27

Original Poster
Rep: Reputation: 15
U r right =) Google rulezz
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MySql trouble Die Woud Linux - Networking 5 11-12-2005 11:10 AM
iptables ULOGd timestamping ? michaelsanford Linux - Networking 0 06-28-2005 02:55 PM
Trouble Installing MySQL deimosponders Mandriva 7 01-27-2005 01:18 AM
Trouble Logging in to mysql jevnin Linux - General 6 05-31-2004 12:23 AM
MySQL trouble gruger Linux - Networking 3 07-14-2003 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration