cekpasswd.c compile error on cygwin 1.77
Julien ÉLIE
julien at trigofacile.com
Mon Sep 13 16:45:26 UTC 2010
Hi Michael,
> I really do need this to run on my windows, for personal use in my
> network,after 2 days 2 nights struggling compiling gd-2.0.36RC1 and perl GD
> 2.5.2module in cygwin, 1.77,i stumbled upon this error :
> -----------------------------------------------------------
> make[1]: Entering directory `/home/Stellar/inn-STABLE-20100911/authprogs'
> gcc -g -O2 -I../include -I/usr/include -c ckpasswd.c
> gcc -g -O2 -I../include -c -o libauth.o libauth.c
> gcc -o ckpasswd ckpasswd.o -lcrypt -L/usr/lib -ldb libauth.o
> /home/Stellar/i
> nn-STABLE-20100911/lib/libinn.a
> ckpasswd.o: In function `password_dbm':
> /home/Stellar/inn-STABLE-20100911/authprogs/ckpasswd.c:165: undefined
> reference
> to `_dbm_open'
> /home/Stellar/inn-STABLE-20100911/authprogs/ckpasswd.c:170: undefined
> reference
> to `_dbm_fetch'
> /home/Stellar/inn-STABLE-20100911/authprogs/ckpasswd.c:177: undefined
> reference
> to `_dbm_close'
> /home/Stellar/inn-STABLE-20100911/authprogs/ckpasswd.c:172: undefined
> reference
> to `_dbm_close'
> collect2: ld returned 1 exit status
> make[1]: *** [ckpasswd] Error 1
> make[1]: Leaving directory `/home/Stellar/inn-STABLE-20100911/authprogs'
> make: *** [all-authprogs] Error 2
> ---------------------------------------------------------------------------------------------
[...]
> $ perl -V
> Summary of my perl5 (revision 5 version 10 subversion 1) configuration:
>
> libs=-lgdbm -ldb -ldl -lcrypt -lgdbm_compat
>
> dbm do exist in my cygwin....
Did you try the suggestion here:
http://www.linuxfromscratch.org/pipermail/blfs-support/2004-January/047497.html
http://www.linuxfromscratch.org/pipermail/blfs-support/2004-January/047517.html
It might help because I see those "-lgdbm -lgdbm_compat" flags in your Perl compilation.
Please have a look at the following variables in Makefile.global:
CC = gcc
DBM_CPPFLAGS =
DBM_LIBS =
It is an extract from my own Makefile.global (where I see the last two are unset).
Maybe "-lgdbm -lgdbm_compat" should be put in one or several of these lines (?)
And afterwards in PERL_CPPFLAGS (?)
It is just a suggestion, in case it helps. (Not tested.)
--
Julien ÉLIE
« Rien, ce n'est pas rien ! La preuve, c'est que l'on peut le soustraire.
Exemple : rien moins rien = moins que rien ! » (Raymond Devos)
More information about the inn-workers
mailing list