Skip to contentSkip to conversation

alsa-lib 1.2.5 and 1.2.5.1 fail to build with --enable-static

DISCUSSION GitHub issues - opened 1 participant 1 message Sep 5, 2021 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

alsa-project/alsa-lib issue #177 was opened from pjbroad:

This build successfully:

```
./configure  && make clean && make
```

This fails to build:

```
./configure --enable-shared=no --enable-static=yes && make clean && make

make[1]: Entering directory '/home/paul/el/el-build-scripts/linux-static/libs/alsa-lib-1.2.5.1/aserver'
  CC       aserver.o
  CCLD     aserver
/usr/bin/ld: ../src/.libs/libasound.a(control_symbols.o):(.data.rel+0x8): undefined reference to `_snd_module_control_empty'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:398: aserver] Error 1
make[1]: Leaving directory '/home/paul/el/el-build-scripts/linux-static/libs/alsa-lib-1.2.5.1/aserver'
make: *** [Makefile:405: all-recursive] Error 1
```

Building static worked find for 1.2.4. Hopefully someone can help resolve this. Let me know if you want me to try anything.

Issue URL : https://github.com/alsa-project/alsa-lib/issues/177
Repository URL: https://github.com/alsa-project/alsa-lib