bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #66143] build of current master (c9b3c99) fails on MacOS 14.6.1


From: Sven Schober
Subject: [bug #66143] build of current master (c9b3c99) fails on MacOS 14.6.1
Date: Wed, 4 Sep 2024 14:15:17 -0400 (EDT)

Follow-up Comment #14, bug #66143 (group groff):

Hi Branden!

To answer your questions first:


grep UCHARDET_ config.status
S["UCHARDET_LIBS"]="-L/opt/homebrew/Cellar/uchardet/0.0.8/lib -luchardet"
S["UCHARDET_CFLAGS"]="-I/opt/homebrew/Cellar/uchardet/0.0.8/include/uchardet"


and


pkg-config --cflags   "uchardet"
-I/opt/homebrew/Cellar/uchardet/0.0.8/include/uchardet
pkg-config --libs   "uchardet"
-L/opt/homebrew/Cellar/uchardet/0.0.8/lib -luchardet


So, I think this is equivalent to your path, just with a different prefix.

But, in the mean time I no longer think pkg-config, or autotools is at fault
here. 

My somewhat bold claim would be, that the #include statement with a
subdirectory is simply wrong and works only accidentally on systems where
/usr/include is on the default search path.

You could check that on your system by simply removing the subdirectory from
the include in src/preproc/preconv/preconv.cpp (I execute the following
commands in my build subdir):


sed -i -e 's;uchardet/;;' ../src/preproc/preconv/preconv.cpp
make
make
/Library/Developer/CommandLineTools/usr/bin/make  all-recursive
  CXX      src/preproc/preconv/preconv-preconv.o
  CXXLD    preconv
  GROFF    doc/meintro_fr.ps


or on debian


sed -i -e 's;uchardet/;;' ../src/preproc/preconv/preconv.cpp
svenschober@debian:~/src/groff/build$ make
make  all-recursive
make[1]: Entering directory '/home/svenschober/src/groff/build'
make[2]: Entering directory '/home/svenschober/src/groff/build'
  CXX      src/preproc/preconv/preconv-preconv.o
  CXXLD    preconv
  GROFF    doc/meintro_fr.ps
make[2]: Leaving directory '/home/svenschober/src/groff/build'
make[1]: Leaving directory '/home/svenschober/src/groff/build'


Works fine on both systems, as only now the pkg-config generated includes are
heeded. What do you think? Can you reproduce this on your systems?



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66143>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]