Opened 8 months ago

Last modified 3 months ago

#70753 new defect

samba3 @3.6.25_4: configure failure on macOS 15.x/Xcode 16.x

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, mascguy (Christopher Nielsen)
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 (2)

config.log (3.9 MB) - added by MaddTheSane (C.W. Betts) 8 months ago.
configure log
main.log (139.4 KB) - added by jpmelko 3 months ago.

Change History (20)

Changed 8 months ago by MaddTheSane (C.W. Betts)

Attachment: config.log added

configure log

comment:1 Changed 8 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 8 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 8 months ago by markmentovai (Mark Mentovai)

Cc: markmentovai added

comment:4 Changed 8 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 8 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 8 months ago by ShadSterling (Shad Sterling)

Cc: ShadSterling added

comment:7 Changed 8 months ago by ShadSterling (Shad Sterling)

samba4 also fails to build on Sequoia due to #70866 (libgcc14 build fails)

comment:8 Changed 8 months ago by markmentovai (Mark Mentovai)

#70866 is fixed by 40a267e1c326. For samba4, try again?

Last edited 3 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:9 Changed 7 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)

  1. Open editor: sudo port edit ffmpeg
  2. Replace samba3 to samba4, Then save and exit editor
  3. Clean build: sudo port clean ffmpeg
  4. 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.

Last edited 7 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:10 Changed 7 months ago by jpmelko

Cc: jpmelko added

comment:11 Changed 7 months ago by jpmelko

Cc: jpmelko removed

comment:12 Changed 7 months ago by jpmelko

Cc: jpmelko added

comment:13 Changed 7 months ago by jpmelko

It's OK now

comment:14 Changed 4 months 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

comment:15 Changed 3 months ago by jwhowse4

Changing the dependence to samba4 worked for me on an M4 Pro running Sequoia 15.3.1 and XCode 16.2 with associated command line tools.

comment:16 Changed 3 months ago by mohd-akram (Mohamed Akram)

Cc: mascguy added

comment:17 Changed 3 months ago by jpmelko

It Is

Dionysos:root root# port install ffmpeg +darwinssl+flite+gpl2+gpl3+jack+libdc1394+librtmp+nonfree+rav1e+x11
--->  Computing dependencies for ffmpeg
The following dependencies will be installed: 
 aften
 autoconf
 automake
 cargo
 cargo-c
 flac
 flite
 jack
 libaribb24
 libdc1394
 libfdk-aac
 libgit2
 libsamplerate
 libsdl
 libsndfile
 libssh2
 libusb
 mpg123
 rav1e
 rust
 samba3
 sdl12-compat
Continue? [Y/n]: y
--->  Fetching archive for samba3
--->  Attempting to fetch samba3-3.6.25_4.darwin_24.arm64.tbz2 from https://packages.macports.org/samba3
--->  Attempting to fetch samba3-3.6.25_4.darwin_24.arm64.tbz2 from https://mse.uk.packages.macports.org/samba3
--->  Attempting to fetch samba3-3.6.25_4.darwin_24.arm64.tbz2 from https://fra.de.packages.macports.org/samba3
--->  Configuring samba3
Error: Failed to configure samba3: consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_samba3/samba3/work/samba-3.6.25/source3/config.log
Error: Failed to configure samba3: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_samba3/samba3/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port ffmpeg failed
Dionysos:root root# cp -a /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_net_samba3/samba3/main.log /Users/titi/Downloads/
Dionysos:root root# 

not Ok now

Changed 3 months ago by jpmelko

Attachment: main.log added

comment:18 Changed 3 months ago by mascguy (Christopher Nielsen)

Summary: samba3 @3.6.25_4: configure failuresamba3 @3.6.25_4: configure failure on macOS 15.x/Xcode 16.x
Note: See TracTickets for help on using tickets.