Solved talloc compile dies [solved]

For some reason talloc doesn't compile. I get an python-2.7 related error and I am not sure how to fix this issue.

Code:
[ 8/17] Compiling lib/replace/test/testsuite.c
[ 9/17] Compiling lib/replace/test/strptime.c
[10/17] Compiling lib/replace/test/os2_delete.c
../lib/replace/test/os2_delete.c:41:28: warning: expression result unused [-Wunused-value]
        mkdir(TESTDIR, 0700) == 0 || FAILED("mkdir");
        ~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~
../lib/replace/test/os2_delete.c:84:22: warning: expression result unused [-Wunused-value]
                unlink(fname) == 0 || FAILED("unlink");
                ~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~
../lib/replace/test/os2_delete.c:113:31: warning: expression result unused [-Wunused-value]
        strcmp(de->d_name, ".") == 0 || FAILED("match .");
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~
../lib/replace/test/os2_delete.c:115:32: warning: expression result unused [-Wunused-value]
        strcmp(de->d_name, "..") == 0 || FAILED("match ..");
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~
../lib/replace/test/os2_delete.c:126:22: warning: expression result unused [-Wunused-value]
        rmdir(TESTDIR) == 0 || FAILED("rmdir");
        ~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~
5 warnings generated.
[11/17] Compiling lib/replace/test/getifaddrs.c
[12/17] Compiling testsuite_main.c
[13/17] Compiling testsuite.c
[14/17] Compiling talloc.c
[15/17] Linking default/libtalloc.so
[16/17] Linking default/talloc_testsuite
[17/17] Generating man/talloc.3
Waf: Leaving directory `/usr/ports/devel/talloc/work/talloc-2.1.0/bin'
'build' finished successfully (3.736s)
===>>> Starting check for runtime dependencies
===>>> Gathering dependency list for devel/talloc from ports
===>>> No dependencies for devel/talloc

===>  Staging for talloc-2.1.0
===>   Generating temporary packing list
Waf: Entering directory `/usr/ports/devel/talloc/work/talloc-2.1.0/bin'
* installing bin/default/talloc.pc as /usr/ports/devel/talloc/work/stage/usr/local/libdata/pkgconfig/talloc.pc
[16/18] Linking default/libtalloc.inst.so
[17/18] Linking default/talloc_testsuite.inst
* installing bin/default/libtalloc.inst.so as /usr/ports/devel/talloc/work/stage/usr/local/lib/libtalloc.so.2
* symlink /usr/ports/devel/talloc/work/stage/usr/local/lib/libtalloc.so (-> libtalloc.so.2)
* installing talloc.h as /usr/ports/devel/talloc/work/stage/usr/local/include/talloc.h
* installing bin/default/man/talloc.3 as /usr/ports/devel/talloc/work/stage/usr/local/man/man3/talloc.3
Waf: Leaving directory `/usr/ports/devel/talloc/work/talloc-2.1.0/bin'
'install' finished successfully (0.607s)
====> Compressing man pages (compress-man)
===>  Installing for talloc-2.1.0
===>  Checking if devel/talloc already installed
===>   Registering installation for talloc-2.1.0 as automatic
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/include/pytalloc.h): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/libpytalloc-util.so): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/libpytalloc-util.so.2): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/python2.7/site-packages/talloc.so): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/libdata/pkgconfig/pytalloc-util.pc): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/python2.7/site-packages/): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/python2.7/): No such file or directory
*** Error code 74

Stop.
make: stopped in /usr/ports/devel/talloc

Thanks for the help.
 
Re: talloc compile dies [unsolved]

As tests, I was able to install devel/talloc successfully on FreeBSD-9.2 and FreeBSD-10.0 amd64.

What version of FreeBSD are you running? Which platform (i386/amd64)? Is your ports tree up to date? There was an update to devel/talloc on 3/18.
 
Re: talloc compile dies [unsolved]

Here is my FreeBSD version.

Code:
uname -a 
FreeBSD saturn.net303.net 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

The port tree is from today (1-April-2014). Since I am running updates on my FreeBSD computer (server).
 
Re: talloc compile dies [unsolved]

This is clearly an python-2.7 issue. I tested to run make reinstall on python-2.7 but that did not change anything.

Longer version of the error message.

Code:
Checking for program xsltproc                                                     : true 
Checking for stylesheet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl : ok 
Checking for program python                                                                     : /usr/local/bin/python2.7 
Checking for program python                                                                     : /usr/local/bin/python2.7 
Checking for Python version >= 2.4.2                                                            : ok 2.7.6 
Checking for library python2.7                                                                  : yes 
Checking for program python2.7-config                                                           : /usr/local/bin/python2.7-config 
Checking for custom code                                                                        : Could not find the python development headers 
Disabling pytalloc-util as python devel libs not found
Checking linker accepts -Wl,-no-undefined                                                       : yes 
Checking linker accepts ['-undefined', 'dynamic_lookup']                                        : yes 
'configure' finished successfully (4m48.514s)
===>  Building for talloc-2.1.0
/bin/mkdir -p /usr/ports/devel/talloc/work/talloc-2.1.0/bin/default/man
install  -o root -g wheel -m 444 /usr/ports/devel/talloc/files/`basename man/man3/talloc.3.gz .gz` /usr/ports/devel/talloc/work/talloc-2.1.0/bin/default/man
Waf: Entering directory `/usr/ports/devel/talloc/work/talloc-2.1.0/bin'
Checking project rules ...
Project rules pass
[ 1/17] Generating talloc.vscript
[ 2/17] Compiling lib/replace/replace.c
[ 3/17] Compiling lib/replace/strptime.c
[ 4/17] Compiling lib/replace/xattr.c
[ 5/17] Generating PKGCONFIG_talloc.pc
[ 6/17] Compiling lib/replace/replace.c
[ 7/17] Compiling lib/replace/strptime.c
[ 8/17] Compiling lib/replace/test/testsuite.c
[ 9/17] Compiling lib/replace/test/strptime.c
[10/17] Compiling lib/replace/test/os2_delete.c
../lib/replace/test/os2_delete.c:41:28: warning: expression result unused [-Wunused-value]
        mkdir(TESTDIR, 0700) == 0 || FAILED("mkdir");
        ~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~
