php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #574 A few build problems
Submitted: 1998-07-23 06:33 UTC Modified: 1998-09-12 14:18 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: dwadd at concentric dot net Assigned:
Status: Closed Package: Installation problem
PHP Version: 3.0.2a OS: Linux PPC
Private report: No CVE-ID: None
 [1998-07-23 06:33 UTC] dwadd at concentric dot net
I ran into a couple of small problems while compiling php3.02a for a PowerPC Mac
under LinuxPPC.

1. I had to create a src/modules/php3 directory manually. The make install under
php3.02a made a file in the proper place but it was not a directory

2. I used the old method for building apache (src/Configure).
The Makefile.tmpl that is produced in the src/modules/php3 directory for Apache
1.3.0 did not work. I had to make the following alteration. The original line
is commented out.

#   build the static library by merging the object files
#libphp3.a: $(OBJS) $(OBJS_LIB)
libphp3.$(LIBEXT): $(OBJS) $(OBJS_LIB)
        cp $(OBJS_LIB) $@
        ar r $@ $(OBJS)
        $(RANLIB) $@

3. The standard binary rpm for postgresql for ppc installs the include files
under /usr/include/pgsql. This means that in order to get php to build I had to
create the following link:
/usr/include/pgsql -> /usr/include/pgsql/include
I think it would probably be better to alter the php source distribution to not add
"include" to the directory given by running configure for postgresql. It would be
better to ask for the include directory as this would work in all cases.

All the best

David R. Waddell
I ran into a couple of small problems while compiling php3.02a for a PowerPC Mac
under LinuxPPC.

1. I had to create a src/modules/php3 directory manually. The make install under
php3.02a made a file in the proper place but it was not a directory

2. I used the old method for building apache (src/Configure).
The Makefile.tmpl that is produced in the src/modules/php3 directory for Apache
1.3.0 did not work. I had to make the following alteration. The original line
is commented out.

#   build the static library by merging the object files
#libphp3.a: $(OBJS) $(OBJS_LIB)
libphp3.$(LIBEXT): $(OBJS) $(OBJS_LIB)
        cp $(OBJS_LIB) $@
        ar r $@ $(OBJS)
        $(RANLIB) $@

3. The standard binary rpm for postgresql for ppc installs the include files
under /usr/include/pgsql. This means that in order to get php to build I had to
create the following link:
/usr/include/pgsql -> /usr/include/pgsql/include
I think it would probably be better to alter the php source distribution to not add
"include" to the directory given by running configure for postgresql. It would be
better to ask for the include directory as this would work in all cases.

All the best

David R. Waddell

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-12 14:18 UTC] zeev
#1 has been fixed
#2 makes no sense to me.  What was your $LIBEXT set to?
#3 use --with-pgsql=/usr

---

Ok, this was definitely closed before.  Something
broke in the database?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Oct 07 14:01:27 2024 UTC