Questions tagged [gnulib]

Gnulib is a central location for common GNU code, intended to be shared among GNU packages. GCC has libiberty, but this is hard to disentangle from the GCC build tree.

17 questions
9
votes
1 answer

Cross-compile a gnulib based project to MinGW

I am trying to cross-compile this project to MinGW. The project uses autotools as the build system, and depends on libcurl, CUnit, Jansson and some gnulib modules. I have all the dependancies compiled for x86_64-w64-mingw32 and installed under…
Abdelhakim AKODADI
  • 1,556
  • 14
  • 22
6
votes
1 answer

Getting started with gnulib on MinGW and not familiar (enough) with autotools

I've got some C code that was written for Linux and relies on sockets and arpa/inet.h as well as libusb.h and I want to compile this for Windows under MinGW. (Note that the current project just has a very simple Makefile and doesn't rely on…
aneccodeal
  • 8,531
  • 7
  • 45
  • 74
2
votes
1 answer

libpipeline fails to compile on Mac OS X

I am trying to build libpipeline on Mac OS X, but I am getting errors that I have not encountered with other programs that use autotools. This is the first error I get: /Developer/usr/bin/ranlib: file: .libs/libgnu.a(sig-handler.o) has no…
ahyattdev
  • 529
  • 1
  • 6
  • 18
1
vote
1 answer

Can't step into function when debugging the source code of grep

I am attempting to learn the source code of grep by building it according to the README-hacking. However, when debugging the source code, I am unable to step into the re_compile_pattern function. The gdb mentions that the function links to…
wuch
  • 13
  • 3
1
vote
2 answers

port gnulib fseeko.c to your platform while building the Alexa Auto SDK on Ubuntu 20.04

Building Alexa Auto SDK https://github.com/alexa/alexa-auto-sdk/blob/3.2/builder/README.md Using Ubuntu 20.04 (I've no more 18.04) I run with ./builder/build.sh android -t androidx86-64 --android-api 28 into | ../../m4-1.4.18/lib/freadahead.c: In…
hannes ach
  • 16,247
  • 7
  • 61
  • 84
1
vote
1 answer

Why does the following error occurs when I gmake to build ratpoison on x86 Solaris 10 with gcc 3.4.3

Why does the following error occurs when I gmake to build ratpoison on x86 Solaris 10 with gcc 3.4.3 Undefined first referenced symbol in file strcasestr completions.o ld: fatal: symbol referencing errors. No output written to…
Bishnu
  • 177
  • 1
  • 10
1
vote
2 answers

autoconf: how do I substitute the library prefix?

CLISP's interface to PARI is configured with the configure.in containing AC_LIB_LINKFLAGS([pari]) from lib-link.m4. The build process also requires the Makefile to know where the datadir of PARI is located. To this end, Makefile.in has prefix =…
sds
  • 58,617
  • 29
  • 161
  • 278
1
vote
2 answers

How do I determine what to import using gnulib-tool

autoscan produced a series of function checks (AC_FUNC_* and AC_CHECK_FUNCS), and AC_CHECK_HEADERS. Now I need to pull in gnulib code. Do I just try to import every function and header that autoscan identified? Half of them don't show up in the…
John Frickson
  • 179
  • 1
  • 3
  • 16
1
vote
1 answer

Possible to obtain netinet/in.h using gnulib-tool?

I sort of ended up in the same problem as Getting started with gnulib on MinGW and not familiar (enough) with autotools - that is, wanting to include headers like netinet/in.h in a MinGW Windows project; and that is where I first heard of gnulib. As…
sdaau
  • 36,975
  • 46
  • 198
  • 278
0
votes
1 answer

How to install sigsegv glibc module

I am trying to trap a segmentation fault and the old LD_PRELOAD approach has been deprecated in 2022 (https://www.marcusfolkesson.se/blog/libsegfault/) I was reading about this new contribution sigsegv and would like to use it. However I am unable…
Bryon
  • 939
  • 13
  • 25
0
votes
1 answer

How to modify gnulib-tool megatestdir and add additional gnulib module there?

Ok, so from some folder, I do: /path/to/gnulib-tool --create-megatestdir --without-tests --dir=gnulib fts argp fstatat obstack After quite a bit of waiting, I eventually get this (possibly without the .o files): $ ls gnulib/ ALL/ build-aux/ fts/…
sdbbs
  • 4,270
  • 5
  • 32
  • 87
0
votes
1 answer

Is GNU libraries able to link to dynamic MSVC runtime using autoconf build system when relying on gnulib?

My goal is to understand a GNU libraries autoconf build system. I am aware that libiconv can be build successfully using a crafted MS Visual Studio project with manully added source code files. So the question is more academical rather than…
Sergey
  • 13
  • 2
0
votes
1 answer

Why could the following library function make a call to a nonstatic member fuction without create an object?

pb_ds ( and 4 other headers) is a GNU C++ library for some data structures(e.g. red black tree). And I encountered the code of applying update when the tree is modified: PB_DS_CLASS_T_DEC template
li yixiao
  • 59
  • 4
0
votes
1 answer

C includes: where is last_component defined?

See below logic from wget source code. Where is last_component defined? I presume this is either a GNU include or buried somewhere in the standard C includes. But I can't seem to locate it. Thx. char * get_metalink_basename (char *name) { int…
Kode Charlie
  • 1,297
  • 16
  • 32
0
votes
1 answer

Gnulib config.h missing error

I'm trying to port libisofs to Windows. My environment is MSYS2 with mingw-w64-i686 toolchain installed. I've used gnulib for missing headers with gnulib-tool --import command: $ ../gnulib/gnulib-tool --import fnmatch I've done all steps in…
PASAf
  • 115
  • 1
  • 7
1
2