Thanks a lot for your reply. I was going crazy because of this issue.
Let me answer your questions.
Can you cat talloc.pc- make sure the config file shows the correct path.
>>>bash-3.2# more /usr/local/samba-extras/lib/pkgconfig/talloc.pc
prefix=/usr/local/samba-extras
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
Name: talloc
Description: A hierarchical pool based memory system with destructors
Version: 2.0.7
Libs: -Wl,-rpath,/usr/local/samba-extras/lib -L${libdir} -ltalloc
Cflags: -I${includedir}
URL: http://talloc.samba.org/
I wonder what the significant difference is between your two solaris 10
machines. Which gcc are you using. Do either of them have the sunfreeware
versions of samba? Or the sun bundled versions of samba. Maybe one machine
already has libtalloc installed. What does "pkginfo | grep -i samba" show?
I think samba 3.0x. binaries from Sun/Oracle may have been in /usr/sfw/bin not
/usr/bin.
>>>>On the working server /usr/local/bin/gcc version is 3.4.6. Here /bin/gcc is
>>>>3.4.3. path and version are different.
Non working machine
bash-3.2# pkginfo | grep -i samba
application SMCsamba samba ==> 3.5.3
system SUNWsmbaS samba - A Windows SMB/CIFS
fileserver for UNIX (Source)
system SUNWsmbac samba - A Windows SMB/CIFS
fileserver for UNIX (client)
system SUNWsmbar samba - A Windows SMB/CIFS
fileserver for UNIX (Root)
system SUNWsmbau samba - A Windows SMB/CIFS
fileserver for UNIX (Usr)
Working machine
bash-3.00# pkginfo |grep samba
application SMCsamba samba ==> 3.0.24
system SUNWsmbac samba - A Windows SMB/CIFS
fileserver for UNIX (client) ==>
system SUNWsmbar samba - A Windows SMB/CIFS
fileserver for UNIX (Root)
system SUNWsmbau samba - A Windows SMB/CIFS
fileserver for UNIX (Usr)
system samba SMB based file/printer sharing
What is the current version of samba you are running. Did you compile that or
is if from a package? Is the current version in the PKG_CONFIG_PATH or
LD_LIBRARY_PATH when compiling the new one?
>>>Working machine we were compiled samba 3.0.21b. now compiled 3.4.17. Non
>>>working machine current version 3.4.2(as package, not from source code)
>>>since 3.0.21b was not getting compiled.
Working machine OS is Solaris 10_update 5. Non-working machine is latest OS
Solaris 10_update 10.
PS The samba 3.4.17 source code includes talloc. But it might be 1.0.x Maybe
try downloading and compiling 1.0.x instead. And I would try building it
into the same directory that you are building the rest of samba.
>>>I don't see 1.0.x under http://www.samba.org/ftp/talloc/. So I tried with
>>>2.0.7.
bash-3.2# pwd
/usr/local/talloc-2.0.7
bash-3.2# ./configure --prefix=/usr/local/samba-3.4.17/source/
Is the current version in the PKG_CONFIG_PATH or LD_LIBRARY_PATH when compiling
the new one?
>>>No they are not included in the new one.
bash-3.2# echo $LD_LIBRARY_PATH
/usr/local/samba-extras/lib/
bash-3.2# echo $PKG_CONFIG_PATH
/usr/local/samba-extras/lib/pkgconfig/
3.4.2 were under /usr/local/samba/. I moved as /usr/local/samba-3.4.2.
Thanks,
Prabu
From: Gaiseric Vandal [mailto:[email protected]]
Sent: Friday, May 18, 2012 3:52 AM
To: Murugan, Prabu; Samba
Subject: Re: Samba compilation issue
On 05/17/12 18:18, Gaiseric Vandal wrote:
On 05/17/12 11:15, [email protected]<mailto:[email protected]> wrote:
Hi,
As a security concern we are upgrading samba to 3.4.17.
I tried all possible option to compile samba 3.4.17 on Solaris 10_U10. But it
is not going through.
User requirement is to compile samba 3.4.17 to support their application.
3.4.17 is working on Solaris 9 and Solaris 10_U5. But not on Solaris 10_U10.
./configure and make gives error related to talloc. I have set the
PKG_CONFIG_PATH. Still the error is same.
I tried the solution provided by you on URL
http://lists.samba.org/archive/samba/2010-June/156711.html
Can you help me with this issue.
bash-3.2# pwd
/usr/local/samba-3.4.17/source3
bash-3.2# more config.err
Package talloc was not found in the pkg-config search path.
Perhaps you should add the directory containing `talloc.pc'
to the PKG_CONFIG_PATH environment variable
No package 'talloc' found
bash-3.2# echo $LD_LIBRARY_PATH
/usr/local/samba-extras/lib/
bash-3.2# echo $PKG_CONFIG_PATH
/usr/local/samba-extras/lib/pkgconfig/
bash-3.2# ls -l /usr/local/samba-extras/lib/pkgconfig/
total 6
-rw-r--r-- 1 root root 334 May 16 19:13 pytalloc-util.pc
-rw-r--r-- 1 root root 324 May 16 19:13 talloc.pc
-rw-r--r-- 1 root root 277 May 16 19:17 tdb.pc
bash-3.2# ls -l /usr/local/samba-extras/lib/
total 188
lrwxrwxrwx 1 root root 25 May 16 19:14 libpytalloc-util.so ->
libpytalloc-util.so.2.0.7
lrwxrwxrwx 1 root root 25 May 16 19:14 libpytalloc-util.so.2 ->
libpytalloc-util.so.2.0.7
-rw-r--r-- 1 root root 9412 May 16 19:14 libpytalloc-util.so.2.0.7
lrwxrwxrwx 1 root root 18 May 16 19:14 libtalloc.so ->
libtalloc.so.2.0.7
lrwxrwxrwx 1 root root 18 May 16 19:14 libtalloc.so.2 ->
libtalloc.so.2.0.7
-rw-r--r-- 1 root root 79556 May 16 19:14 libtalloc.so.2.0.7
drwxr-xr-x 2 root root 512 May 16 19:19 pkgconfig
drwxr-xr-x 3 root root 512 May 16 19:14 python2.6
Thanks,
Prabu
I see on http://www.samba.org/ftp/talloc/ that there is both talloc 1.3.x and
talloc 2.0.x. I am looking through some of my old builds and my old build
notes. With samba I seem to have compiled talloc 2.0.x separately (I have the
pkgconfig files.) I think samba 3.4.x I have just compiled with out talloc.
Can you cat talloc.pc- make sure the config file shows the correct path.
I wonder what the significant difference is between your two solaris 10
machines. Which gcc are you using. Do either of them have the sunfreeware
versions of samba? Or the sun bundled versions of samba. Maybe one machine
already has libtalloc installed. What does "pkginfo | grep -i samba" show?
I think samba 3.0x. binaries from Sun/Oracle may have been in /usr/sfw/bin not
/usr/bin.
What is the current version of samba you are running. Did you compile that or
is if from a package? Is the current version in the PKG_CONFIG_PATH or
LD_LIBRARY_PATH when compiling the new one?
PS The samba 3.4.17 source code includes talloc. But it might be 1.0.x Maybe
try downloading and compiling 1.0.x instead. And I would try building it
into the same directory that you are building the rest of samba.
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba