[MacPorts] #34559: samba3 compile error on Leopard using Xcode 3.1

MacPorts noreply at macports.org
Mon May 21 09:36:07 PDT 2012


#34559: samba3 compile error on Leopard using Xcode 3.1
-------------------------------------+--------------------------------------
 Reporter:  m1cha3ld0m1n0@…          |       Owner:  mww@…           
     Type:  defect                   |      Status:  new             
 Priority:  Normal                   |   Milestone:                  
Component:  ports                    |     Version:  2.1.1           
 Keywords:                           |        Port:  samba3          
-------------------------------------+--------------------------------------
Changes (by macsforever2000@…):

  * owner:  macports-tickets@… => mww@…
  * port:  => samba3


Old description:

> d0m1n0-2:~ michael$ sudo port -v selfupdate
> Password:
> --->  Updating MacPorts base sources using rsync
> receiving file list ... done
>
> sent 132 bytes  received 7337 bytes  786.21 bytes/sec
> total size is 3260213  speedup is 436.50
> MacPorts base version 2.1.1 installed,
> MacPorts base version 2.1.1 downloaded.
> --->  Updating the ports tree
> Synchronizing local ports tree from
> rsync://rsync.macports.org/release/ports/
> receiving file list ... done
>
> sent 805 bytes  received 603754 bytes  13287.01 bytes/sec
> total size is 35110607  speedup is 58.08
> Creating port index in
> /opt/local/var/macports/sources/rsync.macports.org/release/ports
>
> Total number of ports parsed:   11
> Ports successfully parsed:      11
> Ports failed:                   0
> Up-to-date ports skipped:       14204
>
> --->  MacPorts base is already the latest version
>
> d0m1n0-2:~ michael$ sudo port -v upgrade outdated
> --->  Computing dependencies for samba3.
> --->  Building samba3
> make: Entering directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3'
> Using CFLAGS     = -I/opt/local/include -O2 -arch i386 -fno-common -I.
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3/../lib/iniparser/src
> -Iinclude -I./include  -I. -I. -I./../lib/replace -I./../lib/tevent
> -I./librpc -I./.. -I./../lib/talloc -I../lib/tdb/include -DHAVE_CONFIG_H
> -I/opt/local/include -I/opt/local/include -I/opt/local/include
> -I/opt/local/include -Iinclude -I./include -I. -I. -I./../lib/replace
> -I./../lib/tevent -I./librpc -I./.. -I./../lib/popt -DLDAP_DEPRECATED
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3/lib
> -I.. -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3
>       PICFLAG    = -fPIE
>       LIBS       = -lresolv -liconv
>       LDFLAGS    = -L/opt/local/lib -dynamic -Wl,-search_paths_first
> -L/opt/local/lib -lintl -arch i386 -L./bin
>       DYNEXP     =
>       LDSHFLAGS  = -fPIE -dynamiclib -flat_namespace -undefined suppress
> -L/opt/local/lib -dynamic -Wl,-search_paths_first -L/opt/local/lib -lintl
> -arch i386 -L./bin -lc
>       SHLIBEXT   = dylib
>       SONAMEFLAG = #
> Compiling ../lib/tdb/common/tdb.c
> ../lib/tdb/common/tdb.c: In function ‘tdb_add_flags’:
> ../lib/tdb/common/tdb.c:736: error: ‘TDB_ALLOW_NESTING’ undeclared (first
> use in this function)
> ../lib/tdb/common/tdb.c:736: error: (Each undeclared identifier is
> reported only once
> ../lib/tdb/common/tdb.c:736: error: for each function it appears in.)
> ../lib/tdb/common/tdb.c:737: error: ‘TDB_DISALLOW_NESTING’ undeclared
> (first use in this function)
> ../lib/tdb/common/tdb.c:738: error: ‘TDB_ERR_NESTING’ undeclared (first
> use in this function)
> ../lib/tdb/common/tdb.c: In function ‘tdb_remove_flags’:
> ../lib/tdb/common/tdb.c:756: error: ‘TDB_ALLOW_NESTING’ undeclared (first
> use in this function)
> ../lib/tdb/common/tdb.c:757: error: ‘TDB_DISALLOW_NESTING’ undeclared
> (first use in this function)
> ../lib/tdb/common/tdb.c:758: error: ‘TDB_ERR_NESTING’ undeclared (first
> use in this function)
> The following command failed:
> /usr/bin/gcc-4.0 -I/opt/local/include -O2 -arch i386 -fno-common -I.
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3/../lib/iniparser/src
> -Iinclude -I./include  -I. -I. -I./../lib/replace -I./../lib/tevent
> -I./librpc -I./.. -I./../lib/talloc -I../lib/tdb/include -DHAVE_CONFIG_H
> -I/opt/local/include -I/opt/local/include -I/opt/local/include
> -I/opt/local/include -Iinclude -I./include -I. -I. -I./../lib/replace
> -I./../lib/tevent -I./librpc -I./.. -I./../lib/popt -DLDAP_DEPRECATED
> -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3/lib
> -I.. -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIE -c ../lib/tdb/common/tdb.c
> -o ../lib/tdb/common/tdb.o
> make: *** [../lib/tdb/common/tdb.o] Error 1
> make: Leaving directory
> `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3'
> Command failed:  cd
> "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3"
> && /usr/bin/make -w all
> Exit code: 2
> Error: org.macports.build for port samba3 returned: command execution
> failed
> Warning: targets not executed for samba3: org.macports.install
> org.macports.build org.macports.destroot
> Please see the log file for port samba3 for details:
> /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/main.log
> Error: Unable to upgrade port: 1
> To report a bug, follow the instructions in the guide:
>     http://guide.macports.org/#project.tickets

New description:

 {{{
 d0m1n0-2:~ michael$ sudo port -v selfupdate
 Password:
 --->  Updating MacPorts base sources using rsync
 receiving file list ... done

 sent 132 bytes  received 7337 bytes  786.21 bytes/sec
 total size is 3260213  speedup is 436.50
 MacPorts base version 2.1.1 installed,
 MacPorts base version 2.1.1 downloaded.
 --->  Updating the ports tree
 Synchronizing local ports tree from
 rsync://rsync.macports.org/release/ports/
 receiving file list ... done

 sent 805 bytes  received 603754 bytes  13287.01 bytes/sec
 total size is 35110607  speedup is 58.08
 Creating port index in
 /opt/local/var/macports/sources/rsync.macports.org/release/ports

 Total number of ports parsed:   11
 Ports successfully parsed:      11
 Ports failed:                   0
 Up-to-date ports skipped:       14204

 --->  MacPorts base is already the latest version

 d0m1n0-2:~ michael$ sudo port -v upgrade outdated
 --->  Computing dependencies for samba3.
 --->  Building samba3
 make: Entering directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3'
 Using CFLAGS     = -I/opt/local/include -O2 -arch i386 -fno-common -I.
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3/../lib/iniparser/src
 -Iinclude -I./include  -I. -I. -I./../lib/replace -I./../lib/tevent
 -I./librpc -I./.. -I./../lib/talloc -I../lib/tdb/include -DHAVE_CONFIG_H
 -I/opt/local/include -I/opt/local/include -I/opt/local/include
 -I/opt/local/include -Iinclude -I./include -I. -I. -I./../lib/replace
 -I./../lib/tevent -I./librpc -I./.. -I./../lib/popt -DLDAP_DEPRECATED
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3/lib
 -I.. -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3
       PICFLAG    = -fPIE
       LIBS       = -lresolv -liconv
       LDFLAGS    = -L/opt/local/lib -dynamic -Wl,-search_paths_first
 -L/opt/local/lib -lintl -arch i386 -L./bin
       DYNEXP     =
       LDSHFLAGS  = -fPIE -dynamiclib -flat_namespace -undefined suppress
 -L/opt/local/lib -dynamic -Wl,-search_paths_first -L/opt/local/lib -lintl
 -arch i386 -L./bin -lc
       SHLIBEXT   = dylib
       SONAMEFLAG = #
 Compiling ../lib/tdb/common/tdb.c
 ../lib/tdb/common/tdb.c: In function ‘tdb_add_flags’:
 ../lib/tdb/common/tdb.c:736: error: ‘TDB_ALLOW_NESTING’ undeclared (first
 use in this function)
 ../lib/tdb/common/tdb.c:736: error: (Each undeclared identifier is
 reported only once
 ../lib/tdb/common/tdb.c:736: error: for each function it appears in.)
 ../lib/tdb/common/tdb.c:737: error: ‘TDB_DISALLOW_NESTING’ undeclared
 (first use in this function)
 ../lib/tdb/common/tdb.c:738: error: ‘TDB_ERR_NESTING’ undeclared (first
 use in this function)
 ../lib/tdb/common/tdb.c: In function ‘tdb_remove_flags’:
 ../lib/tdb/common/tdb.c:756: error: ‘TDB_ALLOW_NESTING’ undeclared (first
 use in this function)
 ../lib/tdb/common/tdb.c:757: error: ‘TDB_DISALLOW_NESTING’ undeclared
 (first use in this function)
 ../lib/tdb/common/tdb.c:758: error: ‘TDB_ERR_NESTING’ undeclared (first
 use in this function)
 The following command failed:
 /usr/bin/gcc-4.0 -I/opt/local/include -O2 -arch i386 -fno-common -I.
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3/../lib/iniparser/src
 -Iinclude -I./include  -I. -I. -I./../lib/replace -I./../lib/tevent
 -I./librpc -I./.. -I./../lib/talloc -I../lib/tdb/include -DHAVE_CONFIG_H
 -I/opt/local/include -I/opt/local/include -I/opt/local/include
 -I/opt/local/include -Iinclude -I./include -I. -I. -I./../lib/replace
 -I./../lib/tevent -I./librpc -I./.. -I./../lib/popt -DLDAP_DEPRECATED
 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3/lib
 -I.. -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIE -c ../lib/tdb/common/tdb.c
 -o ../lib/tdb/common/tdb.o
 make: *** [../lib/tdb/common/tdb.o] Error 1
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.6.5/source3"
 && /usr/bin/make -w all
 Exit code: 2
 Error: org.macports.build for port samba3 returned: command execution
 failed
 Warning: targets not executed for samba3: org.macports.install
 org.macports.build org.macports.destroot
 Please see the log file for port samba3 for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/main.log
 Error: Unable to upgrade port: 1
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/34559#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list