Bug 3786 - Compiling on HP-UX 11.11 using gcc
Compiling on HP-UX 11.11 using gcc
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: Build environment
3.0.22
PA-RISC HP-UX
: P3 normal
: none
Assigned To: Tim Potter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-05-18 06:06 UTC by Paul Barmettler
Modified: 2006-05-18 12:51 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 Paul Barmettler 2006-05-18 06:06:04 UTC
./configure --prefix=/opt/samba_3.0.22 --with-ldap=no

make
...
Compiling popt/findme.c
Compiling popt/popt.c
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

-> Solution:
Add lines
  BLDSHARED="true"
  CFLAGS="$CFLAGS $PICFLAGS"
to section HPUX 1 in script "configure". See comment "## NEW lines"

....
#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"
                                ## NEW lines               
                                BLDSHARED="true"
                                CFLAGS="$CFLAGS $PICFLAGS"
                                ## NEW lines                  
                        fi
...