From: Dani Moncayo <dmoncayo@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Emacs development discussions <emacs-devel@gnu.org>
Subject: Re: MS-Windows build using Posix configury
Date: Wed, 1 May 2013 21:30:44 +0200 [thread overview]
Message-ID: <CAH8Pv0gQ6F3saJos4seWfPMzhRpotaUiT_QUEHE4aR4UQBaW2Q@mail.gmail.com> (raw)
In-Reply-To: <8361z2psr1.fsf@gnu.org>
>> I've been trying to build the latest trunk (plus your patch) from my
>> MSYS environment, with support for the libraries I use to successfully
>> include in my w32 builds (configured with "configure.bat"): XPM, JPEG,
>> TIFF, GIF, PNG, GNUTLS and XML.
>>
>> The configure script successfully detects them, except for the last
>> two (GNUTLS and XML), and for now I've failed to see what the problem
>> is.
>
> I think it's because you didn't install pkg-config, or maybe it is not
> on PATH. The configure script uses it (for some of the optional
> libraries, not for all of them) to find out which compiler and linker
> switches to use for each of these packages. And configure thinks you
> don't have pkg-config, as this fragment from config.log shows:
>
> configure:8730: checking for pkg-config
> configure:8761: result: no
>
> Without pkg-config, configure uses the wrong compiler switches to try
> compiling test programs, which therefore fail, causing the configure
> script to decide you don't have these libraries.
>
> You can find a URL from which you can download pkg-config in
> INSTALL.MSYS. Note: this is a native Windows port, so install it in
> the MinGW tree, not in the MSYS tree.
Indeed, I didn't have pkg-config installed, sorry (I thought that the
packages auto-installed by mingw-get were enough already).
I've downloaded and installed that package, and the configure script
does find it:
configure:8730: checking for pkg-config
configure:8748: found /c/usr/bin/pkg-config
configure:8761: result: /c/usr/bin/pkg-config
> Also note that when you install GnuTLS and libxml2 from my ports, they
> also install *.pc files in lib/pkg-config/. These are the files that
> pkg-config will consult when the configure script invokes it.
> Therefore, I suggest that you keep the directory tree in my zip files
> intact, or else you will need to manually edit these *.pc files to
> match your installation. I'm saying that because this:
>
>> $ CPPFLAGS='-DGLYPH_DEBUG=1 -Ic:/usr/include/gnutls
>> -Ic:/usr/include/noX -Ic:/usr/include' CFLAGS='-O0 -g3'
>> ../mybranch/nt/msysconfig.sh --prefix=c:/usr --enable-checking
>
> clearly shows that you moved the GnuTLS headers into
> usr/include/gnutls, which is not what gnutls.pc file says. Likewise
> with the lib*.a static and import libraries: you need to have them in
> the same place where the corresponding .pc says they can be found.
No, I didn't move any file of the libraries or packages from their
original position in the zip files. I just tried to pass that path
(c:/usr/include/gnutls) to the compiler as a desperate attempt to
solve the configure problem.
> As I wrote in INSTALL.MSYS, I suggest to install everything into a
> single tree, preserving the directories recorded in the zip. Just
> unzip everything from the same parent directory, and you should be
> fine.
Yes, that is what I did for the libraries and packages installed
manually: I uncompressed the zip files under one common parent
directory (c:/usr).
In fact, after installing pkg-config, the configure script now finds
the libxml library:
configure:13773: checking for libxml-2.0 > 2.6.17
configure:13787: result: yes CFLAGS='-Ic:/usr/include/libxml2 '
LIBS='-Lc:/usr/lib -lxml2 '
... but it still does not find a correct gnutls library:
configure:11727: checking for gnutls >= 2.6.6
Package p11-kit-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `p11-kit-1.pc'
to the PKG_CONFIG_PATH environment variable
Package 'p11-kit-1', required by 'GnuTLS', not found
configure:11745: result: no
configure:11782: checking for gnutls_certificate_set_verify_function
configure:11782: gcc -I /c/emacs/mybranch/nt/inc -std=gnu99 -o
conftest.exe -O0 -g3 -mtune=pentium4 -DGLYPH_DEBUG=1
-Ic:/usr/include/noX -Ic:/usr/include conftest.c >&5
C:\Users\dani\AppData\Local\Temp\ccGHYX1K.o: In function `main':
c:\emacs\build/conftest.c:87: undefined reference to
`gnutls_certificate_set_verify_function'
collect2.exe: error: ld returned 1 exit status
configure:11782: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "emacs"
[...]
| #endif
|
| int
| main ()
| {
| return gnutls_certificate_set_verify_function ();
| ;
| return 0;
| }
configure:11782: result: no
After seeing the error messages, I installed the "p11-kit" package
(from your site "http://sourceforge.net/projects/ezwinports") and now
the configure script finally does find the gnutls library:
configure:11727: checking for gnutls >= 2.6.6
configure:11741: result: yes CFLAGS='-Ic:/usr/include
-Ic:/usr/include/p11-kit-1 ' LIBS='-Lc:/usr/lib -lgnutls '
configure:11782: checking for gnutls_certificate_set_verify_function
configure:11782: gcc -I /c/emacs/mybranch/nt/inc -std=gnu99 -o
conftest.exe -O0 -g3 -Ic:/usr/include -Ic:/usr/include/p11-kit-1
-mtune=pentium4 -DGLYPH_DEBUG=1 -Ic:/usr/include/noX -Ic:/usr/include
conftest.c -Lc:/usr/lib -lgnutls >&5
configure:11782: $? = 0
configure:11782: result: yes
Thank you so much for your help.
--
Dani Moncayo
next prev parent reply other threads:[~2013-05-01 19:30 UTC|newest]
Thread overview: 116+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-16 18:24 MS-Windows build using Posix configury Eli Zaretskii
2013-04-16 18:40 ` Eli Zaretskii
2013-04-16 20:13 ` Stefan Monnier
2013-04-17 2:53 ` Eli Zaretskii
2013-04-16 21:17 ` Glenn Morris
2013-04-17 2:56 ` Eli Zaretskii
2013-04-17 6:25 ` Glenn Morris
2013-04-17 16:48 ` Eli Zaretskii
2013-04-17 17:11 ` Glenn Morris
2013-04-17 17:34 ` Eli Zaretskii
2013-04-17 17:53 ` Glenn Morris
2013-04-17 18:15 ` Glenn Morris
2013-04-17 18:44 ` Eli Zaretskii
2013-04-17 0:42 ` Glenn Morris
2013-04-17 2:57 ` Eli Zaretskii
2013-04-17 6:24 ` Glenn Morris
2013-04-17 3:33 ` Paul Eggert
2013-04-17 17:00 ` Eli Zaretskii
2013-04-17 18:48 ` Paul Eggert
2013-04-17 19:15 ` Glenn Morris
2013-04-17 19:45 ` Eli Zaretskii
2013-04-17 20:43 ` Glenn Morris
2013-04-17 21:19 ` Paul Eggert
2013-04-17 22:38 ` Glenn Morris
2013-04-18 0:52 ` Paul Eggert
2013-04-18 5:29 ` Glenn Morris
2013-04-18 16:11 ` Eli Zaretskii
2013-04-17 6:27 ` Glenn Morris
2013-04-17 6:31 ` Glenn Morris
2013-04-18 19:32 ` Dani Moncayo
2013-04-18 20:27 ` Dani Moncayo
2013-04-18 21:20 ` Eli Zaretskii
2013-04-18 22:03 ` Dani Moncayo
2013-04-19 6:34 ` Eli Zaretskii
2013-04-19 20:17 ` Dani Moncayo
2013-04-20 6:34 ` Eli Zaretskii
2013-04-20 7:35 ` Dani Moncayo
2013-04-20 7:56 ` Eli Zaretskii
2013-04-20 17:18 ` Dani Moncayo
2013-04-20 18:30 ` Eli Zaretskii
2013-04-20 20:21 ` Dani Moncayo
2013-04-21 15:12 ` Eli Zaretskii
2013-04-21 19:53 ` Dani Moncayo
2013-05-01 15:30 ` Dani Moncayo
2013-05-01 16:30 ` Eli Zaretskii
2013-05-01 19:30 ` Dani Moncayo [this message]
2013-05-01 19:40 ` Eli Zaretskii
2013-05-02 6:43 ` Dani Moncayo
2013-05-02 16:19 ` Eli Zaretskii
2013-05-02 18:40 ` Dani Moncayo
2013-05-02 19:49 ` Eli Zaretskii
2013-05-02 21:42 ` Dani Moncayo
2013-05-02 21:43 ` Dani Moncayo
2013-05-03 8:50 ` Eli Zaretskii
2013-05-04 10:59 ` Dani Moncayo
2013-05-04 11:04 ` Dani Moncayo
2013-05-04 11:27 ` Eli Zaretskii
2013-05-04 12:00 ` Dani Moncayo
2013-05-04 12:30 ` Eli Zaretskii
2013-05-07 19:36 ` Dani Moncayo
2013-05-07 21:13 ` Eli Zaretskii
2013-05-07 22:04 ` Dani Moncayo
2013-05-08 17:09 ` Eli Zaretskii
2013-05-08 17:32 ` Dani Moncayo
2013-05-13 12:23 ` Andy Moreton
2013-05-13 16:23 ` Eli Zaretskii
2013-05-16 6:00 ` Eli Zaretskii
2013-05-16 6:31 ` Paul Eggert
2013-05-16 6:56 ` Eli Zaretskii
2013-05-16 7:16 ` Paul Eggert
2013-05-16 7:30 ` Eli Zaretskii
2013-05-16 13:19 ` Eli Zaretskii
2013-05-16 14:43 ` Dmitry Gutov
2013-05-16 15:41 ` Eli Zaretskii
2013-05-16 16:10 ` Dmitry Gutov
2013-05-16 17:17 ` Dani Moncayo
2013-05-16 17:54 ` Eli Zaretskii
2013-05-16 18:01 ` Dani Moncayo
2013-05-16 18:36 ` Eli Zaretskii
2013-05-16 21:02 ` Dmitry Gutov
2013-05-17 6:02 ` Eli Zaretskii
2013-05-16 17:18 ` Eli Zaretskii
2013-05-16 21:19 ` Dmitry Gutov
2013-05-17 9:39 ` Eli Zaretskii
2013-05-17 12:05 ` Dmitry Gutov
2013-05-17 13:13 ` Eli Zaretskii
2013-05-17 14:03 ` Dmitry Gutov
2013-05-17 14:26 ` Eli Zaretskii
2013-05-17 15:29 ` Dmitry Gutov
2013-05-17 16:05 ` Eli Zaretskii
2013-05-17 16:30 ` Dmitry Gutov
2013-05-17 17:40 ` Eli Zaretskii
2013-05-17 18:43 ` Eli Zaretskii
2013-05-17 20:47 ` Dmitry Gutov
2013-05-18 7:18 ` Eli Zaretskii
2013-05-18 8:08 ` Dmitry Gutov
2013-05-18 9:08 ` Eli Zaretskii
2013-05-18 13:24 ` Dmitry Gutov
2013-05-18 14:25 ` Eli Zaretskii
2013-05-18 14:28 ` Dmitry Gutov
2013-05-18 18:21 ` Eli Zaretskii
2013-05-18 18:42 ` Dmitry Gutov
2013-05-18 18:53 ` Eli Zaretskii
2013-05-18 19:15 ` Dmitry Gutov
2013-05-18 19:24 ` Eli Zaretskii
2013-06-07 8:51 ` Eli Zaretskii
2013-06-07 9:36 ` Dmitry Gutov
2013-06-07 9:56 ` Eli Zaretskii
2013-05-19 6:48 ` Stephen Leake
2013-05-19 14:51 ` Eli Zaretskii
2013-05-21 8:31 ` Stephen Leake
2013-05-21 17:07 ` Eli Zaretskii
2013-05-21 19:36 ` Stephen Leake
2013-05-25 7:29 ` Eli Zaretskii
2013-04-19 3:05 ` Ken Brown
2013-04-19 6:35 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAH8Pv0gQ6F3saJos4seWfPMzhRpotaUiT_QUEHE4aR4UQBaW2Q@mail.gmail.com \
--to=dmoncayo@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).