#13559 closed defect (fixed)
samba-3.0.28 fails to build on Mac OS X 10.5 Leopard
Reported by: | lrivers@… | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.5.2 |
Keywords: | Cc: | ||
Port: |
Description
I cleaned and synced and then tried to upgrade to the latest samba. fail.
---> Fetching samba3 ---> Attempting to fetch samba-3.0.28.tar.gz from http://us1.samba.org/samba/ftp/stable/ ---> Verifying checksum(s) for samba3 ---> Extracting samba3 ---> Configuring samba3 ---> Building samba3 with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/work/samba-3.0.28/source" && make all " returned error 2 Command output: Compiling libads/ldap_utils.c Compiling libads/authdata.c Compiling libads/cldap.c Compiling libads/kerberos.c Compiling libads/ads_status.c Compiling libads/util.c Compiling libads/kerberos_verify.c Compiling libads/ldap_schema.c Compiling registry/reg_frontend.c Compiling registry/reg_cachehook.c Compiling registry/reg_printing.c Compiling registry/reg_db.c Compiling registry/reg_eventlog.c Compiling registry/reg_shares.c Compiling registry/reg_util.c Compiling registry/reg_dynamic.c Compiling registry/reg_perfcount.c Compiling lib/popt_common.c Compiling smbd/build_options.c Compiling lib/smbldap.c Compiling lib/smbldap_util.c Compiling smbd/server.c mkdir bin Linking bin/smbd Undefined symbols: "_updwtmpx", referenced from: _sys_utmp_update in utmp.o ld: symbol(s) not found collect2: ld returned 1 exit status make: *** [bin/smbd] Error 1 Error: Unable to upgrade port: 1
Attachments (2)
Change History (8)
comment:1 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)
Milestone: | → Port Bugs |
---|---|
Owner: | changed from macports-dev@… to mww@… |
Summary: | samba-3.0.28 fails to build → samba-3.0.28 fails to build on Mac OS X 10.5 Leopard |
comment:2 Changed 17 years ago by simon@…
I can confirm the same on an Intel Mac running OS X 10.5.1 Maybe the smb variant for mplayer and samba variant for xffm should be deactivated while this package is broken.
comment:3 Changed 17 years ago by aljmcphee@…
Similar, but slightly different problem on Mac Book Pro:
Hardware Overview:
Model Name: MacBook Pro Model Identifier: MacBookPro3,1 Processor Name: Intel Core 2 Duo Processor Speed: 2.2 GHz Number Of Processors: 1 Total Number Of Cores: 2 L2 Cache: 4 MB Memory: 2 GB Bus Speed: 800 MHz Boot ROM Version: MBP31.0070.B02 SMC Version: 1.16f8 Serial Number: W87407RQX91 Sudden Motion Sensor: State: Enabled
System Software Overview:
System Version: Mac OS X 10.5.1 (9B18) Kernel Version: Darwin 9.1.0
---> Building samba3 with target all Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/work/samba-3.0.28/source" && make all " returned error 2 Command output: Using FLAGS = -O2 -fno-common -D_SAMBA_BUILD_=3 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/work/samba-3.0.28/source/iniparser/src -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H -I/opt/local/include -DHAVE_STRUCT_TIMESPEC -DLDAP_DEPRECATED -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/work/samba-3.0.28/source/lib -D_SAMBA_BUILD_=3
PICFLAG = -fPIE LIBS = -lresolv -liconv LDFLAGS = -pie -dynamic -Wl,-search_paths_first -L/opt/local/lib DYNEXP = LDSHFLAGS = -dynamiclib -flat_namespace -undefined suppress -dynamic -Wl,-search_paths_first -L/opt/local/lib SHLIBEXT = dylib SONAMEFLAG = #
Linking bin/smbd Undefined symbols:
"_updwtmpx", referenced from:
_sys_utmp_update in utmp.o
ld: symbol(s) not found collect2: ld returned 1 exit status make: * [bin/smbd] Error 1
Error: Status 1 encountered during processing.
comment:4 Changed 17 years ago by ecronin (Eric Cronin)
The problem is that samba detects some functions in utmpx.h and assumes others (particularly updwtmpx()) exist even though configure found they didn't. Simple enough to fix upstream, but here's a local patch until this gets accepted. Please test on 10.4, although I don't see how this could cause a problem there.
Changed 17 years ago by ecronin (Eric Cronin)
Attachment: | patch-source_smbd_utmp_c.diff added |
---|
files/patch-source_smbd_utmp_c.diff
Changed 17 years ago by ecronin (Eric Cronin)
Attachment: | samba3_Portfile.diff added |
---|
comment:5 Changed 17 years ago by mww@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
thanks! Commited as 10.5-only patch.
User said on the mailing list that this is on a PowerBook G4 with Mac OS X 10.5.1.