AW: [IRCServices Coding] R: IRCServices-Coding Digest, Vol 5, Issue 3
Georges Berscheid
georges at berscheid.lu
Wed Jun 4 11:17:57 PDT 2003
Install zlib from http://www.gzip.org/zlib/.
But I must admin that I have not seen a system without zlib for a very
long time...
Georges
-----Ursprüngliche Nachricht-----
Von: ircservices-coding-bounces at ircservices.za.net
[mailto:ircservices-coding-bounces at ircservices.za.net] Im Auftrag von
Alessandro Ciappei
Gesendet: Mittwoch, 4. Juni 2003 18:41
An: ircservices-coding at ircservices.za.net
Betreff: [IRCServices Coding] R: IRCServices-Coding Digest, Vol 5, Issue
3
i try with flag -lz but this is the error:
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [ircservices] Error 1
Thx
Alex
Message: 1
Date: Mon, 2 Jun 2003 14:35:14 +0200
From: "Alessandro Ciappei" <laser at musichat.net>
Subject: [IRCServices Coding] mysql modules
To: <ircservices-coding at ircservices.za.net>
Message-ID: <BNEPLNAFODLPMAECJEOBMECECAAA.laser at musichat.net>
Content-Type: text/plain; charset="us-ascii"
It's compiling, but i see this:
when i compile:
make[2]: Entering directory
`/home/services/ircservices-5.0.19/modules/mysql'
gcc -O2 -fno-strict-aliasing -g -Wall -Wmissing-prototypes -I../.. -c
main.c -o main.o
touch .stamp
make[4]: Nothing to be done for `/usr/lib/mysql/libmysqlclient.a'.
gcc -shared main.o /usr/lib/mysql/libmysqlclient.a -o main.so
make[2]: Leaving directory
`/home/services/ircservices-5.0.19/modules/mysql'
touch .stamp
when i install:
make[2]: Entering directory
`/home/services/ircservices-5.0.19/modules/mysql'
make[4]: Nothing to be done for `/usr/lib/mysql/libmysqlclient.a'.
make[2]: Leaving directory
`/home/services/ircservices-5.0.19/modules/mysql'
and when i start services in log i see:
[Jun 02 14:26:20 2003] IRC Services 5.0.19 starting up
[Jun 02 14:26:21 2003] modules: Unable to load module `mysql/main':
/home/services/sviluppo/lib/modules/mysql/main.so: undefined symbol:
unco$
[Jun 02 14:26:21 2003] Error loading modules, aborting
Thx a lot
ALex
Message: 1
Date: Sun, 1 Jun 2003 17:19:04 +0200
From: "Alessandro Ciappei" <laser at musichat.net>
Subject: [IRCServices Coding] Mysql Module
To: <ircservices-coding at ircservices.za.net>
Message-ID: <BNEPLNAFODLPMAECJEOBMECDCAAA.laser at musichat.net>
Content-Type: text/plain; charset="us-ascii"
The services souce from here
http://www.luxusbuerg.lu/data/ircservices-luxusbuerg.tgz
The mysql table from here
http://www.luxusbuerg.lu/data/sql.tgz
thx a lot
Alex
Message: 1
Date: Sat, 31 May 2003 15:10:50 +0200
From: "Alessandro Ciappei" <laser at musichat.net>
Subject: [IRCServices Coding] Mysql Modules
To: "Ircservices-Coding at Ircservices. Za. Net"
<ircservices-coding at ircservices.za.net>
Message-ID: <BNEPLNAFODLPMAECJEOBIECCCAAA.laser at musichat.net>
Content-Type: text/plain; charset="iso-8859-1"
Hi all,
I try to compile services with mysql module, I found in list-archive,
but I
have a problem.
make[2]: Entering directory
`/home/services/ircservices-5.0.19/modules/mysql'
gcc -DSTATIC_MODULES -O2 -fno-strict-aliasing -g -Wall
-Wmissing-prototypes
-I../.. -Dmodule_version=module_version_mysql_main
-Dmodule_config=module_co
nfig_mysql_main -Dinit_module=init_module_mysql_main
-Dexit_module=exit_modu
le_mysql_main -c main.c -o main_static.o
touch .stamp
make[4]: Nothing to be done for `/usr/lib/mysql/libmysqlclient.a'.
ar -cru .mysql.a main_static.o /usr/lib/mysql/libmysqlclient.a
/usr/lib/mysql/libmysqlclient.a: invalid use of EXPORT_xxx
make[3]: *** [main.a] Error 1
make[2]: *** [main.a] Error 2
make[2]: Leaving directory
`/home/services/ircservices-5.0.19/modules/mysql'
make[1]: *** [all-static] Error 2
make[1]: Leaving directory `/home/services/ircservices-5.0.19/modules'
make: *** [modules] Error 2
[services at lists ircservices-5.0.19]$
someone can helpme?
Thx
ALex
------------------------------
Message: 2
Date: Sun, 1 Jun 2003 18:50:12 +0200
From: "Georges Berscheid" <georges at berscheid.lu>
Subject: AW: [IRCServices Coding] Mysql Module
To: "'IRC Services Coding Mailing List'"
<ircservices-coding at ircservices.za.net>
Message-ID: <001001c3285d$df5a9130$3ec918d4 at gizmo>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
maybe you should try to build services with dynamic modules, because the
mysql module is known to compile as a dynamic module.
Georges
-----Urspr|ngliche Nachricht-----
Von: ircservices-coding-bounces at ircservices.za.net
[mailto:ircservices-coding-bounces at ircservices.za.net] Im Auftrag von
Alessandro Ciappei
Gesendet: Sonntag, 1. Juni 2003 17:19
An: ircservices-coding at ircservices.za.net
Betreff: [IRCServices Coding] Mysql Module
The services souce from here
http://www.luxusbuerg.lu/data/ircservices-luxusbuerg.tgz
The mysql table from here
http://www.luxusbuerg.lu/data/sql.tgz
thx a lot
Alex
Message: 1
Date: Sat, 31 May 2003 15:10:50 +0200
From: "Alessandro Ciappei" <laser at musichat.net>
Subject: [IRCServices Coding] Mysql Modules
To: "Ircservices-Coding at Ircservices. Za. Net"
<ircservices-coding at ircservices.za.net>
Message-ID: <BNEPLNAFODLPMAECJEOBIECCCAAA.laser at musichat.net>
Content-Type: text/plain; charset="iso-8859-1"
Hi all,
I try to compile services with mysql module, I found in list-archive,
but I
have a problem.
make[2]: Entering directory
`/home/services/ircservices-5.0.19/modules/mysql'
gcc -DSTATIC_MODULES -O2 -fno-strict-aliasing -g -Wall
-Wmissing-prototypes
-I../.. -Dmodule_version=module_version_mysql_main
-Dmodule_config=module_co
nfig_mysql_main -Dinit_module=init_module_mysql_main
-Dexit_module=exit_modu
le_mysql_main -c main.c -o main_static.o
touch .stamp
make[4]: Nothing to be done for `/usr/lib/mysql/libmysqlclient.a'.
ar -cru .mysql.a main_static.o /usr/lib/mysql/libmysqlclient.a
/usr/lib/mysql/libmysqlclient.a: invalid use of EXPORT_xxx
make[3]: *** [main.a] Error 1
make[2]: *** [main.a] Error 2
make[2]: Leaving directory
`/home/services/ircservices-5.0.19/modules/mysql'
make[1]: *** [all-static] Error 2
make[1]: Leaving directory `/home/services/ircservices-5.0.19/modules'
make: *** [modules] Error 2
[services at lists ircservices-5.0.19]$
someone can helpme?
Thx
ALex
------------------------------------------------------------------
To unsubscribe or change your subscription options, visit:
http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
------------------------------
_______________________________________________
IRCServices-Coding mailing list
IRCServices-Coding at ircservices.za.net
http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
End of IRCServices-Coding Digest, Vol 5, Issue 2
************************************************
------------------------------
Message: 2
Date: Mon, 02 Jun 2003 14:32:52 +0200
From: Georges Berscheid <georges at berscheid.lu>
Subject: Re: [IRCServices Coding] mysql modules
To: IRC Services Coding Mailing List
<ircservices-coding at ircservices.za.net>
Message-ID: <3EDB43F4.5070306 at berscheid.lu>
Content-Type: text/plain; charset=us-ascii; format=flowed
Hi,
[snip]
>/home/services/sviluppo/lib/modules/mysql/main.so: undefined symbol:
unco$
>
>
[/snip]
I suppose that line says: undefined symbol: uncompress.
Just link zlib to your binary by adding -lz to the LIBS line in
Makefile.inc. Some newer mysqlclient libraries need compress/uncompress
functions to run.
Georges
------------------------------
_______________________________________________
IRCServices-Coding mailing list
IRCServices-Coding at ircservices.za.net
http://www.ircservices.za.net/mailman/listinfo/ircservices-coding
End of IRCServices-Coding Digest, Vol 5, Issue 3
************************************************
------------------------------------------------------------------
To unsubscribe or change your subscription options, visit:
http://www.ircservices.za.net/mailman/listinfo/ircservices-coding