tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Perl gdbm support

On Jan 6, 10:01am, Edgar =?iso-8859-1?B?RnXf?= wrote:
} It appears to me that pkgsrc Perl is built without gdbm sopport, i.e., lacks 
} I tried to add an option to the pkgsrc Makefile:
} .if !empty(PKG_OPTIONS:Mgdbm)
} .include "../../databases/gdbm/"
} LIBSWANTED+=  gdbm
} .endif
} as without the LIBSWANTED line it doesn't find gdbm_open but with it it fails 
} Checking your choice of C compiler and flags for coherency...
} I've tried to compile and run the following simple program:
} #include <stdio.h>
} int main() { printf("Ok\n"); return(0); }
} I used the command:
}         cc -o try -O2 -pthread -I/usr/include -I/usr/pkg/include 
-fno-strict-aliasing -pipe -fstack-protector -I/usr/pkg/include 
-fstack-protector -L/usr/pkg/lib try.c -lm -lcrypt -lgdbm -lpthread
}          ./try

     You also need -R/usr/pkg/lib.  -L is for link time (i.e. when the
program is being compiled), -R is for run time.  However, as Johnny Lam
says, you probably just want to use databases/p5-gdbm rather then
modifying the perl package.

}-- End of excerpt from Edgar =?iso-8859-1?B?RnXf?=

Home | Main Index | Thread Index | Old Index