../lib/replace/test/os2_delete.c:84:22: warning: expression result unused [-Wunused-value]
                unlink(fname) == 0 || FAILED("unlink");
                ~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~
../lib/replace/test/os2_delete.c:113:31: warning: expression result unused [-Wunused-value]
        strcmp(de->d_name, ".") == 0 || FAILED("match .");
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~
../lib/replace/test/os2_delete.c:115:32: warning: expression result unused [-Wunused-value]
        strcmp(de->d_name, "..") == 0 || FAILED("match ..");
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~
../lib/replace/test/os2_delete.c:126:22: warning: expression result unused [-Wunused-value]
        rmdir(TESTDIR) == 0 || FAILED("rmdir");
        ~~~~~~~~~~~~~~~~~~~ ^  ~~~~~~~~~~~~~~~
5 warnings generated.
[11/17] Compiling lib/replace/test/getifaddrs.c
[12/17] Compiling testsuite_main.c
[13/17] Compiling testsuite.c
[14/17] Compiling talloc.c
[15/17] Linking default/libtalloc.so
[16/17] Linking default/talloc_testsuite
[17/17] Generating man/talloc.3
Waf: Leaving directory `/usr/ports/devel/talloc/work/talloc-2.1.0/bin'
'build' finished successfully (5.052s)
===>>> Starting check for runtime dependencies
===>>> Gathering dependency list for devel/talloc from ports
===>>> No dependencies for devel/talloc

===>  Staging for talloc-2.1.0
===>   Generating temporary packing list
Waf: Entering directory `/usr/ports/devel/talloc/work/talloc-2.1.0/bin'
* installing bin/default/talloc.pc as /usr/ports/devel/talloc/work/stage/usr/local/libdata/pkgconfig/talloc.pc
[16/18] Linking default/libtalloc.inst.so
[17/18] Linking default/talloc_testsuite.inst
* installing bin/default/libtalloc.inst.so as /usr/ports/devel/talloc/work/stage/usr/local/lib/libtalloc.so.2
* symlink /usr/ports/devel/talloc/work/stage/usr/local/lib/libtalloc.so (-> libtalloc.so.2)
* installing talloc.h as /usr/ports/devel/talloc/work/stage/usr/local/include/talloc.h
* installing bin/default/man/talloc.3 as /usr/ports/devel/talloc/work/stage/usr/local/man/man3/talloc.3
Waf: Leaving directory `/usr/ports/devel/talloc/work/talloc-2.1.0/bin'
'install' finished successfully (0.605s)
====> Compressing man pages (compress-man)
===>  Installing for talloc-2.1.0
===>  Checking if devel/talloc already installed
===>   Registering installation for talloc-2.1.0 as automatic
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/include/pytalloc.h): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/libpytalloc-util.so): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/libpytalloc-util.so.2): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/python2.7/site-packages/talloc.so): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/libdata/pkgconfig/pytalloc-util.pc): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/python2.7/site-packages/): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/python2.7/): No such file or directory
*** Error code 74

Thanks for the help.
 
Re: talloc compile dies [unsolved]

When I run the top build program. I get this error. The top build program (that is compiled before talloc) is tevent.

Code:
make reinstall
===>  License LGPL3 accepted by the user
===>  Found saved configuration for tevent-0.9.18
===>   tevent-0.9.21 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by tevent-0.9.21 for building
===>  Extracting for tevent-0.9.21
=> SHA256 Checksum OK for tevent-0.9.21.tar.gz.
===>  Patching for tevent-0.9.21
===>  Applying FreeBSD patches for tevent-0.9.21
===>   tevent-0.9.21 depends on file: /usr/local/bin/python2.7 - found
===>   tevent-0.9.21 depends on executable: python2 - found
===>   tevent-0.9.21 depends on executable: pkgconf - found
===>   tevent-0.9.21 depends on package: talloc>=2.1.0 - not found
pkg-static: No package(s) matching talloc
===>    Verifying reinstall for talloc>=2.1.0 in /usr/ports/devel/talloc
===>  Installing for talloc-2.1.0
===>   Registering installation for talloc-2.1.0 as automatic
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/include/pytalloc.h): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/libpytalloc-util.so): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/libpytalloc-util.so.2): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/python2.7/site-packages/talloc.so): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/libdata/pkgconfig/pytalloc-util.pc): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/python2.7/site-packages/): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/python2.7/): No such file or directory
*** Error code 74

Stop.
make[3]: stopped in /usr/ports/devel/talloc
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/devel/talloc
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/tevent
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/tevent

Thanks for the help.
 
Re: talloc compile dies [unsolved]

I'd like to see all the python related ports you have installed. Please provide the output of pkg info -x py.
 
Re: talloc compile dies [unsolved]

This is interesting. I appear to have many versions of python installed. I don't know if that is normal on FreeBSD systems.

Code:
pkg info -x py
py27-libxml2-2.8.0
py27-setuptools27-2.0.1
python-2.7_1,2
python2-2_2
python27-2.7.6_4

I at least need to remove python-2.7_1,2.

Thanks for the help.
 
Re: talloc compile dies [unsolved]

jonfr said:
This is interesting. I appear to have many versions of python installed. I don't know if that is normal on FreeBSD systems.
Well, it depends on what ports you have installed and what their lang/python dependencies are. For example here is my list:
Code:
py27-cairo-1.10.0_1
py27-gimp-2.8.10
py27-gobject-2.28.6_3
py27-gtk2-2.24.0_2
py27-libxml2-2.8.0
py27-setuptools27-2.0.1
py27-sqlite3-2.7.6_3
python-2.7_1,2
python2-2_2
python27-2.7.6_4
If you want to see what ports depend on a particular lang/python port, just do (for example):
Code:
# pkg info -r python-2.7_1,2
python-2.7_1,2:
	gtk2-2.24.22_1
I'm still thinking about what might be wrong here.
 
Re: talloc compile dies [unsolved]

Here is the list for dependences of python-2.7_1,2. So I guess its safe to remove it.

Code:
pkg info -r python-2.7_1,2
python-2.7_1,2:

I was checking the dependences of python2-2_2 when I found this. I think this might be the issue. But how to I fix it?

Code:
pkg info -r python2-2_2
python2-2_2:
        py27-libxml2-2.8.0
        python-2.7_1,2
        tdb-1.2.12,1
        tevent-0.9.18

For the python-2.7 version.

Code:
pkg info -r python27-2.7.6_4
python27-2.7.6_4:
        xcb-proto-1.9
        python2-2_2
        py27-libxml2-2.8.0
        tdb-1.2.12,1
        tevent-0.9.18
        py27-setuptools27-2.0.1
        webmin-1.680
        net-snmp-5.7.2_4

Edited: added information.
 
Re: talloc compile dies [unsolved]

Since nothing depends on python-2.7_1,2. I am going to remove that from my system.

Code:
pkg info -r python-2.7_1,2
python-2.7_1,2:

Then I am going to see what happens.
 
Re: talloc compile dies [unsolved]

It didn't solve or change anything to remove the old version. So I checking if re-installing python2-2_2 solves this. I get this install list when I run portmaster -r python2-2_2.

Code:
===>>> The following actions will be taken if you choose to proceed:
        Re-install python2-2_2
        Re-install py27-libxml2-2.8.0
        Re-install tdb-1.2.12,1
        Upgrade tevent-0.9.18 to tevent-0.9.21
        Install devel/talloc

I hope this solves this issue.
 
Re: talloc compile dies [unsolved]

This I find interesting. This issue also affects tdb-1.2.12,1. I get the same error as with talloc.

Code:
Waf: Leaving directory `/usr/ports/databases/tdb/work/tdb-1.2.12/bin'
'install' finished successfully (3.956s)
====> Compressing man pages (compress-man)
===>  Installing for tdb-1.2.12,1
===>  Checking if databases/tdb already installed
===>   Registering installation for tdb-1.2.12,1
pkg-static: lstat(/usr/ports/databases/tdb/work/stage/usr/local/lib/python2.7/site-packages/tdb.so): No such file or directory
pkg-static: lstat(/usr/ports/databases/tdb/work/stage/usr/local/lib/python2.7/site-packages/): No such file or directory
pkg-static: lstat(/usr/ports/databases/tdb/work/stage/usr/local/lib/python2.7/): No such file or directory
*** Error code 74

