Operating System - HP-UX
1837143 Members
2391 Online
110112 Solutions
New Discussion

Samba: Compiling error on HP-UX 11.11 (HP 9000)

 
Paul Barmettler
Frequent Advisor

Samba: Compiling error on HP-UX 11.11 (HP 9000)

During compilation of samba-3.0.22 on a HP-UX 11.11 using gcc(version 3.4.3) I get an error.

./configure --prefix=/opt/samba-3.0.22

make

...
Compiling popt/poptconfig.c
Compiling popt/popthelp.c
Compiling popt/poptparse.c
Linking bin/smbd
/usr/ccs/bin/ld: Unsatisfied symbols:
auth_script_init (first referenced in auth/auth.o) (code)
collect2: ld returned 1 exit status
*** Error exit code 1

Stop.


Can you give me a hint what's going wrong?

With kind regards

Paul
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Samba: Compiling error on HP-UX 11.11 (HP 9000)

Shalom,

HP ported and tested this:

Client(reboot required)
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8724AA

Server
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B8725AA

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Paul Barmettler
Frequent Advisor

Re: Samba: Compiling error on HP-UX 11.11 (HP 9000)

Hi Steven

HP CIFS A.02.02.01 (Server) is based on Samba 3.0.14a and not on 3.0.22.

./make on samba 3.0.14a runs without a problem!

With kind regards

Paul
Dave Poeschel
Occasional Advisor

Re: Samba: Compiling error on HP-UX 11.11 (HP 9000)

In addition to the current 3.0.14a based server, HP expects to release a supported Samba 3.0.22 based HP CIFS Server (to be A.02.03) on about May 31, 2006.

A "technical preview" (not supported) CIFS Server version is already available at http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=CIFSTP3

Good Luck,
Dave
Dave Poeschel
Occasional Advisor

Re: Samba: Compiling error on HP-UX 11.11 (HP 9000)

'Meant to say Samba 3.0.22 based technical preview...
Paul Barmettler
Frequent Advisor

Re: Samba: Compiling error on HP-UX 11.11 (HP 9000)

Now it works with HP-UX 11.11 and gcc version 4.1.0.
I just had to change the script configure in following way:

Original part for HPUX:
#define HPUX 1
_ACEOF

# Use special PIC flags for the native HP-UX compiler.
if test $ac_cv_prog_cc_Ae = yes; then
BLDSHARED="true"
SHLD="cc"
LDSHFLAGS="-b -Wl,-B,symbolic,-b,-z"
SONAMEFLAG="-Wl,+h "
PICFLAGS="+z"
elif test "${GCC}" = "yes"; then
PICFLAGS="-fPIC"
fi

Changed part for HPUX:
#define HPUX 1
_ACEOF

# Use special PIC flags for the native HP-UX compiler.
if test $ac_cv_prog_cc_Ae = yes; then
BLDSHARED="true"
SHLD="cc"
LDSHFLAGS="-b -Wl,-B,symbolic,-b,-z"
SONAMEFLAG="-Wl,+h "
PICFLAGS="+z"
elif test "${GCC}" = "yes"; then
PICFLAGS="-fPIC"
BLDSHARED="true"
CFLAGS="$CFLAGS $PICFLAGS"
fi



./configure --prefix=/opt/samba_3.0.22 --with-ldap=no

Paul Barmettler
Frequent Advisor

Re: Samba: Compiling error on HP-UX 11.11 (HP 9000)

See my above remarks.