Skip to content

www/httrack: fix build failure on DragonFly#1559

Merged
tuxillo merged 1 commit into
masterfrom
agentic/www-httrack-20260606-195315Z
Jun 7, 2026
Merged

www/httrack: fix build failure on DragonFly#1559
tuxillo merged 1 commit into
masterfrom
agentic/www-httrack-20260606-195315Z

Conversation

@dragonflybot

Copy link
Copy Markdown
Member

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

> 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>
@tuxillo tuxillo marked this pull request as ready for review June 7, 2026 09:36
@tuxillo tuxillo merged commit ed87567 into master Jun 7, 2026
1 of 2 checks passed
@tuxillo tuxillo deleted the agentic/www-httrack-20260606-195315Z branch June 7, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants