Coder Social home page Coder Social logo

implicit linking to libX11 about pnmixer HOT 5 CLOSED

nicklan avatar nicklan commented on August 23, 2024
implicit linking to libX11

from pnmixer.

Comments (5)

nicklan avatar nicklan commented on August 23, 2024

Indeed (this was true of libm as well). I've updated configure.in to explicitly check for those libraries and add their linker flags.

Thanks for the report!

from pnmixer.

Viomi avatar Viomi commented on August 23, 2024

Reviving this from the dead because:

/usr/bin/ld: hotkeys.o: undefined reference to symbol 'XKeycodeToKeysym'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:357: recipe for target 'pnmixer' failed
make[2]: *** [pnmixer] Error 1
make[2]: Leaving directory '/home/user/downloads/pnmixer-0.5/src'
Makefile:449: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/user/downloads/pnmixer-0.5'
Makefile:347: recipe for target 'all' failed
make: *** [all] Error 2

Having this problem again. Was the change done to fix this problem removed?
Running debian sid.

from pnmixer.

hasufell avatar hasufell commented on August 23, 2024

https://github.com/nicklan/pnmixer/blob/master/configure.ac#L36

x11 is explicitly linked

from pnmixer.

sistematico avatar sistematico commented on August 23, 2024
lucas@caos:~/apps/pnmixer-0.5$ make
make  all-recursive
make[1]: Entering directory '/home/lucas/apps/pnmixer-0.5'
Making all in src
make[2]: Entering directory '/home/lucas/apps/pnmixer-0.5/src'
gcc -O2 -export-dynamic    -o pnmixer support.o main.o hotkeys.o alsa.o callbacks.o prefs.o -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lasound   
/usr/bin/ld: hotkeys.o: undefined reference to symbol 'XKeycodeToKeysym'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:357: recipe for target 'pnmixer' failed
make[2]: *** [pnmixer] Error 1
make[2]: Leaving directory '/home/lucas/apps/pnmixer-0.5/src'
Makefile:449: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/lucas/apps/pnmixer-0.5'
Makefile:347: recipe for target 'all' failed
make: *** [all] Error 2

lucas@caos:~/apps/pnmixer-0.5$ uname -a
Linux caos 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt7-1 (2015-03-01) x86_64 GNU/Linux

lucas@caos:~/apps/pnmixer-0.5$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description:    Debian GNU/Linux 8.0 (jessie)
Release:    8.0
Codename:   jessie

No clue...

from pnmixer.

hasufell avatar hasufell commented on August 23, 2024

@sistematico 0.5 is several years old, use latest git HEAD

from pnmixer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.