all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#73255: 30.0.91; on NetBSD-10 configure script run halts
@ 2024-09-14 19:01 Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2024-09-15  5:06 ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-09-14 19:01 UTC (permalink / raw)
  To: 73255

[-- Attachment #1: Type: text/plain, Size: 1757 bytes --]


Hello,

I was able to build emacs-29.4 but 30.0.91 stops at the configure
script.

The following packages are on the amd64/x86_64 NetBSD 10.0_STABLE
system

cairo-1.18.0nb2 =    Vector graphics library with cross-device output support
gnutls-3.8.5nb3 =    Transport Layer Security library

A snippet of the output from configure reads

  checking for cairo >= 1.8.0... no
  configure: WARNING: cairo requested but not found.

  configure: error: The following required libraries were not found:
       gnutls

This is how I call configure from the build directory in a file called configure-here

../30.0.91/configure --srcdir=/u/xxx/src/emacs/30.0.91 --localstatedir=/var --disable-autodepend --with-native-compilation --without-ns --without-rsvg --without-imagemagick --without-xaw3d --without-toolkit-scroll-bars --x-includes=/usr/X11R7/include --x-libraries=/usr/X11R7/lib --with-x-toolkit=lu --prefix=/usr/local --build=x86_64--netbsd --host=x86_64--netbsd --infodir=/usr/pkg/info --mandir=/usr/pkg/man --enable-option-checking=yes 'CFLAGS=-O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include -I/usr/pkg/include/harfbuzz -I/usr/X11R7/include/libdrm' 'CPPFLAGS=-DTERMINFO -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include -I/usr/pkg/include/harfbuzz -I/usr/X11R7/include/libdrm' 'LDFLAGS=-Wl,-R/usr/pkg/gcc13/lib -Wl,-zrelro -L/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib'

Attached is the run trail left from the script


[-- Attachment #2: configure script run --]
[-- Type: application/octet-stream, Size: 9655 bytes --]

  1 ~/src/emacs/build-30 $ . ./configure-here 
  2 checking for xcrun... no
  3 checking for GNU Make... gmake
  4 checking build system type... x86_64--netbsd
  5 checking host system type... x86_64--netbsd
  6 checking for x86_64--netbsd-gcc... x86_64--netbsd-gcc
  7 checking whether the C compiler works... yes
  8 checking for C compiler default output file name... a.out
  9 checking for suffix of executables... 
 10 checking whether we are cross compiling... no
 11 checking for suffix of object files... o
 12 checking whether the compiler supports GNU C... yes
 13 checking whether x86_64--netbsd-gcc accepts -g... yes
 14 checking for x86_64--netbsd-gcc option to enable C11 features... none needed
 15 checking whether the compiler is clang... no
 16 checking for compiler option needed when checking for declarations... none
 17 checking whether x86_64--netbsd-gcc and cc understand -c and -o together... yes
 18 checking for stdio.h... yes
 19 checking for stdlib.h... yes
 20 checking for string.h... yes
 21 checking for inttypes.h... yes
 22 checking for stdint.h... yes
 23 checking for strings.h... yes
 24 checking for sys/stat.h... yes
 25 checking for sys/types.h... yes
 26 checking for unistd.h... yes
 27 checking for wchar.h... yes
 28 checking for minix/config.h... no
 29 checking for linux/fs.h... no
 30 checking for malloc.h... yes
 31 checking for sys/systeminfo.h... no
 32 checking for sys/sysinfo.h... no
 33 checking for coff.h... no
 34 checking for pty.h... no
 35 checking for sys/resource.h... yes
 36 checking for sys/utsname.h... yes
 37 checking for pwd.h... yes
 38 checking for util.h... yes
 39 checking for sanitizer/lsan_interface.h... no
 40 checking for sanitizer/asan_interface.h... no
 41 checking for sanitizer/common_interface_defs.h... no
 42 checking for sys/socket.h... yes
 43 checking for sys/param.h... yes
 44 checking for pthread.h... yes
 45 checking for malloc/malloc.h... no
 46 checking for sys/un.h... yes
 47 checking for vfork.h... no
 48 checking for utmp.h... yes
 49 checking for utmpx.h... yes
 50 checking for OS.h... no
 51 checking for byteswap.h... no
 52 checking for dirent.h... yes
 53 checking for execinfo.h... yes
 54 checking for linux/xattr.h... no
 55 checking for stdio_ext.h... no
 56 checking for sys/vfs.h... no
 57 checking for sys/fs_types.h... no
 58 checking for getopt.h... yes
 59 checking for sys/time.h... yes
 60 checking for ieee754.h... no
 61 checking for limits.h... yes
 62 checking for sys/select.h... yes
 63 checking for stdbit.h... no
 64 checking for stdbool.h... yes
 65 checking for stdckdint.h... no
 66 checking for sys/random.h... yes
 67 checking for endian.h... yes
 68 checking whether it is safe to define __EXTENSIONS__... yes
 69 checking whether _XOPEN_SOURCE should be defined... no
 70 checking how to run the C preprocessor... x86_64--netbsd-gcc -E
 71 checking for egrep -e... /usr/bin/grep -E
 72 checking for Minix Amsterdam compiler... no
 73 checking for x86_64--netbsd-ar... no
 74 checking for ar... ar
 75 checking for x86_64--netbsd-ranlib... no
 76 checking for ranlib... ranlib
 77 checking for -DTERMINFO -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include -I/usr/pkg/include/harfbuzz -I/usr/X11R7/include/libdrm option for large files... none needed
 78 checking for -DTERMINFO -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include -I/usr/pkg/include/harfbuzz -I/usr/X11R7/include/libdrm option for timestamps after 2038... none needed
 79 checking whether the compiler is clang... no
 80 checking whether C compiler handles -Werror -Wunknown-warning-option... no
 81 checking for a BSD-compatible install... /usr/bin/install -c
 82 checking command to symlink files in the same directory... ln -s
 83 checking for install-info... /usr/pkg/bin/install-info
 84 checking for gzip... /usr/bin/gzip
 85 checking for 'find' args to delete a file... -delete
 86 checking for brew... no
 87 checking for -znocombreloc... not needed
 88 checking whether addresses are sanitized... no
 89 checking for math library... -lm
 90 checking for x86_64--netbsd-pkg-config... no
 91 checking for pkg-config... /usr/local/bin/pkg-config
 92 checking pkg-config is at least version 0.9.0... yes
 93 checking for machine/soundcard.h... no
 94 checking for sys/soundcard.h... yes
 95 checking for soundcard.h... yes
 96 checking for mmsystem.h... no
 97 checking for _oss_ioctl in -lossaudio... yes
 98 checking for ADDR_NO_RANDOMIZE... no
 99 checking for sys/wait.h that is POSIX.1 compatible... yes
100 checking for net/if.h... yes
101 checking for ifaddrs.h... yes
102 checking for net/if_dl.h... yes
103 checking for struct ifreq.ifr_flags... yes
104 checking for struct ifreq.ifr_hwaddr... no
105 checking for struct ifreq.ifr_netmask... no
106 checking for struct ifreq.ifr_broadaddr... yes
107 checking for struct ifreq.ifr_addr... yes
108 checking for struct ifreq.ifr_addr.sa_len... yes
109 checking for x86_64--netbsd-gcc options needed to detect all undeclared functions... none needed
110 checking for struct passwd.pw_gecos... yes
111 checking for X... libraries /usr/X11R7/lib, headers /usr/X11R7/include
112 checking whether malloc is Doug Lea style... no
113 checking for sbrk... yes
114 checking for getpagesize... yes
115 checking for __lsan_ignore_object... no
116 checking for fork... yes
117 checking for vfork... yes
118 checking for fchmod... yes
119 checking for utmpname... yes
120 checking for utmpxname... yes
121 checking for canonicalize_file_name... no
122 checking for realpath... yes
123 checking for lstat... yes
124 checking for fchmodat... yes
125 checking for lchmod... yes
126 checking for fcntl... yes
127 checking for fdopendir... yes
128 checking for listxattr... yes
129 checking for fstatat... yes
130 checking for fsync... yes
131 checking for gettimeofday... yes
132 checking for memset_s... no
133 checking for pselect... yes
134 checking for pthread_sigmask... no
135 checking for readlink... yes
136 checking for isblank... yes
137 checking for iswctype... yes
138 checking for strtoimax... yes
139 checking for symlink... yes
140 checking for localtime_r... yes
141 checking for getdtablesize... yes
142 checking for working mmap... yes
143 checking for main in -lXbsd... no
144 checking for pthread library... -lpthread
145 checking for thread support... yes
146 checking for Xkb... yes
147 checking for XkbRefreshKeyboardMapping... yes
148 checking for XkbFreeNames... yes
149 checking for XrmSetDatabase... yes
150 checking for XScreenResourceString... yes
151 checking for XScreenNumberOfScreen... yes
152 checking for XDisplayCells... yes
153 checking for XDestroySubwindows... yes
154 checking X11 version 6... 6 or newer
155 checking for XICCallback.callback... yes
156 checking for libwebpdemux >= 0.6.0... no
157 checking for WebPGetInfo... no
158 checking for libwebpdemux >= 0.6.0 libwebpdecoder >= 0.6.0... no
159 checking for sqlite3_open_v2 in -lsqlite3... yes
160 checking for sqlite3_load_extension in -lsqlite3... yes
161 checking for getaddrinfo_a in -lanl... no
162 checking for malloc_trim... no
163 checking for dbus-1 >= 1.0... no
164 checking for gio-2.0 >= 2.26... no
165 checking for gconf-2.0 >= 2.13... no
166 checking for lgetfilecon in -lselinux... no
167 checking for gnutls >= 2.12.2... no
168 checking for libsystemd >= 222... no
169 checking for tree-sitter >= 0.20.2... no
170 checking for tree-sitter >= 0.6.3... no
171 checking for sys/inotify.h... no
172 checking for libkqueue... no
173 checking for library containing kqueue... none required
174 checking for xaw3d... no
175 checking for libXaw... yes; using Lucid toolkit
176 checking X11 toolkit version... 6 or newer
177 checking for library containing XmuConvertStandardSelection... -lXmu
178 checking for XRenderQueryExtension in -lXrender... yes
179 checking for cairo >= 1.8.0... no
180 configure: WARNING: cairo requested but not found.
181 checking for fontconfig >= 2.2.0... yes
182 checking for xft >= 0.13.0... yes
183 checking for X11/Xft/Xft.h... yes
184 checking for XftFontOpen in -lXft... yes
185 checking for freetype2... yes
186 checking for FT_Face_GetCharVariantIndex... yes
187 checking for libotf... no
188 checking for harfbuzz >= 0.9.42... no
189 checking for X11/Xlib-xcb.h... yes
190 checking for xcb_translate_coordinates in -lxcb... yes
191 checking for XGetXCBConnection in -lX11-xcb... yes
192 checking for X11/xpm.h... yes
193 checking for XpmReadFileToPixmap in -lXpm... yes
194 checking for XpmReturnAllocPixels preprocessor define... yes
195 checking for jpeglib 6b or later... -ljpeg
196 checking for lcms2... no
197 checking for library containing inflateEnd... none required
198 checking for dlopen... yes
199 checking for dladdr... yes
200 checking for dlfunc... no
201 checking for gcc_jit_context_acquire in -lgccjit... yes
202 checking for libgccjit.h... yes
203 checking for libpng >= 1.0.0... no
204 checking for libpng not configured by pkg-config... yes
205 checking whether png_longjmp is declared... yes
206 checking for tiffio.h... yes
207 checking for TIFFGetVersion in -ltiff... yes
208 checking for gif_lib.h... yes
209 checking for GifMakeMapObject in -lgif... yes
210 configure: error: The following required libraries were not found:
211      gnutls
212 Maybe some development libraries/packages are missing?
213 To build anyway, give:
214      --with-gnutls=ifavailable
215 as options to configure

[-- Attachment #3: Type: text/plain, Size: 28 bytes --]


Thanks in advance.

-- 
vl

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#73255: 30.0.91; on NetBSD-10 configure script run halts
  2024-09-14 19:01 Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2024-09-15  5:06 ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2024-09-15  5:06 UTC (permalink / raw)
  To: Van Ly; +Cc: 73255

> Date: Sat, 14 Sep 2024 19:01:21 +0000
> From:  Van Ly via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> I was able to build emacs-29.4 but 30.0.91 stops at the configure
> script.
> 
> The following packages are on the amd64/x86_64 NetBSD 10.0_STABLE
> system
> 
> cairo-1.18.0nb2 =    Vector graphics library with cross-device output support
> gnutls-3.8.5nb3 =    Transport Layer Security library
> 
> A snippet of the output from configure reads
> 
>   checking for cairo >= 1.8.0... no
>   configure: WARNING: cairo requested but not found.
> 
>   configure: error: The following required libraries were not found:
>        gnutls

That's the reason, right there: the configure script decided it
couldn't find GnuTLS installed whose version is at least 2.12.2:

> 167 checking for gnutls >= 2.12.2... no

AFAICT, Emacs 29.4 was making the same test, so there's some other
factor here at work.  Did something change wrt GnuTLS between the time
you built Emacs 29.4 and the time you tried to build 30.0.91?  Are you
sure you have the header files needed for developing programs with
GnuTLS?

In any case, please post config.log which was created by running the
configure script, it should tell the details regarding the failed
test.

> 210 configure: error: The following required libraries were not found:
> 211      gnutls
> 212 Maybe some development libraries/packages are missing?
> 213 To build anyway, give:
> 214      --with-gnutls=ifavailable
> 215 as options to configure

And if worse comes to worst, you can always use the above advice
(although building Emacs without GnuTLS is not recommended).





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#73255: 30.0.91; on NetBSD-10 configure script run halts
       [not found] <dcscyl5o2c7.fsf@sdf.org>
@ 2024-09-15  7:14 ` Eli Zaretskii
  2024-09-15 10:22   ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2024-09-15  7:14 UTC (permalink / raw)
  To: Van Ly; +Cc: 73255

> From: Van Ly <van.ly@sdf.org>
> Cc: 73255@debbugs.gnu.org
> Date: Sun, 15 Sep 2024 06:31:04 +0000
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >>   configure: error: The following required libraries were not found:
> >>        gnutls
> >
> > That's the reason, right there: the configure script decided it
> > couldn't find GnuTLS installed whose version is at least 2.12.2:
> >
> >> 167 checking for gnutls >= 2.12.2... no
> >
> > AFAICT, Emacs 29.4 was making the same test, so there's some other
> > factor here at work.  Did something change wrt GnuTLS between the time
> > you built Emacs 29.4 and the time you tried to build 30.0.91?  Are you
> > sure you have the header files needed for developing programs with
> > GnuTLS?
> >
> 
> The pkgsrc manager refreshed the quarterly release so that may explain.

Probably.  But I'd need to see the contents of your gnutls.pc file to
know for sure.

> As attached, the pkg-content listing shows header files.
> 
> > In any case, please post config.log which was created by running the
> > configure script, it should tell the details regarding the failed
> > test.
> >
> 
> See attached config.log for 29.4 and 30.0.91. The earlier version
> config.log locates the cairo package related paths and I was able to
> make that work on 30.0.91

Here's the difference:

 Emacs 29.4:

> configure:15995: checking for gnutls >= 2.12.2
> configure:16002: $PKG_CONFIG --exists --print-errors "gnutls >= 2.12.2"
> configure:16005: $? = 0
> configure:16019: $PKG_CONFIG --exists --print-errors "gnutls >= 2.12.2"
> configure:16022: $? = 0
> configure:16060: result: yes
                   ^^^^^^^^^^^
  It succeds.  By contrast, Emacs 30:

> configure:20577: checking for gnutls >= 2.12.2
> configure:20584: $PKG_CONFIG --exists --print-errors "gnutls >= 2.12.2"
> Package gnutls was not found in the pkg-config search path.
> Perhaps you should add the directory containing `gnutls.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'gnutls' not found
> configure:20587: $? = 1
> configure:20601: $PKG_CONFIG --exists --print-errors "gnutls >= 2.12.2"
> Package gnutls was not found in the pkg-config search path.
> Perhaps you should add the directory containing `gnutls.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'gnutls' not found
  ^^^^^^^^^^^^^^^^^^^^^^^^^^

  It fails.

The pkg-content listing shows the gnutls.pc file:

    59 /usr/pkg/lib/pkgconfig/gnutls.pc

But it looks like this file is not in the directory where pkg-config
looks.  So, as the configure script says, "Perhaps you should add the
directory containing `gnutls.pc' to the PKG_CONFIG_PATH environment
variable".  Or maybe the file is there, but its contents is wrong or
corrupted or something.  Or maybe you installed a new version of
pkg-config, and that looks in different places.

In any case, you should make sure that the command

  $ pkg-config --exists --print-errors "gnutls >= 2.12.2"

exits with zero status and no error messages.

Bottom line: this seems to be a problem with your system
configuration.





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#73255: 30.0.91; on NetBSD-10 configure script run halts
  2024-09-15  7:14 ` bug#73255: 30.0.91; on NetBSD-10 configure script run halts Eli Zaretskii
@ 2024-09-15 10:22   ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 4+ messages in thread
From: Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2024-09-15 10:22 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 73255


Eli Zaretskii <eliz@gnu.org> writes:

>> From: Van Ly <van.ly@sdf.org>
>> Cc: 73255@debbugs.gnu.org
>> Date: Sun, 15 Sep 2024 06:31:04 +0000
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> >>   configure: error: The following required libraries were not found:
>> >>        gnutls
>> >
>> > That's the reason, right there: the configure script decided it
>> > couldn't find GnuTLS installed whose version is at least 2.12.2:
>> >
>> >> 167 checking for gnutls >= 2.12.2... no
>> >
>> > AFAICT, Emacs 29.4 was making the same test, so there's some other
>> > factor here at work.  Did something change wrt GnuTLS between the time
>> > you built Emacs 29.4 and the time you tried to build 30.0.91?  Are you
>> > sure you have the header files needed for developing programs with
>> > GnuTLS?
>> >
>> 
>> The pkgsrc manager refreshed the quarterly release so that may explain.
>
> Probably.  But I'd need to see the contents of your gnutls.pc file to
> know for sure.
>
>> As attached, the pkg-content listing shows header files.
>> 
>> > In any case, please post config.log which was created by running the
>> > configure script, it should tell the details regarding the failed
>> > test.
>> >
>> 
>> See attached config.log for 29.4 and 30.0.91. The earlier version
>> config.log locates the cairo package related paths and I was able to
>> make that work on 30.0.91
>
> Here's the difference:
>
>  Emacs 29.4:
>
>> configure:15995: checking for gnutls >= 2.12.2
>> configure:16002: $PKG_CONFIG --exists --print-errors "gnutls >= 2.12.2"
>> configure:16005: $? = 0
>> configure:16019: $PKG_CONFIG --exists --print-errors "gnutls >= 2.12.2"
>> configure:16022: $? = 0
>> configure:16060: result: yes
>                    ^^^^^^^^^^^
>   It succeds.  By contrast, Emacs 30:
>
>> configure:20577: checking for gnutls >= 2.12.2
>> configure:20584: $PKG_CONFIG --exists --print-errors "gnutls >= 2.12.2"
>> Package gnutls was not found in the pkg-config search path.
>> Perhaps you should add the directory containing `gnutls.pc'
>> to the PKG_CONFIG_PATH environment variable
>> Package 'gnutls' not found
>> configure:20587: $? = 1
>> configure:20601: $PKG_CONFIG --exists --print-errors "gnutls >= 2.12.2"
>> Package gnutls was not found in the pkg-config search path.
>> Perhaps you should add the directory containing `gnutls.pc'
>> to the PKG_CONFIG_PATH environment variable
>> Package 'gnutls' not found
>   ^^^^^^^^^^^^^^^^^^^^^^^^^^
>
>   It fails.
>
> The pkg-content listing shows the gnutls.pc file:
>
>     59 /usr/pkg/lib/pkgconfig/gnutls.pc
>
> But it looks like this file is not in the directory where pkg-config
> looks.  So, as the configure script says, "Perhaps you should add the
> directory containing `gnutls.pc' to the PKG_CONFIG_PATH environment
> variable".  Or maybe the file is there, but its contents is wrong or
> corrupted or something.  Or maybe you installed a new version of
> pkg-config, and that looks in different places.
>
> In any case, you should make sure that the command
>
>   $ pkg-config --exists --print-errors "gnutls >= 2.12.2"
>
> exits with zero status and no error messages.
>
> Bottom line: this seems to be a problem with your system
> configuration.
>

Good catch !!!

Thanks for getting to the bottom of this.  Possible cause is the pkgsrc
config state is messed up.  I get to the end of the configure script run
using

  env PKG_CONFIG_PATH=/usr/pkg/lib/pkgconfig ../30.0.91/configure

and make completes. I'll next time try harder to read the config.log

On the pretest announcement the keyserver pgp.mit.edu works where
keys.openpgp.org fails for verifying the sigfile, btw.

-- 
vl





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-09-15 10:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <dcscyl5o2c7.fsf@sdf.org>
2024-09-15  7:14 ` bug#73255: 30.0.91; on NetBSD-10 configure script run halts Eli Zaretskii
2024-09-15 10:22   ` Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-14 19:01 Van Ly via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-15  5:06 ` Eli Zaretskii

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.