[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Win32] Can't build a dynamic libidn-1.12 library with MinGW in MSYS
From: |
Sisyphus |
Subject: |
Re: [Win32] Can't build a dynamic libidn-1.12 library with MinGW in MSYS shell. |
Date: |
Tue, 10 Feb 2009 11:55:46 +1100 |
----- Original Message -----
From: "Simon Josefsson" <address@hidden>
######################################
Making all in src
make[2]: Entering directory `/c/_32/comp/libidn-1.12/src'
gengetopt --unamed-opts --no-handle-version --no-handle-help \
--set-package="idn" \
--input idn.ggo Makefile.am --file-name idn_cmd || \
test -f idn_cmd.h -a -f idn_cmd.c || \
cp ./idn_cmd.h ./idn_cmd.h .
/bin/sh: gengetopt: command not found
Hi. Strange, it seems 'make' decides that it needs to re-build
idn_cmd.c and idn_cmd.h from idn.ggo. Did you modify either src/idn.ggo
or src/Makefile.am?
No, I haven't modified any of the source files.
Can you show the output from 'ls -l src/' inside
the libidn directory?
address@hidden /c/_32/comp/libidn-1.12
$ ls -l src/
total 32
-rw-r--r-- 1 Rob Administ 1693 Jan 23 00:14 Makefile.am
-rw-r--r-- 1 Rob Administ 28806 Jan 24 00:31 Makefile.in
-rw-r--r-- 1 Rob Administ 15653 Jan 23 00:36 idn.c
-rw-r--r-- 1 Rob Administ 1860 Jan 23 00:40 idn.ggo
-rw-r--r-- 1 Rob Administ 6490 Jan 18 01:42 idna.el
-rw-r--r-- 1 Rob Administ 6292 Jan 18 01:42 punycode.el
Anyway, as a work around, you could do 'touch src/idn_cmd.?' to make
sure the timestamp for the generated files are later than the source.
Aaah ... now I think I see what the problem is. Both src/idn_cmd.h and
src/idn_cmd.c ship with the source.
I first built a static lib, then ran 'make distclean', then tried to build
the dynamic lib. Unfortunately, 'make distclean' removed both src/idn_cmd.h
and src/idn_cmd.c. Re-instating those 2 files fixes the problem.
I gather 'make distclean' is doing something it shouldn't ? ... or is 'make
distclean' simply the wrong command to be running between builds in this
case ?
Cheers,
Rob