Bug 3260 - samba 3.0.20 compile on HP-US using gcc
samba 3.0.20 compile on HP-US using gcc
Status: RESOLVED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.9
PA-RISC HP-UX
: P3 critical
: none
Assigned To: Tim Potter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-11-14 11:06 UTC by SAM SHARMA
Modified: 2005-11-14 16:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SAM SHARMA 2005-11-14 11:06:47 UTC
Hi

in file samba-3.0.20/source/configure.in, there is a code mentioned below for HP-UX

        *hpux*) AC_DEFINE(HPUX,1,[Whether the host os is HPUX])
            # 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
            if test "$host_cpu" = "ia64"; then
                SHLIBEXT="so"
                DYNEXP="-Wl,-E,+b /usr/local/lib/hpux32:/usr/lib/hpux32"
            else
                SHLIBEXT="sl"
                DYNEXP="-Wl,-E,+b /usr/local/lib:/usr/lib"
            fi

The 

DYNEXP="-Wl,-E,+b /usr/local/lib/hpux32:/usr/lib/hpux32" must be

DYNEXP="-Wl,-E,+b/usr/local/lib/hpux32:/usr/lib/hpux32" and

DYNEXP="-Wl,-E,+b /usr/local/lib:/usr/lib" must be

DYNEXP="-Wl,-E,+b/usr/local/lib:/usr/lib".

Here after +b option the directory names should not include any spaces. I am
using 'gcc (GCC) 3.4.1' to compile on HP-UX 11.11i. I removed this extra space
and samba compile fine on my system.

Thanks

SAM SHARMA
Comment 1 Tim Potter 2005-11-14 16:10:42 UTC
Checked in - thanks!