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

Re: -DLINUX=22 and -lperl



On Tue, Feb 03, 2004 at 09:01:56PM +0100, Robert Cates wrote:
> I'm having a problem compiling mod_perl-1.29 as a DSO for Apache
> 1.3.29... It all starts ok, but then bombs out with the following
> error:
> 
> perl/5.6.1/CORE -lperl -ldl -lm -lc -lcrypt 
> /usr/bin/ld: cannot find -lperl
> collect2: ld returned 1 exit status
> make[1]: *** [libperl.so] Error 1
> 
> What exactly is -lperl , and what do I need to do to get it?  Or
> should I ask - what do I need to do to correct list problem?

You need to install the libperl-dev package.

> Also, I'm running Debian 3.0r1 with kernel 2.4.18-bf24, and I'm
> wondering why during the 'make' I see -DLINUX=22.? Shouldn't that be
> -DLINUX=24??  Where would I change that, if it should be changed?

Leave it alone; the build process generally knows what it's doing. In
this case, Apache only cares about whether you're Linux 2.2 or above.

    *-linux22)
        # This handles linux 2.2 and above (2.4, ...)
        DEF_WANTHSREGEX=yes
        OS='Linux'
        CFLAGS="$CFLAGS -DLINUX=22"
        LIBS="$LIBS -lm"
        ;;

In general it doesn't do much harm to configure for an earlier version,
anyway.

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: