pkgsrc-Users archive

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

Re: sysutils/pciutils build error



On Thu, Aug 03, 2023 at 12:07:32AM -0700, Paul Goyette wrote:
> gcc -O2 -fPIC    -c -o init.o init.c
> In file included from init.c:14:
> internal.h:41:40: error: expected declaration specifiers or '...' before string constant
>    41 | #define SYMBOL_VERSION(_int, _ext) asm(".symver " #_int "," #_ext)
>       |                                        ^~~~~~~~~~
> init.c:484:1: note: in expansion of macro 'SYMBOL_VERSION'
>   484 | SYMBOL_VERSION(pci_init_v30, pci_init@LIBPCI_3.0);
>       | ^~~~~~~~~~~~~~
> internal.h:41:40: error: expected declaration specifiers or '...' before string constant
>    41 | #define SYMBOL_VERSION(_int, _ext) asm(".symver " #_int "," #_ext)
>       |                                        ^~~~~~~~~~
> init.c:485:1: note: in expansion of macro 'SYMBOL_VERSION'
>   485 | SYMBOL_VERSION(pci_init_v35, pci_init@@LIBPCI_3.5);
>       | ^~~~~~~~~~~~~~
> gmake[1]: *** [<builtin>: init.o] Error 1
> gmake[1]: Leaving directory
> '/tmp/pkgs/sysutils/pciutils/work.x86_64/pciutils-3.10.0/lib'

Fixed. pciutils expects a compiler default of c99, but apparently
symbol versions are impossible to use without -std=gnu99.


Home | Main Index | Thread Index | Old Index