Opened 5 months ago
Last modified 5 weeks 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), ShadSterling (Shad Sterling), jpmelko |
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)
Change History (15)
Changed 5 months ago by MaddTheSane (C.W. Betts)
Attachment: | config.log added |
---|
comment:1 Changed 5 months 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 5 months 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 5 months ago by markmentovai (Mark Mentovai)
Cc: | markmentovai added |
---|
comment:4 Changed 5 months 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 5 months 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.)
comment:6 Changed 5 months ago by ShadSterling (Shad Sterling)
Cc: | ShadSterling added |
---|
comment:7 Changed 5 months ago by ShadSterling (Shad Sterling)
samba4
also fails to build on Sequoia due to #70866 (libgcc14 build fails)
comment:8 Changed 4 months ago by markmentovai (Mark Mentovai)
#70866 is fixed by 40a267e1c326. For samba4
, try again?
comment:9 Changed 4 months ago by mooyoul (MooYeol Prescott Lee)
As for failing build of ffmpeg with variants, I can confirm that replacing samba3 to samba4 works fine (Tested on Sequoia (arm64))
Edited local Portfile to test (Ref: wiki:howto/Upgrade)
- Open editor:
sudo port edit ffmpeg
- Replace
samba3
tosamba4
, Then save and exit editor - Clean build:
sudo port clean ffmpeg
- Install ffmpeg:
sudo port install ffmpeg +gpl3
I can send a PR about this, but I'm not sure if there is a consensus for a samba4 upgrade.
comment:10 Changed 4 months ago by jpmelko
Cc: | jpmelko added |
---|
comment:11 Changed 4 months ago by jpmelko
Cc: | jpmelko removed |
---|
comment:12 Changed 4 months ago by jpmelko
Cc: | jpmelko added |
---|
comment:14 Changed 5 weeks ago by amadeus24
Changed the Portfile for ffmpeg4.4.5, ffmpeg6.1.2, ffmpeg7.1 and all worked fine after replacing samba3
with samba4
.
Installed on MB Pro with M1 Max, Seq. 15.2
configure log