www/httrack: fix build failure on DragonFly#1559
Merged
Merged
Conversation
> Generated by the DragonFly agentic build-fix loop and verified in a clean dev-env. Reviewed and accepted by operator `operator` before submission. ## Problem The build failed on `@2026Q2` — classified `compile-error`, confidence `high`. The httrack source bundles minizip, which uses Linux‑specific 64‑bit file I/O functions (`fopen64`, `fseeko64`, `ftello64`) that do not exist on DragonFly BSD. The configure script does not detect that DragonFly’s default `fopen`, `fseeko` and `ftello` are already 64‑bit capable, causing the linker to report undefined references for these symbols. **Evidence:** - Linker errors from `errors.txt`: ``` minizip/proxytrack-ioapi.o:ioapi.c:function fseek64_file_func: error: undefined reference to 'fseeko64' minizip/proxytrack-ioapi.o:ioapi.c:function ftell64_file_func: error: undefined reference to 'ftello64' minizip/proxytrack-ioapi.o:ioapi.c:function fopen64_file_func: error: undefined reference to 'fopen64' ``` - Compiler warnings confirm the functions are implicitly declared (i.e. no prototypes available): ``` minizip/ioapi.c:23:36: warning: implicit declaration of function 'fopen64'; did you mean 'fopen'? minizip/ioapi.c:24:29: warning: implicit declaration of function 'ftello64'; did you mean 'ftello'? minizip/ioapi.c:25:45: warning: implicit declaration of function 'fseeko64'; did you mean 'fseeko'? ``` ## Fix Automated fix for the build failure in `www/httrack`. ## What changed 4 files changed, +20/-5 - `ports/www/httrack/Makefile.DragonFly` - `ports/www/httrack/STATUS` - `ports/www/httrack/dragonfly/patch-minizip__ioapi.c` - `ports/www/httrack/overlay.dops` ## Verification Built successfully in a DragonFly dev-env (dsynth) for target `@2026Q2`. Verified 2026-06-07T09:31:53.486553+00:00. ## Provenance - Operator: operator - Agent: model=deepseek/deepseek-v4-pro attempts=1 tokens=606431 Signed-off-by: Fred [bot] <github@dragonflybsd.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The build failed on
@2026Q2— classifiedcompile-error, confidencehigh.The httrack source bundles minizip, which uses Linux‑specific 64‑bit file I/O functions (
fopen64,fseeko64,ftello64) that do not exist on DragonFly BSD. The configure script does not detect that DragonFly’s defaultfopen,fseekoandftelloare already 64‑bit capable, causing the linker to report undefined references for these symbols.Evidence:
errors.txt:Fix
Automated fix for the build failure in
www/httrack.What changed
4 files changed, +20/-5
ports/www/httrack/Makefile.DragonFlyports/www/httrack/STATUSports/www/httrack/dragonfly/patch-minizip__ioapi.cports/www/httrack/overlay.dopsVerification
Built successfully in a DragonFly dev-env (dsynth) for target
@2026Q2.Verified 2026-06-07T09:31:53.486553+00:00.
Provenance