Malstrond: It seems there is a bug in the version of tcc in the repos. I managed to fix that specific problem by switching the dependency to tcc-git, which is in the aur. However doing this introduced a new compilation problem. I think some of the linux api has changed, and some method or #include fdutils was using got deprecated, so fixing this would require more extensive patches to the source. If I get it working again, I will update the PKGBUILD.
But I don't really have a floppy drive anymore so the most I could do would be gettng it to compile, I can't really test it.
Search Criteria
Package Details: fdutils 5.5-3
Package Actions
- View PKGBUILD
- Download tarball
- Search wiki
- Flagged out-of-date (2013-01-26)
| Package Base: | fdutils |
|---|---|
| Description: | Utilities for the Linux floppy driver, i.e. for formatting extra capacity disks |
| Upstream URL: | http://fdutils.linux.lu/index.html |
| Category: | system |
| Licenses: | |
| Submitter: | haawda |
| Maintainer: | None |
| Last Packager: | None |
| Votes: | 2 |
| First Submitted: | 2009-11-19 00:44 |
| Last Updated: | 2011-07-22 23:05 |
Required by (0)
Sources
Latest Comments
Comment by tddenz
Comment by Malstrond
tcc -o floppycontrol floppycontrol.o -L. -lfdutils
tcc: undefined symbol 'strchr'
tcc: undefined symbol 'strlen'
tcc: undefined symbol 'strcmp'
make[1]: *** [floppycontrol] Error 1
rm enh_options.o measure.o calc-format.o oldfdprm.o parse.o driveprm.o misc.o lex.mediaprm.o lex.driveprm.o printfdprm.o skews.o lex.mediaprm.c mediaprm.o lex.driveprm.c
make[1]: Leaving directory `/tmp/yaourt-tmp-malstrond/aur-fdutils/src/fdutils-5.5/src'
make: *** [compile] Error 2
Comment by tddenz
When I typed up the previous comment I did not realize this was an unmaintained package. I have since adopted it, and I will make the changes mentioned in the previous post.
Comment by tddenz
Just some info for people who want to install the package, and hopefully the maintainer can make a few changes.
#1
Problem: "fdmount.c:421:5: note: expected ‘byte *’ but argument is of type ‘char *’ make[1]: *** [fdmount] Error 1" is a result of incompatibilities between tcc and gcc syntax.
Info: fdutils compiles fine using tcc, and looking at the PKGBUILD, this is what should be used (the CC=tcc line).
Solution: Install the tcc package from aur: https://aur.archlinux.org/packages.php?ID=16492
The Package maintainer should probably add this tcc package as a dependency,
#2
Problem: checking for C compiler default output file name... configure: error: C compiler cannot create executables
Info: When makepkg is primarily geared more towards gcc, and passes gcc build flags. However the compiler being used is tcc, which does not recognize all of these flags, causing this error to be coughed up.
Solution: Add '!buildflags' as an option. Change options=('!strip' '!makeflags') to options=('!strip' '!makeflags' '!buildflags')
The Package maintainer should probably change this line in the PKGBUILD.
Anonymous comment
fdmount.c:421:5: note: expected ‘byte *’ but argument is of type ‘char *’
make[1]: *** [fdmount] Error 1
and compilation stops.
Comment by haawda
Try removing CC=tcc
Anonymous comment
checking for gcc... tcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables