SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Ahh, just the sort of problem I hate debugging. I did though. Don't know about your machine, but on mine it took around 4 hours to get to the failure point! And it failed in exactly the same spot. So, I went into the already unpacked, configured and partially compiled sources and started from there. Even after re-configuring (without 'make clean') I was still getting the same error. So then I went into the indicated directory and found that the named file didn't exist, rather it had the name 'newdynamicpropertydialog.u' instead of 'newdynamicpropertydialog.ui'. So, then I ran make again and the same sort of thing happened except in other directories. Some other *.h files had the name with the 'h' suffix, some *.cpp files were named *.cp.
So, then I unpacked the sources freshly using the regular Slackware tar program. No problems -all files correct. Then I tried again using the static tar-1.13 that src2pkg uses -corruption again. So, the problem is with the tar program which src2pkg is using, although it may be an 'iffy' archive that is contributing to the problem. I say that because it always seems to be the same files which don't get named correctly.
So, I'll have to do something about fixing this for the upcoming release of src2pkg. I had already looked at using different versions of tar before -but it isn't so simple as just use the latest. There are very specific reasons that PatV uses tar-1.13 -having to do with the way archives(Slack packages) get unpacked (by installpkg) and the way they are created (by makepkg). And the following version go through a transition period where the syntax varies from one (tar) release to another. I spent a godd couple of weeks testing and documenting the problems and varying behaviour, so at least I don't have to start over completely in the dark.
And as far as the situation you have found the answer and solution aren't hard to deal with -the unpacking of source archives doesn't have to be handled with such 'kid-gloves' treatment.
So, here's a quick fix for you until I get the next version of src2pkg out:
Open the file /usr/libexec/src2pkg/FUNCTIONS in your favorite editor and change all these lines: 119, 122, 129, 132
Change this:
${TAR_STATIC}
to simply:
tar
That should fix the problem for the moment -course I have to do something a little more comprehensive for the next release.
BTW, I hope you are at least using the official qt SlackBuild as a guide for which options to use for configuring qt. Not all the oddities are still applicable. Also, I noticed that the SlackBuild uses 'make -i' to compile with because of weird things that the qt Makefiles try to do.
The SlackBuild configures with this:
The 'yes' is to bypass accepting the license conditions.
Then it compiles with:
make -j5 -i symlinks sub-src sub-tools
You can ignore the -j5 unless you have an smp box. And the symlinks is not a valid rule for qt-4.3.3. the '-i' is because the qt Makefiles try to strip html pages!. I have an idea that if you used the other two rules you might not have seen the problem if they mean that designer doesn't get built.
Note that the slack build also uses sevarl patches -some of which may still be needed for qt-4. No way to tell without trying some more builds.
Thanks for reporting the problem -I'll fix the part that pertains to src2pkg -the rest is up to you -I have next to zero interest in qt or its' programs and only install it occassionaly to debug a build for someone else. AT my age, 4 hour build times mean that increase in senility from one build to the next becomes a significant factor :-)
I managed in the end. I can't explain this but for some reason sometimes I get those files missing and sometimes it was ok. In the end I untarred manually and copied everything from the manually tar into the src2pkg made tar. Then configured and made manually. From then on using the auto file I did the make install onwards.
Works and now I can install qbittorrent which was the only reason i wanted to upgrade.
I'll be fixing that problem for the next release. I had the samke luck, in that sometimes it would happen and sometimes not. tar-1.13 has problems with long paths and long filenames. But, simce src2pkg is using busybox for some other things I'll add the tar functionality in so it can be used for unpacking archives. I could just use the native tar that is installed on your system, but I have other reasons for wanting it to be available and static for src2pkg.
I'll be fixing that problem for the next release. I had the samke luck, in that sometimes it would happen and sometimes not. tar-1.13 has problems with long paths and long filenames. But, simce src2pkg is using busybox for some other things I'll add the tar functionality in so it can be used for unpacking archives. I could just use the native tar that is installed on your system, but I have other reasons for wanting it to be available and static for src2pkg.
I was so hoping that I could build Qt without any trouble now. But I guess src2pkg-2.0 (my mistake; see below) still doesn't solve this issue. Either that, or I'm doing something else wrong.
Shingoshi
FATAL! Running '' has failed with error: 1
Try using INSTALL_LINE 'make -i install' Exiting...
src2pkg FAILURE in make_install
Press any key to continue...
I wish to apologize for my mentioning a version which in fact did not exist. I am using version 1.93. Once again, I'm sorry for incorrectly stating my existing version.
Notice by the fact that I said tried, I didn't succeed. I used the following line as instructed and built it manually without error.
make WORLDOPTS='-k CDEBUGFLAGS="$(CDEBUGFLAGS) -DSTARTSERVER"' World
So I added the line to my nas.src2pkg file with MAKE_COMMAND. If that's not how I'm supposed to be doing it, I'd like to know.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.