Opened 3 days ago

Last modified 9 hours ago

#70753 new defect

samba3 @3.6.25_4: configure failure

Reported by: MaddTheSane (C.W. Betts) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: sequoia Cc: markmentovai (Mark Mentovai)
Port: samba3

Description

Samba 3 fails to configure on macOS 15 Sequoia.

macOS 15.0 (24A335), Apple clang version 16.0.0 (clang-1600.0.26.3), Aarch64.

Attachments (1)

config.log (3.9 MB) - added by MaddTheSane (C.W. Betts) 3 days ago.
configure log

Change History (6)

Changed 3 days ago by MaddTheSane (C.W. Betts)

Attachment: config.log added

configure log

comment:1 Changed 3 days ago by ryandesign (Ryan Carsten Schmidt)

In the log I see:

configure:24309: checking for test routines
configure:24319: /usr/bin/clang -o conftest -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -arch arm64 -fno-common -I/opt/local/include -I/opt/local/include -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -Iinclude -I./include  -I. -I. -I./../lib/replace -I./librpc -I./.. -I./../lib/popt -L/opt/local/lib -Wl,-headerpad_max_install_names -lintl -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk -arch arm64 -L./bin conftest.c -lresolv     >&5
In file included from conftest.c:430:
././../tests/trivial.c:4:1: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
    4 | main()
      | ^
      | int
1 error generated.
configure:24319: $? = 1
configure: program exited with status 1
...
configure:24323: error: cant find test code. Aborting config

The code will need to be fixed as indicated in the error message.

comment:2 Changed 32 hours ago by markmentovai (Mark Mentovai)

I started looking at this, and while it’s certainly possible to fix, it’s quite a bit of effort to continue patching this obsolete, unmaintained version of samba3, when samba4 is maintained and works on macOS 15 out of the box. samba3 hasn’t been touched since 2015-02-22.

When I realized that the port I was interested in didn’t have a hard dependency on samba3, but was just specifying a dependency as path:lib/pkgconfig/smbclient.pc:samba3, I substituted samba4 and kept moving forward. For reference, here was my work in progress before I stopped.

I wonder whether samba4 might be an option for others who are experiencing this.

comment:3 Changed 32 hours ago by markmentovai (Mark Mentovai)

Cc: markmentovai added

comment:4 Changed 22 hours ago by MaddTheSane (C.W. Betts)

I tried to compile this because ffmpeg +gpl3 auto-includes it. Perhaps ffmpeg can target samba4 instead?

comment:5 Changed 9 hours ago by markmentovai (Mark Mentovai)

Yeah, that’s what I mean. ffmpeg +gpl3 doesn’t actually need samba3, it actually specifies its dependency as path:lib/pkgconfig/smbclient.pc:samba3. That means that it depends on the file lib/pkgconfig/smbclient.pc, which if not present, can be supplied by installing samba3. But samba4 can also provide this file, and if you did port install samba4 and then port install ffmpeg +gpl3, it should all work out.

I don’t know whether it’s time to make ffmpeg +gpl3 to suggest samba4 for this purpose. It may be, or it may be sticking with samba3 because samba4 doesn’t work on very old OS versions. (But at least then, the samba3 vs. samba4 suggestion could be dependent on OS version.)

Note: See TracTickets for help on using tickets.