Stop.
make: stopped in /usr/ports/databases/tdb

===>>> A backup package for tdb-1.2.12,1 should
       be located in /usr/ports/packages/portmaster-backup

===>>> Installation of tdb-1.2.12,1 (databases/tdb) failed
===>>> Aborting update

===>>> Update for tdb-1.2.12,1 failed
===>>> Aborting update

===>>> Killing background jobs
Terminated
===>>> The following actions were performed:
        Re-installation of python2-2_2
        Re-installation of py27-libxml2-2.8.0


===>>> You can restart from the point of failure with this command line:
       portmaster <flags> databases/tdb devel/tevent devel/talloc 

===>>> Exiting

Any ideas on what is going on here?
 
Re: talloc compile dies [unsolved]

I have tested several things and none of them works. I always end up with this error.

Code:
root@saturn:/usr/ports/net/samba41 # make install clean
===>   samba41-4.1.6 depends on package: p5-Parse-Pidl>=4.0.0 - found
===>   samba41-4.1.6 depends on package: talloc>=2.0.8 - not found
pkg-static: No package(s) matching talloc
===>    Verifying install for talloc>=2.0.8 in /usr/ports/devel/talloc
===>  Installing for talloc-2.1.0
===>  Checking if devel/talloc already installed
===>   Registering installation for talloc-2.1.0 as automatic
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/include/pytalloc.h): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/libpytalloc-util.so): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/libpytalloc-util.so.2): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/python2.7/site-packages/talloc.so): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/libdata/pkgconfig/pytalloc-util.pc): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/python2.7/site-packages/): No such file or directory
pkg-static: lstat(/usr/ports/devel/talloc/work/stage/usr/local/lib/python2.7/): No such file or directory
*** Error code 74

Stop.
make[2]: stopped in /usr/ports/devel/talloc
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/net/samba41
*** Error code 1

Stop.

I have no idea how to fix this and I have tested removing python from my system and re-installing it several times. It just doesn't work and now my FreeBSD computer doesn't have an working samba install.
 
Re: talloc compile dies [unsolved]

Looking around to see if I could solve this issue. I found this report here and that solved it. There where two conflicting options chosen in my python-2.7 install that was creating this issue.

I am marking this as solved until proven otherwise.
 
Re: talloc compile dies [unsolved]

jonfr said:
Looking around to see if I could solve this issue. I found this report here and that solved it. There where two conflicting options chosen in my python-2.7 install that was creating this issue.

I am marking this as solved until proven otherwise.
Good find. Thanks for reporting the solution, and I'm glad you got this resolved.
 
Back
Top