Opened 13 years ago

Closed 11 years ago

#31462 closed defect (worksforme)

Samba3 Undefined symbols for architecture x86_64

Reported by: the.ben.stevenson@… Owned by: mww@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: lion Cc:
Port: samba3

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Everything goes fine, but then the compilation fails because of the arch flags.

:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.2.15/source'
:info:build Using FLAGS      =  -O2 -fno-common -arch x86_64 -O -D_SAMBA_BUILD_=3 -fno-common  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.2.15/source/iniparser/src -Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H  -I/opt/local/include -DHAVE_STRUCT_TIMESPEC -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -DLDAP_DEPRECATED   -I/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.2.15/source/lib -D_SAMBA_BUILD_=3
:info:build       PICFLAG    = -fPIE
:info:build       LIBS       = -lresolv -liconv
:info:build       LDFLAGS    = -dynamic -Wl,-search_paths_first -lkrb5 -L/opt/local/lib -arch x86_64 -L./bin
:info:build       DYNEXP     = 
:info:build       LDSHFLAGS  = -dynamiclib -flat_namespace -undefined suppress  -dynamic -Wl,-search_paths_first -lkrb5 -L/opt/local/lib -arch x86_64 -L./bin
:info:build       SHLIBEXT   = dylib
:info:build       SONAMEFLAG = #
:info:build Linking bin/nmbd
:info:build Undefined symbols for architecture x86_64:
:info:build   "_error_message", referenced from:
:info:build       _cli_session_setup_spnego in cliconnect.o
:info:build       _handle_krberror_packet in clikrb5.o
:info:build       _smb_krb5_verify_checksum in clikrb5.o
:info:build       _create_kerberos_key_from_string_direct in clikrb5.o
:info:build       _krb5_rd_req_return_keyblock_from_keytab in clikrb5.o
:info:build       _smb_krb5_renew_ticket in clikrb5.o
:info:build       _cli_krb5_get_ticket in clikrb5.o
:info:build       ...
:info:build ld: symbol(s) not found for architecture x86_64
:info:build collect2: ld returned 1 exit status
:info:build make: *** [bin/nmbd] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.2.15/source'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/work/samba-3.2.15/source" && /usr/bin/make -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for samba3): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for samba3 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_samba3/samba3/main.log

Attachments (3)

main.log (15.2 KB) - added by the.ben.stevenson@… 13 years ago.
mainFull.log (280.7 KB) - added by the.ben.stevenson@… 13 years ago.
New log file.
main.2.log (15.9 KB) - added by poldolot@… 12 years ago.

Download all attachments as: .zip

Change History (9)

Changed 13 years ago by the.ben.stevenson@…

Attachment: main.log added

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Keywords: osx samba3 arch flag removed
Owner: changed from macports-tickets@… to mww@…

Please clean and try again and attach the new main.log. The log you attached before is incomplete so it's hard to tell what happened.

Changed 13 years ago by the.ben.stevenson@…

Attachment: mainFull.log added

New log file.

comment:2 Changed 13 years ago by the.ben.stevenson@…

Sure thing, thanks!

comment:3 Changed 12 years ago by jmroot (Joshua Root)

Is this still a problem with 3.6.3?

comment:4 Changed 12 years ago by poldolot@…

3.6.5

--->  Computing dependencies for samba3
--->  Building samba3
Error: org.macports.build for port samba3 returned: command execution failed
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
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port samba3 failed
Last edited 12 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

Changed 12 years ago by poldolot@…

Attachment: main.2.log added

comment:5 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

That was not a clean build attempt, and it shows a different error:

:info:build Undefined symbols for architecture x86_64:
:info:build   "_iconv_open", referenced from:
:info:build       _smb_iconv_open_ex in iconv.o
:info:build      (maybe you meant: _smb_iconv_open_ex, _smb_iconv_open )
:info:build   "_iconv_close", referenced from:
:info:build       _smb_iconv_t_destructor in iconv.o
:info:build      (maybe you meant: _smb_iconv_close)
:info:build   "_iconv", referenced from:
:info:build       _sys_iconv in iconv.o
:info:build      (maybe you meant: _get_iconv_convenience, _global_iconv_convenience , _smb_iconv_open_ex , _smb_iconv_convenience_reinit , _init_iconv , _smb_iconv_close , _smb_iconv , _smb_iconv_open )

Please clean and try again and attach the complete log.

comment:6 Changed 11 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: worksforme
Status: newclosed

No response, closing.

Note: See TracTickets for help on using tickets.