Bug 3786 - Compiling on HP-UX 11.11 using gcc
Summary: Compiling on HP-UX 11.11 using gcc
Status: RESOLVED WONTFIX
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: Build environment (show other bugs)
Version: 3.0.22
Hardware: PA-RISC HP-UX
: P3 normal
Target Milestone: none
Assignee: Tim Potter
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-18 06:06 UTC by Paul Barmettler
Modified: 2021-01-04 21:38 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
...
Comment 1 Björn Jacke 2021-01-04 21:38:06 UTC
we have waf now, now more configure.in