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:
$ rpmbuild -bb thaali.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.k76G12 + umask 022 + cd /home/maitra/rpmbuild/BUILD + cd /home/maitra/rpmbuild/BUILD + rm -rf thaali-0.4.2 + /usr/bin/bzip2 -dc /home/maitra/rpmbuild/SOURCES/thaali-0.4.2.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd thaali-0.4.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.YvXEwJ + umask 022 + cd /home/maitra/rpmbuild/BUILD + cd thaali-0.4.2 + autoreconf -if + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for x86_64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E checking for X... libraries , headers checking for gethostbyname... yes checking for connect... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands + /usr/bin/make -O -j8 /usr/bin/make all-recursive Making all in src make[2]: Entering directory '/home/maitra/rpmbuild/BUILD/thaali-0.4.2/src' gcc -DHAVE_CONFIG_H -I. -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o thaali.o thaali.c make[2]: Leaving directory '/home/maitra/rpmbuild/BUILD/thaali-0.4.2/src' make[2]: Entering directory '/home/maitra/rpmbuild/BUILD/thaali-0.4.2/src' gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -lSM -lICE -lX11 -o thaali thaali.o /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?
Many thanks and best wishes, Ranjan
On Wed, 29 May 2019 18:06:19 -0500 Ranjan Maitra maitra@email.com 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
On Wed, 29 May 2019 18:06:19 -0500 Ranjan Maitra maitra@email.com 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:
...
Ehm, excuse me, until now I looked at your specfile and also on build log better - and specfile seems me be OK. Also libraries are on gcc command line. For this moment I have no idea about problem, sorry.
Regards, Franta -- I hope the Fedora will have a better init and no binary logs
On Fri, 31 May 2019 19:05:15 +0200 Franta Hanzlík franta@hanzlici.cz wrote:
On Wed, 29 May 2019 18:06:19 -0500 Ranjan Maitra maitra@email.com 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:
...
Ehm, excuse me, until now I looked at your specfile and also on build log better - and specfile seems me be OK. Also libraries are on gcc command line. For this moment I have no idea about problem, sorry.
Thanks, Franta. I also can not figure this out. The same rpmbuild goes through without error or warning on F29 (and I am not sure if anything changed in F30 with regard to building such an rpm). Looking forward to some more advice in this situation.
Best wishes, Ranjan
On Wed, 29 May 2019 18:06:19 -0500 Ranjan Maitra maitra@email.com 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:
...
Just an idea - once I had a problem building a program when the make '-j' switch was greater than one. Specifying '-j1' solved it. Unfortunately, I don't even remember the cause or how it manifested itself...
Regards, Franta -- I hope the Fedora will have a better init and no binary logs
On Fri, 31 May 2019 19:58:04 +0200 Franta Hanzlík franta@hanzlici.cz wrote:
On Wed, 29 May 2019 18:06:19 -0500 Ranjan Maitra maitra@email.com 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:
...
Just an idea - once I had a problem building a program when the make '-j' switch was greater than one. Specifying '-j1' solved it. Unfortunately, I don't even remember the cause or how it manifested itself...
Thanks! So, I use:
%make_build
I replaced this with "make -j1" or also with "make -j" or -j or -j1 appended to %make_build.
I don't really understand this, but all of them gave errors.
Thanks again for your help!
Best wishes, Ranjan
On Fri, 2019-05-31 at 13:24 -0500, Ranjan Maitra wrote:
On Fri, 31 May 2019 19:58:04 +0200 Franta Hanzlík <franta@hanzlici.cz
wrote:
On Wed, 29 May 2019 18:06:19 -0500 Ranjan Maitra maitra@email.com 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:
...
Just an idea - once I had a problem building a program when the make '-j' switch was greater than one. Specifying '-j1' solved it. Unfortunately, I don't even remember the cause or how it manifested itself...
Thanks! So, I use:
%make_build
I replaced this with "make -j1" or also with "make -j" or -j or -j1 appended to %make_build.
I don't really understand this, but all of them gave errors.
Thanks again for your help!
Best wishes, Ranjan _______________________________________________
Hi Ranjan,
This is an upstream configure issue.
1. I took the pastebin spec file. 2. Added to spec file: BuildRequires: gcc 3. Saw spec file does a reconfigure and looked at upstream configure.ac 4. Saw it is not correct. Substitute upstream configure.ac for below.
// Start
AC_INIT(thaali, 0.4.0) AC_CONFIG_SRCDIR(src/thaali.c) AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
AC_PROG_CC AC_PATH_X AC_PATH_XTRA
dnl Are we going to enable the debugging output ?? AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Enable runtime debugging (default: no)]), debug=$enableval, debug=no)
if test "$debug" = yes; then AC_DEFINE(DEBUG,,[Enable verbose debugging output]) fi
dnl Let's do some X testing for... ;-) if test -n "$x_includes" && test "x$x_includes" != xNONE ; then CFLAGS="$CFLAGS -I$x_includes" fi if test -n "$x_libraries" && test "x$x_libraries" != xNONE ; then LDFLAGS="$LDFLAGS -L$x_libraries" fi
AC_CHECK_LIB([ICE],[IceOpenConnection],,AC_MSG_ERROR([Can't find libICE]),) AC_CHECK_LIB([SM],[SmcOpenConnection],,AC_MSG_ERROR([Can't find libSM]),) AC_CHECK_LIB([X11],[XOpenDisplay],,AC_MSG_ERROR([Can't find libX11]), -L$x_libraries $X_PRE_LIBS)
AC_SUBST(x_includes) AC_SUBST(x_libraries)
AC_OUTPUT([ Makefile src/Makefile ])
// End
Now the RPM builds fine on F30.
Note this was just a hack to get it to build and show it as an upstream issue. You can diff my changes against original configure.ac. To be honest you have some work ahead as this is all very old and out of date both upstream side and how the spec file is constructed. You will need to research to fix.
Regards
Phil
On Fri, 2019-05-31 at 20:32 +0100, Phil Wyett wrote:
On Fri, 2019-05-31 at 13:24 -0500, Ranjan Maitra wrote:
On Fri, 31 May 2019 19:58:04 +0200 Franta Hanzlík < franta@hanzlici.cz
wrote: On Wed, 29 May 2019 18:06:19 -0500 Ranjan Maitra maitra@email.com 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:
...
Just an idea - once I had a problem building a program when the make '-j' switch was greater than one. Specifying '-j1' solved it. Unfortunately, I don't even remember the cause or how it manifested itself...
Thanks! So, I use:
%make_build
I replaced this with "make -j1" or also with "make -j" or -j or -j1 appended to %make_build.
I don't really understand this, but all of them gave errors.
Thanks again for your help!
Best wishes, Ranjan _______________________________________________
Hi Ranjan,
This is an upstream configure issue.
- I took the pastebin spec file.
- Added to spec file: BuildRequires: gcc
- Saw spec file does a reconfigure and looked at upstream
configure.ac 4. Saw it is not correct. Substitute upstream configure.ac for below.
// Start
AC_INIT(thaali, 0.4.0) AC_CONFIG_SRCDIR(src/thaali.c) AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
AC_PROG_CC AC_PATH_X AC_PATH_XTRA
dnl Are we going to enable the debugging output ?? AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Enable runtime debugging (default: no)]), debug=$enableval, debug=no)
if test "$debug" = yes; then AC_DEFINE(DEBUG,,[Enable verbose debugging output]) fi
dnl Let's do some X testing for... ;-) if test -n "$x_includes" && test "x$x_includes" != xNONE ; then CFLAGS="$CFLAGS -I$x_includes" fi if test -n "$x_libraries" && test "x$x_libraries" != xNONE ; then LDFLAGS="$LDFLAGS -L$x_libraries" fi
AC_CHECK_LIB([ICE],[IceOpenConnection],,AC_MSG_ERROR([Can't find libICE]),) AC_CHECK_LIB([SM],[SmcOpenConnection],,AC_MSG_ERROR([Can't find libSM]),) AC_CHECK_LIB([X11],[XOpenDisplay],,AC_MSG_ERROR([Can't find libX11]), -L$x_libraries $X_PRE_LIBS)
AC_SUBST(x_includes) AC_SUBST(x_libraries)
AC_OUTPUT([ Makefile src/Makefile ])
// End
Now the RPM builds fine on F30.
Note this was just a hack to get it to build and show it as an upstream issue. You can diff my changes against original configure.ac. To be honest you have some work ahead as this is all very old and out of date both upstream side and how the spec file is constructed. You will need to research to fix.
Regards
Phil
Hi,
For such a small application, you would vastly simplify things with a build system like meson.
Regards
Phil
On Fri, 31 May 2019 21:58:47 +0100 Phil Wyett philwyett@kathenas.org wrote:
On Fri, 2019-05-31 at 20:32 +0100, Phil Wyett wrote:
On Fri, 2019-05-31 at 13:24 -0500, Ranjan Maitra wrote:
On Fri, 31 May 2019 19:58:04 +0200 Franta Hanzlík < franta@hanzlici.cz
wrote: On Wed, 29 May 2019 18:06:19 -0500 Ranjan Maitra maitra@email.com 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:
...
Just an idea - once I had a problem building a program when the make '-j' switch was greater than one. Specifying '-j1' solved it. Unfortunately, I don't even remember the cause or how it manifested itself...
Thanks! So, I use:
%make_build
I replaced this with "make -j1" or also with "make -j" or -j or -j1 appended to %make_build.
I don't really understand this, but all of them gave errors.
Thanks again for your help!
Best wishes, Ranjan _______________________________________________
Hi Ranjan,
This is an upstream configure issue.
- I took the pastebin spec file.
- Added to spec file: BuildRequires: gcc
- Saw spec file does a reconfigure and looked at upstream
configure.ac 4. Saw it is not correct. Substitute upstream configure.ac for below.
// Start
AC_INIT(thaali, 0.4.0) AC_CONFIG_SRCDIR(src/thaali.c) AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
AC_PROG_CC AC_PATH_X AC_PATH_XTRA
dnl Are we going to enable the debugging output ?? AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Enable runtime debugging (default: no)]), debug=$enableval, debug=no)
if test "$debug" = yes; then AC_DEFINE(DEBUG,,[Enable verbose debugging output]) fi
dnl Let's do some X testing for... ;-) if test -n "$x_includes" && test "x$x_includes" != xNONE ; then CFLAGS="$CFLAGS -I$x_includes" fi if test -n "$x_libraries" && test "x$x_libraries" != xNONE ; then LDFLAGS="$LDFLAGS -L$x_libraries" fi
AC_CHECK_LIB([ICE],[IceOpenConnection],,AC_MSG_ERROR([Can't find libICE]),) AC_CHECK_LIB([SM],[SmcOpenConnection],,AC_MSG_ERROR([Can't find libSM]),) AC_CHECK_LIB([X11],[XOpenDisplay],,AC_MSG_ERROR([Can't find libX11]), -L$x_libraries $X_PRE_LIBS)
AC_SUBST(x_includes) AC_SUBST(x_libraries)
AC_OUTPUT([ Makefile src/Makefile ])
// End
Now the RPM builds fine on F30.
Note this was just a hack to get it to build and show it as an upstream issue. You can diff my changes against original configure.ac. To be honest you have some work ahead as this is all very old and out of date both upstream side and how the spec file is constructed. You will need to research to fix.
Regards
Phil
Hi,
For such a small application, you would vastly simplify things with a build system like meson.
Thanks very much! I have no idea about meson, but I am going to look into it.
Best wishes, Ranjan
On Fri, 31 May 2019 20:32:24 +0100 Phil Wyett philwyett@kathenas.org wrote:
On Fri, 2019-05-31 at 13:24 -0500, Ranjan Maitra wrote:
On Fri, 31 May 2019 19:58:04 +0200 Franta Hanzlík <franta@hanzlici.cz
wrote:
On Wed, 29 May 2019 18:06:19 -0500 Ranjan Maitra maitra@email.com 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:
...
Just an idea - once I had a problem building a program when the make '-j' switch was greater than one. Specifying '-j1' solved it. Unfortunately, I don't even remember the cause or how it manifested itself...
Thanks! So, I use:
%make_build
I replaced this with "make -j1" or also with "make -j" or -j or -j1 appended to %make_build.
I don't really understand this, but all of them gave errors.
Thanks again for your help!
Best wishes, Ranjan _______________________________________________
Hi Ranjan,
This is an upstream configure issue.
- I took the pastebin spec file.
- Added to spec file: BuildRequires: gcc
- Saw spec file does a reconfigure and looked at upstream configure.ac
- Saw it is not correct. Substitute upstream configure.ac for below.
// Start
AC_INIT(thaali, 0.4.0) AC_CONFIG_SRCDIR(src/thaali.c) AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
AC_PROG_CC AC_PATH_X AC_PATH_XTRA
dnl Are we going to enable the debugging output ?? AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Enable runtime debugging (default: no)]), debug=$enableval, debug=no)
if test "$debug" = yes; then AC_DEFINE(DEBUG,,[Enable verbose debugging output]) fi
dnl Let's do some X testing for... ;-) if test -n "$x_includes" && test "x$x_includes" != xNONE ; then CFLAGS="$CFLAGS -I$x_includes" fi if test -n "$x_libraries" && test "x$x_libraries" != xNONE ; then LDFLAGS="$LDFLAGS -L$x_libraries" fi
AC_CHECK_LIB([ICE],[IceOpenConnection],,AC_MSG_ERROR([Can't find libICE]),) AC_CHECK_LIB([SM],[SmcOpenConnection],,AC_MSG_ERROR([Can't find libSM]),) AC_CHECK_LIB([X11],[XOpenDisplay],,AC_MSG_ERROR([Can't find libX11]), -L$x_libraries $X_PRE_LIBS)
AC_SUBST(x_includes) AC_SUBST(x_libraries)
AC_OUTPUT([ Makefile src/Makefile ])
// End
Now the RPM builds fine on F30.
Note this was just a hack to get it to build and show it as an upstream issue. You can diff my changes against original configure.ac. To be honest you have some work ahead as this is all very old and out of date both upstream side and how the spec file is constructed. You will need to research to fix.
Regards
Phil
Phil,
Thanks very much! I am also "upstream" so I can fix this. But I was thinking that since you should get the credit, would you like to do a pull request?
Yes, the file is old. It used to be something called peksystray and I took it over, "forked" it because the original authors could not be found, or would not respond to my e-mails (these were pre-github days), made it more aligned to pedantic standards and renamed it.
It does very well for its one job, that is, to be a dock for applications like NetworkManager, blueman and other applets and nothing else. I use it with openbox.
Best wishes, Ranjan
On Fri, 2019-05-31 at 22:48 -0500, Ranjan Maitra wrote:
On Fri, 31 May 2019 20:32:24 +0100 Phil Wyett <philwyett@kathenas.org
wrote:
On Fri, 2019-05-31 at 13:24 -0500, Ranjan Maitra wrote:
On Fri, 31 May 2019 19:58:04 +0200 Franta Hanzlík < franta@hanzlici.cz
wrote: On Wed, 29 May 2019 18:06:19 -0500 Ranjan Maitra maitra@email.com 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:
...
Just an idea - once I had a problem building a program when the make '-j' switch was greater than one. Specifying '-j1' solved it. Unfortunately, I don't even remember the cause or how it manifested itself...
Thanks! So, I use:
%make_build
I replaced this with "make -j1" or also with "make -j" or -j or -j1 appended to %make_build.
I don't really understand this, but all of them gave errors.
Thanks again for your help!
Best wishes, Ranjan _______________________________________________
Hi Ranjan,
This is an upstream configure issue.
- I took the pastebin spec file.
- Added to spec file: BuildRequires: gcc
- Saw spec file does a reconfigure and looked at upstream
configure.ac 4. Saw it is not correct. Substitute upstream configure.ac for below.
// Start
AC_INIT(thaali, 0.4.0) AC_CONFIG_SRCDIR(src/thaali.c) AM_INIT_AUTOMAKE
AM_CONFIG_HEADER(config.h)
AC_PROG_CC AC_PATH_X AC_PATH_XTRA
dnl Are we going to enable the debugging output ?? AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [Enable runtime debugging (default: no)]), debug=$enableval, debug=no)
if test "$debug" = yes; then AC_DEFINE(DEBUG,,[Enable verbose debugging output]) fi
dnl Let's do some X testing for... ;-) if test -n "$x_includes" && test "x$x_includes" != xNONE ; then CFLAGS="$CFLAGS -I$x_includes" fi if test -n "$x_libraries" && test "x$x_libraries" != xNONE ; then LDFLAGS="$LDFLAGS -L$x_libraries" fi
AC_CHECK_LIB([ICE],[IceOpenConnection],,AC_MSG_ERROR([Can't find libICE]),) AC_CHECK_LIB([SM],[SmcOpenConnection],,AC_MSG_ERROR([Can't find libSM]),) AC_CHECK_LIB([X11],[XOpenDisplay],,AC_MSG_ERROR([Can't find libX11]), -L$x_libraries $X_PRE_LIBS)
AC_SUBST(x_includes) AC_SUBST(x_libraries)
AC_OUTPUT([ Makefile src/Makefile ])
// End
Now the RPM builds fine on F30.
Note this was just a hack to get it to build and show it as an upstream issue. You can diff my changes against original configure.ac. To be honest you have some work ahead as this is all very old and out of date both upstream side and how the spec file is constructed. You will need to research to fix.
Regards
Phil
Phil,
Thanks very much! I am also "upstream" so I can fix this. But I was thinking that since you should get the credit, would you like to do a pull request?
Yes, the file is old. It used to be something called peksystray and I took it over, "forked" it because the original authors could not be found, or would not respond to my e-mails (these were pre-github days), made it more aligned to pedantic standards and renamed it.
It does very well for its one job, that is, to be a dock for applications like NetworkManager, blueman and other applets and nothing else. I use it with openbox.
Best wishes, Ranjan
Hi,
No credit required Ranjan. We try help each other when we can and I am only too happy to on this occasion.
Regards
Phil