Taylor, Marc wrote:> My apologies if I sent this email to Seeger directly in error.
>
> Any clues to the problem I posted below?
>
> Thanks!
>
> Marc
>
> -----Original Message-----
> From: Taylor, Marc
> Sent: Tuesday, January 06, 2009 14:06
> To: 'Karolin Seeger'
> Subject: RE: [Samba] compiling 3.2.6 fails on fedora 10 i386
>
> Karolin,
>
> I just downloaded Samba-3.2.7 and ran into the same problem that Adam
> ran into (I am using RHEL 4). Your modified spec file got me past that
> point and I just wanted to say thank you and to let you know that that
> did the trick.
>
> And I hate to say, however, but the makerpms.sh script failed a little
> later on it appears. Here is the content of my screen:
>
> : bin/libsmbsharemodes.a /var/tmp/samba-3.2.7-root/usr/lib/samba
> /usr/bin/install -c -m 0644
> /usr/local/src/packagebuild/BUILD/samba-3.2.7/source/include/smb_share_m
> odes.h /var/tmp/samba-3.2.7-root/usr/include
> + cd ..
> + install -m 755 source/nsswitch/libnss_winbind.so
> /var/tmp/samba-3.2.7-root/lib/libnss_winbind.so.2
> + install -m 755 source/nsswitch/libnss_wins.so
> /var/tmp/samba-3.2.7-root/lib/libnss_wins.so.2
> + cd /var/tmp/samba-3.2.7-root/lib
> + ln -sf libnss_winbind.so.2 libnss_winbind.so
> + ln -sf libnss_wins.so.2 libnss_wins.so
> /var/tmp/rpm-tmp.61025: line 66: syntax error near unexpected token
> `libnetapi'
>
Search for libnetapi on samba.spec. It is used on a loop where it
supposed to on the same line, but its counted as next line. User Ctrl J
and join both the lines. You may also find exits on cifs sbin and man
files. You will have to add couple entries on the files section IIRC.
~LA
> error: Bad exit status from /var/tmp/rpm-tmp.61025 (%install)
>
>
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.61025 (%install)
> ++ basename makerpms.sh
> + echo 'makerpms.sh: Done.'
> makerpms.sh: Done.
>
> Would you have any suggestions for this one?
>
> Many thanks!
>
> Marc Taylor
>
> -----Original Message-----
> From: samba-bounces+mdtaylor=illinois.edu@lists.samba.org
> [mailto:samba-bounces+mdtaylor=illinois.edu@lists.samba.org] On Behalf
> Of Karolin Seeger
> Sent: Tuesday, December 23, 2008 02:34
> To: Adam Williams
> Cc: Samba
> Subject: Re: [Samba] compiling 3.2.6 fails on fedora 10 i386
>
> Hi Adam,
>
> On Mon, Dec 22, 2008 at 11:59:56AM -0600, Adam Williams wrote:
>
>> I'm running samba-3.2.6/packaging/RHEL/makerpms.sh and get the
>>
> following
>
>> error. any ideas?
>>
>> make: Nothing to be done for `modules'.
>> make: Nothing to be done for `pam_smbpass'.
>> + cd client
>> + gcc -o mount.cifs -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
>> -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32
>> -march=i386 -mtune=generic -fasynchronous-unwind-tables -D_GNU_SOURCE
>> -Wall -D_GNU_SOURCE -D_LARGEFILE64_SOURCE mount.cifs.c
>> /tmp/ccqZWMvv.o: In function `main':
>> /root/rpmbuild/BUILD/samba-3.2.6/source/client/mount.cifs.c:1415:
>> undefined reference to `unlock_mtab'
>> /root/rpmbuild/BUILD/samba-3.2.6/source/client/mount.cifs.c:1416:
>> undefined reference to `lock_mtab'
>> /root/rpmbuild/BUILD/samba-3.2.6/source/client/mount.cifs.c:1462:
>> undefined reference to `unlock_mtab'
>> /root/rpmbuild/BUILD/samba-3.2.6/source/client/mount.cifs.c:1424:
>> undefined reference to `unlock_mtab'
>> collect2: ld returned 1 exit status
>> error: Bad exit status from /var/tmp/rpm-tmp.hnGqfK (%build)
>>
>>
>> RPM build errors:
>> Bad exit status from /var/tmp/rpm-tmp.hnGqfK (%build)
>> makerpms.sh: Done.
>>
>
> that's a relict in the spec file, I think.
> We don't need to build [u]mount.cifs separatly any longer.
> Please try the attached apcth and re-run makerps.sh. Does that solve the
> problem?
>
> Karolin
>