Modify

Opened 6 years ago

Closed 5 years ago

Last modified 2 years ago

#8262 closed defect (fixed)

samba 3.0.24 fails to compile on os x Snow Leopard 10.6.5

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

Hi folks,
When I try to compile the current trunk or backfire I always get an error with samba-3.0.24.

Thats what the command line gives me out:

Linking bin/smbd
i486-openwrt-linux-uclibc-gcc  -O2 -pipe -march=i486 -funit-at-a-time -fhonour-copts  -Os -D_SAMBA_BUILD_ -DAVM_NO_PRINTING -DAVM_SMALLER -I./popt -Iinclude -I`pwd`/include -I`pwd`/ubiqx  -I. -I/Volumes/openwrt/trunk/staging_dir/target-i386_uClibc-0.9.31/usr/include -I/Volumes/openwrt/trunk/staging_dir/target-i386_uClibc-0.9.31/include -I/Volumes/openwrt/trunk/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.31/usr/include -I/Volumes/openwrt/trunk/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.31/include -D_GNU_SOURCE -I`pwd` -I`pwd`/tdb      -o bin/smbd smbd/server.o popt/findme.o popt/popt.o popt/poptconfig.o popt/popthelp.o popt/poptparse.o lib/popt_common.o  -L/Volumes/openwrt/trunk/staging_dir/target-i386_uClibc-0.9.31/usr/lib -L/Volumes/openwrt/trunk/staging_dir/target-i386_uClibc-0.9.31/lib -L/Volumes/openwrt/trunk/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.31/usr/lib -L/Volumes/openwrt/trunk/staging_dir/toolchain-i386_gcc-4.1.2_uClibc-0.9.31/lib \
		-lcrypt  \
		-Lbin -lsmbd \
		-L/lib \
		-lcrypt -ldl -lpthread
bin/libsmbd.a: could not read symbols: Archive has no index; run ranlib to add one
collect2: ld returned 1 exit status
make[4]: *** [bin/smbd] Error 1
make[3]: *** [/Volumes/openwrt/trunk/build_dir/target-i386_uClibc-0.9.31/samba-3.0.24//.built] Error 2
make[3]: Leaving directory `/Volumes/openwrt/trunk/feeds/packages/net/samba3'
make[2]: *** [package/feeds/packages/samba3/compile] Error 2
make[2]: Leaving directory `/Volumes/openwrt/trunk'
make[1]: *** [/Volumes/openwrt/trunk/staging_dir/target-i386_uClibc-0.9.31/stamp/.package_compile] Error 2
make[1]: Leaving directory `/Volumes/openwrt/trunk'
make: *** [world] Error 2

Is there any fix available? Can I somehow run ranlib manually?

Best regards,

Thorsten

Attachments (1)

samba3.patch.gz (64.2 KB) - added by sav 6 years ago.
update samba3 to 3.0.37 + cifs.mount/umount + cleaning the previous patches

Download all attachments as: .zip

Change History (9)

comment:1 in reply to: ↑ description Changed 6 years ago by sav

Replying to anonymous:

Hi folks,
When I try to compile the current trunk or backfire I always get an error with samba-3.0.24.

Is there any fix available? Can I somehow run ranlib manually?

Best regards,

Thorsten

Try my patch update samba3 to 3.0.37 (Ticket #8214)

Changed 6 years ago by sav

update samba3 to 3.0.37 + cifs.mount/umount + cleaning the previous patches

comment:2 follow-ups: Changed 6 years ago by anonymous

Thanks a lot, build fine and samba works!

Thorsten

comment:3 in reply to: ↑ 2 Changed 6 years ago by sav

Replying to anonymous:

Thanks a lot, build fine and samba works!

Thorsten

Best regards ;-)

comment:4 in reply to: ↑ 2 ; follow-up: Changed 6 years ago by buildster

Replying to anonymous:

Thanks a lot, build fine and samba works!

Thorsten

Hi Thorsten, how did you get it to build? I get a bunch of errors while building atheros images. With CONFIG_SAMBA3_DEBUG=y, _fDebug can't be found:

bin/libsmbd.a(server.o): In function `msg_sam_repl':
server.c:(.text+0x3c): undefined reference to `_fDebug'
bin/libsmbd.a(server.o): In function `msg_sam_sync':
server.c:(.text+0x60): undefined reference to `_fDebug'
bin/libsmbd.a(server.o): In function `smb_stat_cache_delete':
server.c:(.text+0x8c): undefined reference to `_fDebug'
bin/libsmbd.a(server.o): In function `exit_server_common':
server.c:(.text+0x244): undefined reference to `_fDebug'
server.c:(.text+0x268): undefined reference to `_fDebug'
bin/libsmbd.a(server.o):server.c:(.text+0x280): more undefined references to `_fDebug' follow
collect2: ld returned 1 exit status

When # CONFIG_SAMBA3_DEBUG is not set, a ton of undefined references:

bin/libsmbd.a(server.o): In function `exit_server_common':
server.c:(.text+0x1bc): undefined reference to `log_stack_trace'
server.c:(.text+0x1d8): undefined reference to `show_msg'
bin/libsmbd.a(server.o): In function `reload_services':
server.c:(.text+0x324): undefined reference to `file_exist'
server.c:(.text+0x46c): undefined reference to `user_socket_options'
bin/libsmbd.a(server.o): In function `smbd_event_context':
server.c:(.text+0x534): undefined reference to `smb_panic'
bin/libsmbd.a(server.o): In function `smbd_messaging_context':
server.c:(.text+0x588): undefined reference to `server_id_self'
server.c:(.text+0x5cc): undefined reference to `smb_panic'
bin/libsmbd.a(server.o): In function `open_sockets_smbd':
server.c:(.text+0x678): undefined reference to `close_low_fds'
server.c:(.text+0x6c4): undefined reference to `user_socket_options'
server.c:(.text+0x738): undefined reference to `smb_xstrdup'
server.c:(.text+0x75c): undefined reference to `smb_xstrdup'
server.c:(.text+0x764): undefined reference to `smb_xstrdup'
server.c:(.text+0x860): undefined reference to `user_socket_options'
server.c:(.text+0x874): undefined reference to `set_blocking'
server.c:(.text+0x970): undefined reference to `interpret_addr'
server.c:(.text+0x9c4): undefined reference to `user_socket_options'
server.c:(.text+0x9d8): undefined reference to `set_blocking'
server.c:(.text+0xae0): undefined reference to `msg_file_was_renamed'
server.c:(.text+0xe20): undefined reference to `set_blocking'
server.c:(.text+0xed8): undefined reference to `close_low_fds'
server.c:(.text+0xf24): undefined reference to `user_socket_options'
server.c:(.text+0xf90): undefined reference to `reinit_after_fork'
...

comment:5 in reply to: ↑ 4 Changed 6 years ago by sav

Replying to buildster:

Replying to anonymous:

Thanks a lot, build fine and samba works!

Thorsten

Hi Thorsten, how did you get it to build? I get a bunch of errors while building atheros images. With CONFIG_SAMBA3_DEBUG=y, _fDebug can't be found:

bin/libsmbd.a(server.o): In function `msg_sam_repl':
server.c:(.text+0x3c): undefined reference to `_fDebug'
bin/libsmbd.a(server.o): In function `msg_sam_sync':
server.c:(.text+0x60): undefined reference to `_fDebug'
bin/libsmbd.a(server.o): In function `smb_stat_cache_delete':
server.c:(.text+0x8c): undefined reference to `_fDebug'
bin/libsmbd.a(server.o): In function `exit_server_common':
server.c:(.text+0x244): undefined reference to `_fDebug'
server.c:(.text+0x268): undefined reference to `_fDebug'
bin/libsmbd.a(server.o):server.c:(.text+0x280): more undefined references to `_fDebug' follow
collect2: ld returned 1 exit status

When # CONFIG_SAMBA3_DEBUG is not set, a ton of undefined references:

bin/libsmbd.a(server.o): In function `exit_server_common':
server.c:(.text+0x1bc): undefined reference to `log_stack_trace'
server.c:(.text+0x1d8): undefined reference to `show_msg'
bin/libsmbd.a(server.o): In function `reload_services':
server.c:(.text+0x324): undefined reference to `file_exist'
server.c:(.text+0x46c): undefined reference to `user_socket_options'
bin/libsmbd.a(server.o): In function `smbd_event_context':
server.c:(.text+0x534): undefined reference to `smb_panic'
bin/libsmbd.a(server.o): In function `smbd_messaging_context':
server.c:(.text+0x588): undefined reference to `server_id_self'
server.c:(.text+0x5cc): undefined reference to `smb_panic'
bin/libsmbd.a(server.o): In function `open_sockets_smbd':
server.c:(.text+0x678): undefined reference to `close_low_fds'
server.c:(.text+0x6c4): undefined reference to `user_socket_options'
server.c:(.text+0x738): undefined reference to `smb_xstrdup'
server.c:(.text+0x75c): undefined reference to `smb_xstrdup'
server.c:(.text+0x764): undefined reference to `smb_xstrdup'
server.c:(.text+0x860): undefined reference to `user_socket_options'
server.c:(.text+0x874): undefined reference to `set_blocking'
server.c:(.text+0x970): undefined reference to `interpret_addr'
server.c:(.text+0x9c4): undefined reference to `user_socket_options'
server.c:(.text+0x9d8): undefined reference to `set_blocking'
server.c:(.text+0xae0): undefined reference to `msg_file_was_renamed'
server.c:(.text+0xe20): undefined reference to `set_blocking'
server.c:(.text+0xed8): undefined reference to `close_low_fds'
server.c:(.text+0xf24): undefined reference to `user_socket_options'
server.c:(.text+0xf90): undefined reference to `reinit_after_fork'
...

gcc version? UCLIBC or EGLIBC (Version)? Board name?

comment:6 Changed 6 years ago by anonymous

Hi!
Patching Makefile fails. Could someone make a fix for it?

comment:7 Changed 5 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

The samba ranlib issue should be fixed with r25783

comment:8 Changed 2 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.