Bug 8939 - Solaris10_U10-samba3.4.17- make- Fatal error with talloc
Summary: Solaris10_U10-samba3.4.17- make- Fatal error with talloc
Status: RESOLVED WONTFIX
Alias: None
Product: Samba 3.4
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.4.17
Hardware: Sparc Solaris
: P5 critical
Target Milestone: ---
Assignee: Björn Jacke
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-13 10:36 UTC by Prabu
Modified: 2020-01-03 11:05 UTC (History)
1 user (show)

See Also:


Attachments
make 2>make.err ; error output (129.93 KB, application/octet-stream)
2012-05-13 10:36 UTC, Prabu
no flags Details
config.log (4.75 MB, application/octet-stream)
2012-05-13 19:30 UTC, Prabu
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Prabu 2012-05-13 10:36:52 UTC
Created attachment 7557 [details]
make 2>make.err ; error output

Hi,
User requirement is to compile samba 3.4.17 to support their application. after many error i got this error.
3.4.17 is working on Solris 9 and Solaris 10_U5. not on Solaris 10_U10.

bash-3.2# make 2>make.err
Using CFLAGS     = -O -I.  -I/usr/local/samba-3.4.17/source3  -I/usr/local/samba-3.4.17/source3/iniparser/src  -Iinclude -I./include  -I. -I. -I./../lib/replace -I./../lib/talloc -I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc -I./..  -DHAVE_CONFIG_H  -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/local/include -DLDAP_DEPRECATED -DSUNOS5    -I/usr/local/samba-3.4.17/source3/lib  -I..  -I../source4  -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3
      PICFLAG    = -fPIC
      LIBS       = -lsendfile -lresolv -lrt -lnsl -lsocket -liconv
      LDFLAGS    = -pie  -lthread -L./bin -L/usr/local/lib
      DYNEXP     =
      LDSHFLAGS  = -G  -lthread -L./bin -L/usr/local/lib
      SHLIBEXT   = so
      SONAMEFLAG = -Wl,-soname=
Compiling ../lib/talloc/talloc.c
*** Error code 1
The following command caused the error:
gcc -O -I.  -I/usr/local/samba-3.4.17/source3  -I/usr/local/samba-3.4.17/source3/iniparser/src  -Iinclude -I./include  -I. -I. -I./../lib/replace -I./../lib/talloc -I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc -I./..  -DHAVE_CONFIG_H  -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/local/include -DLDAP_DEPRECATED -DSUNOS5    -I/usr/local/samba-3.4.17/source3/lib  -I..  -I../source4  -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC -c ../lib/talloc/talloc.c -o ../lib/talloc/talloc.o && exit 0;\
        echo "The following command failed:" 1>&2;\
        echo "" 1>&2;\
        gcc -O -I.  -I/usr/local/samba-3.4.17/source3  -I/usr/local/samba-3.4.17/source3/iniparser/src  -Iinclude -I./include  -I. -I. -I./../lib/replace -I./../lib/talloc -I./../lib/tevent -I./../lib/tdb/include -I./libaddns -I./librpc -I./..  -DHAVE_CONFIG_H  -D_LARGEFILE_SOURCE -D_REENTRANT -D_FILE_OFFSET_BITS=64 -I/usr/local/include -DLDAP_DEPRECATED -DSUNOS5    -I/usr/local/samba-3.4.17/source3/lib  -I..  -I../source4  -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -fPIC -c ../lib/talloc/talloc.c -o ../lib/talloc/talloc.o >/dev/null 2>&1

bash-3.2# wc -l make.err
    1554 make.err
bash-3.2# tail make.err
include/ads_protos.h:25: error: `ads_pull_sid' declared as function returning a function
include/ads_protos.h:29: error: `ads_pull_sd' declared as function returning a function
include/ads_protos.h:95: error: `fn' declared as function returning a function
../lib/talloc/talloc.c: In function `_talloc_realloc':
../lib/talloc/talloc.c:987: error: function `malloced' is initialized like a variable
../lib/talloc/talloc.c:1035: error: invalid lvalue in assignment
../lib/talloc/talloc.c:1053: warning: the address of `malloced', will always evaluate as `true'
The following command failed:

make: Fatal error: Command failed for target `../lib/talloc/talloc.o'

bash-3.2# ls -ld ../lib/talloc/talloc.c
-rw-r--r--   1 8363    39679 Apr 28 22:31 ../lib/talloc/talloc.c
Comment 1 Prabu 2012-05-13 19:21:35 UTC
./configure also has error related to talloc. so both configure and make throws error related to talloc.

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 $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig/
bash-3.2# ls -ld /usr/local/lib/pkgconfig/talloc.pc
-rw-r--r--   1 root     root         298 May 12 23:22 /usr/local/lib/pkgconfig/talloc.pc

Thanks,
Prabu
Comment 2 Prabu 2012-05-13 19:30:09 UTC
Created attachment 7558 [details]
config.log
Comment 3 Björn Jacke 2020-01-03 11:05:41 UTC
the build system changed completely since 2012. Need to close this as wontfix.