Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Append -o flag explicitely in Makefile.in, to fix the build with BSD Make. #36

Merged
merged 1 commit into from
Nov 5, 2023
Merged

Conversation

fcambus
Copy link
Contributor

@fcambus fcambus commented Nov 5, 2023

Otherwise hash.o and blocks.o are not generated in the 'sha256' and 'sha512' directories and linking fails.

…Make.

Otherwise hash.o and blocks.o are not generated in the 'sha256' and
'sha512' directories and linking fails.
@fcambus
Copy link
Contributor Author

fcambus commented Nov 5, 2023

Error output when building without the diff using BSD Make:

gcc -g -O2  -DHAVE_CONFIG_H -I.  -c jpeginfo.c
gcc -g -O2  -DHAVE_CONFIG_H -I.  -c jpegmarker.c
gcc -g -O2  -DHAVE_CONFIG_H -I.  -c misc.c
gcc -g -O2  -DHAVE_CONFIG_H -I.  -c md5/md5.c
gcc -g -O2  -DHAVE_CONFIG_H -I.  -c sha256/hash.c
gcc -g -O2  -DHAVE_CONFIG_H -I.  -c sha256/blocks.c
gcc -g -O2  -DHAVE_CONFIG_H -I.  -c sha512/hash.c
gcc -g -O2  -DHAVE_CONFIG_H -I.  -c sha512/blocks.c
gcc -g -O2  -DHAVE_CONFIG_H -I. -o jpeginfo jpeginfo.o jpegmarker.o misc.o   md5/md5.o  sha256/hash.o sha256/blocks.o  sha512/hash.o sha512/blocks.o  -ljpeg
/usr/bin/ld: cannot find md5/md5.o: No such file or directory
/usr/bin/ld: cannot find sha256/hash.o: No such file or directory
/usr/bin/ld: cannot find sha256/blocks.o: No such file or directory
/usr/bin/ld: cannot find sha512/hash.o: No such file or directory
/usr/bin/ld: cannot find sha512/blocks.o: No such file or directory
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.
bmake: stopped in /home/fcambus/jpeginfo

@tjko tjko merged commit 7966dbc into tjko:master Nov 5, 2023
2 checks passed
@tjko
Copy link
Owner

tjko commented Nov 5, 2023

Thanks, merged. As it happens, I just recently was going to test on FreeBSD, but the 'official' KVM/QEMU image didn't seem to have serial console enabled (which seems really odd). So didn't get around to test as was testing from CLI....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants