On Wed, 29 May 2019 18:06:19 -0500 Ranjan Maitra <maitra@xxxxxxxxx> wrote: > Hi, > > I have the following specfile which compiled fine in F29 but is not able to find references to standard functions in X11, etc even though the compilation happens without error (outside the rpmbuild environment). So I am wondering if anyone has some suggestions on what has changed/is going wrong. > > Here is the spec file: > > $ fpaste thaali.spec > Uploading (1.4KiB)... > https://paste.fedoraproject.org/paste/3sHHnOdGoM4YHmdzzJRzgQ > > > And here are the messages that I get when I try to build: >... > /bin/ld: thaali.o: in function `delete_dock': > /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:231: undefined reference to `XDestroyWindow' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:232: undefined reference to `XDestroyWindow' > /bin/ld: thaali.o: in function `create_dock': > /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:268: undefined reference to `XCreateSimpleWindow' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:271: undefined reference to `XCreateSimpleWindow' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:274: undefined reference to `XAllocClassHint' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:281: undefined reference to `XSetClassHint' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:282: undefined reference to `XFree' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:284: undefined reference to `XAllocWMHints' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:294: undefined reference to `XSetWMHints' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:295: undefined reference to `XFree' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:297: undefined reference to `XSetWindowBackgroundPixmap' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:327: undefined reference to `XSelectInput' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:328: undefined reference to `XMapRaised' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:329: undefined reference to `XFlush' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:301: undefined reference to `XInternAtom' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:302: undefined reference to `XSetSelectionOwner' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:304: undefined reference to `XGetSelectionOwner' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:310: undefined reference to `XInternAtom' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:319: undefined reference to `XSendEvent' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:321: undefined reference to `XInternAtom' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:322: undefined reference to `XInternAtom' > /bin/ld: thaali.o: in function `add_icon': > /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:385: undefined reference to `XReparentWindow' > /bin/ld: thaali.o: in function `add_tray_icon': > /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:455: undefined reference to `XSelectInput' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:456: undefined reference to `XWithdrawWindow' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:460: undefined reference to `XSync' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:461: undefined reference to `XMapRaised' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:464: undefined reference to `XInternAtom' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:471: undefined reference to `XSendEvent' > /bin/ld: thaali.o: in function `configure_tray_icon_attrib': > /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:499: undefined reference to `XGetWindowAttributes' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:516: undefined reference to `XMoveResizeWindow' > /bin/ld: thaali.o: in function `handle_event': > /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:530: undefined reference to `XGetWindowAttributes' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:537: undefined reference to `XResizeWindow' > /bin/ld: thaali.o: in function `eventLoop': > /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:566: undefined reference to `XNextEvent' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:602: undefined reference to `XGetSelectionOwner' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:603: undefined reference to `XSetSelectionOwner' > /bin/ld: thaali.o: in function `main': > /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:620: undefined reference to `XOpenDisplay' > /bin/ld: /home/maitra/rpmbuild/BUILD/thaali-0.4.2/src/thaali.c:631: undefined reference to `XCloseDisplay' > collect2: error: ld returned 1 exit status > make[2]: *** [Makefile:335: thaali] Error 1 > make[2]: Leaving directory '/home/maitra/rpmbuild/BUILD/thaali-0.4.2/src' > make[1]: *** [Makefile:357: all-recursive] Error 1 > make: *** [Makefile:298: all] Error 2 > error: Bad exit status from /var/tmp/rpm-tmp.YvXEwJ (%build) > > > RPM build errors: > Bad exit status from /var/tmp/rpm-tmp.YvXEwJ (%build) > > What is going wrong? These symbols symbols come from the X11 library - You should have in spec file items: Requires: libX11 BuildRequires: libX11-devel -- Regards, Franta I hope the Fedora will have a better init and no binary logs _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx