* gnutls/gnutls.h: No such file or directory
@ 2011-06-20 2:13 Leo
2011-06-20 13:34 ` Ted Zlatanov
0 siblings, 1 reply; 8+ messages in thread
From: Leo @ 2011-06-20 2:13 UTC (permalink / raw
To: emacs-devel
I have gnutls installed with prefix /usr/local/unix/gnutls and emacs
trunk used to build fine on OSX with:
PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/unix/gnutls/lib/pkgconfig:/usr/local/unix/dbus/lib/pkgconfig ./configure --without-jpeg --without-gif --without-tiff
But today I am getting this error:
,----
| In file included from process.h:26,
| from dispnew.c:43:
| gnutls.h:23:27: warning: gnutls/gnutls.h: No such file or directory
| gnutls.h:24:25: warning: gnutls/x509.h: No such file or directory
| In file included from process.h:26,
| from dispnew.c:43:
| gnutls.h:61: error: expected ‘)’ before ‘state’
| gnutls.h:62: error: expected ‘)’ before ‘state’
| In file included from dispnew.c:43:
| process.h:133: error: expected specifier-qualifier-list before ‘gnutls_session_t’
| make[1]: *** [dispnew.o] Error 1
| make: *** [src] Error 2
`----
The following two lines in src/Makefile seems relevant:
,----
| LIBGNUTLS_LIBS = -L/usr/local/unix/gnutls/lib -lgnutls
| LIBGNUTLS_CFLAGS =
`----
Leo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: gnutls/gnutls.h: No such file or directory
2011-06-20 2:13 gnutls/gnutls.h: No such file or directory Leo
@ 2011-06-20 13:34 ` Ted Zlatanov
2011-06-20 14:21 ` Leo
0 siblings, 1 reply; 8+ messages in thread
From: Ted Zlatanov @ 2011-06-20 13:34 UTC (permalink / raw
To: emacs-devel
On Mon, 20 Jun 2011 10:13:22 +0800 Leo <sdl.web@gmail.com> wrote:
L> I have gnutls installed with prefix /usr/local/unix/gnutls and emacs
L> trunk used to build fine on OSX with:
L> PKG_CONFIG_PATH=/usr/X11/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/unix/gnutls/lib/pkgconfig:/usr/local/unix/dbus/lib/pkgconfig
L> ./configure --without-jpeg --without-gif --without-tiff
L> But today I am getting this error:
L> ,----
L> | In file included from process.h:26,
L> | from dispnew.c:43:
L> | gnutls.h:23:27: warning: gnutls/gnutls.h: No such file or directory
L> | gnutls.h:24:25: warning: gnutls/x509.h: No such file or directory
L> | In file included from process.h:26,
L> | from dispnew.c:43:
L> | gnutls.h:61: error: expected ‘)’ before ‘state’
L> | gnutls.h:62: error: expected ‘)’ before ‘state’
L> | In file included from dispnew.c:43:
L> | process.h:133: error: expected specifier-qualifier-list before ‘gnutls_session_t’
L> | make[1]: *** [dispnew.o] Error 1
L> | make: *** [src] Error 2
L> `----
L> The following two lines in src/Makefile seems relevant:
L> ,----
L> | LIBGNUTLS_LIBS = -L/usr/local/unix/gnutls/lib -lgnutls
L> | LIBGNUTLS_CFLAGS =
L> `----
What does `pkg-config --cflags gnutls' say on your system? If it's
blank (as the src/Makefile snippet implies), then it seems `pkg-config'
is not giving the right include path to the compiler.
Ted
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: gnutls/gnutls.h: No such file or directory
2011-06-20 13:34 ` Ted Zlatanov
@ 2011-06-20 14:21 ` Leo
2011-06-20 14:52 ` Ted Zlatanov
0 siblings, 1 reply; 8+ messages in thread
From: Leo @ 2011-06-20 14:21 UTC (permalink / raw
To: emacs-devel
On 2011-06-20 21:34 +0800, Ted Zlatanov wrote:
> What does `pkg-config --cflags gnutls' say on your system? If it's
> blank (as the src/Makefile snippet implies), then it seems `pkg-config'
> is not giving the right include path to the compiler.
I was able to build and use gnutls with zlib 1.2.3 (default in OSX) but
the gnutls.pc requires zlib like this:
Requires.private: zlib
So pkg-config --cflags gnutls gives this error:
Package zlib was not found in the pkg-config search path.
Perhaps you should add the directory containing `zlib.pc'
to the PKG_CONFIG_PATH environment variable
Package 'zlib', required by 'GnuTLS', not found
BTW, zlib.pc is not found on OSX.
Leo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: gnutls/gnutls.h: No such file or directory
2011-06-20 14:21 ` Leo
@ 2011-06-20 14:52 ` Ted Zlatanov
2011-06-21 8:59 ` Leo
0 siblings, 1 reply; 8+ messages in thread
From: Ted Zlatanov @ 2011-06-20 14:52 UTC (permalink / raw
To: emacs-devel
On Mon, 20 Jun 2011 22:21:47 +0800 Leo <sdl.web@gmail.com> wrote:
L> On 2011-06-20 21:34 +0800, Ted Zlatanov wrote:
>> What does `pkg-config --cflags gnutls' say on your system? If it's
>> blank (as the src/Makefile snippet implies), then it seems `pkg-config'
>> is not giving the right include path to the compiler.
L> I was able to build and use gnutls with zlib 1.2.3 (default in OSX) but
L> the gnutls.pc requires zlib like this:
L> Requires.private: zlib
L> So pkg-config --cflags gnutls gives this error:
L> Package zlib was not found in the pkg-config search path.
L> Perhaps you should add the directory containing `zlib.pc'
L> to the PKG_CONFIG_PATH environment variable
L> Package 'zlib', required by 'GnuTLS', not found
L> BTW, zlib.pc is not found on OSX.
It seems like the problem is with the zlib in Mac OS X then. I don't
think Emacs can work around the problem; it's probably a Mac OS X bug.
Do you know? Can you report it, if so?
You can write a custom zlib.pc and publish it on the Emacs Wiki if you
want to help other users in the same situation.
Ted
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: gnutls/gnutls.h: No such file or directory
2011-06-20 14:52 ` Ted Zlatanov
@ 2011-06-21 8:59 ` Leo
2011-06-21 11:44 ` Ted Zlatanov
0 siblings, 1 reply; 8+ messages in thread
From: Leo @ 2011-06-21 8:59 UTC (permalink / raw
To: emacs-devel
On 2011-06-20 22:52 +0800, Ted Zlatanov wrote:
> It seems like the problem is with the zlib in Mac OS X then. I don't
> think Emacs can work around the problem; it's probably a Mac OS X bug.
> Do you know? Can you report it, if so?
>
> You can write a custom zlib.pc and publish it on the Emacs Wiki if you
> want to help other users in the same situation.
>
> Ted
I have worked around this by commenting out the line: Requires.private:
zlib in gnutls.pc.
Leo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: gnutls/gnutls.h: No such file or directory
2011-06-21 8:59 ` Leo
@ 2011-06-21 11:44 ` Ted Zlatanov
2011-06-21 12:55 ` Ted Zlatanov
2011-06-21 13:03 ` Stephen J. Turnbull
0 siblings, 2 replies; 8+ messages in thread
From: Ted Zlatanov @ 2011-06-21 11:44 UTC (permalink / raw
To: emacs-devel
On Tue, 21 Jun 2011 16:59:51 +0800 Leo <sdl.web@gmail.com> wrote:
L> I have worked around this by commenting out the line: Requires.private:
L> zlib in gnutls.pc.
...so is it a bug in GnuTLS then? Meaning, is requiring zlib on MacOSX wrong?
Ted
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: gnutls/gnutls.h: No such file or directory
2011-06-21 11:44 ` Ted Zlatanov
@ 2011-06-21 12:55 ` Ted Zlatanov
2011-06-21 13:03 ` Stephen J. Turnbull
1 sibling, 0 replies; 8+ messages in thread
From: Ted Zlatanov @ 2011-06-21 12:55 UTC (permalink / raw
To: emacs-devel
On Tue, 21 Jun 2011 06:44:41 -0500 Ted Zlatanov <tzz@lifelogs.com> wrote:
TZ> On Tue, 21 Jun 2011 16:59:51 +0800 Leo <sdl.web@gmail.com> wrote:
L> I have worked around this by commenting out the line: Requires.private:
L> zlib in gnutls.pc.
TZ> ...so is it a bug in GnuTLS then? Meaning, is requiring zlib on MacOSX wrong?
I see you started a discussion on gnutls-devel already. Thanks :)
Ted
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: gnutls/gnutls.h: No such file or directory
2011-06-21 11:44 ` Ted Zlatanov
2011-06-21 12:55 ` Ted Zlatanov
@ 2011-06-21 13:03 ` Stephen J. Turnbull
1 sibling, 0 replies; 8+ messages in thread
From: Stephen J. Turnbull @ 2011-06-21 13:03 UTC (permalink / raw
To: emacs-devel
Ted Zlatanov writes:
> On Tue, 21 Jun 2011 16:59:51 +0800 Leo <sdl.web@gmail.com> wrote:
>
> L> I have worked around this by commenting out the line: Requires.private:
> L> zlib in gnutls.pc.
>
> ...so is it a bug in GnuTLS then? Meaning, is requiring zlib on MacOSX wrong?
AFAICS, the problem is that assuming that common libraries will be
known to pkgconfig is bogus on MacOSX. In the case in point, on
MacOSX, libz is a system library in /usr/lib, and there will be no
zlib.pc provided, so pkgconfig will get confused. OTOH, if you have
the MacPorts version of libz installed, there will be a proper zlib.pc
installed in /opt/local/lib/pkgconfig, and it will all just work.
Presumably this also works if you have a private build in /usr/local
too.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-06-21 13:03 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-20 2:13 gnutls/gnutls.h: No such file or directory Leo
2011-06-20 13:34 ` Ted Zlatanov
2011-06-20 14:21 ` Leo
2011-06-20 14:52 ` Ted Zlatanov
2011-06-21 8:59 ` Leo
2011-06-21 11:44 ` Ted Zlatanov
2011-06-21 12:55 ` Ted Zlatanov
2011-06-21 13:03 ` Stephen J. Turnbull
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.