NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
problems compiling dbg under linux fedora


Joined: 24 May 2004
Posts: 2
Reply with quote
Hy everybody!

I have some problems compiling dbg under fedora linux. Here are those packages of my disti that are needed to compile.

autoconf 2.59
automake 1.8.5
libtool 1.5-8
php 4.3.4
dbg 2.11.26-src

because I run under a rh-distributuin I had changed the phpize-location from /usr/local/bin to /usr/bin. But I get an error while running make, here are the last lines of output:

.....
/bin/sh /home/user/dbg-2.11.26-src/libtool --mode=compile gcc -I. -I/home/user/dbg-2.11.26-src -DPHP_ATOM_INC -I/home/user/dbg-2.11.26-src/include -I/home/user/dbg-2.11.26-src/main -I/home/user/dbg-2.11.26-src -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -DHAVE_CONFIG_H -DHAVE_CONFIG_H -g -O2 -prefer-pic -c /home/user/dbg-2.11.26-src/dbg_cmd.c -o dbg_cmd.lo
gcc -I. -I/home/user/dbg-2.11.26-src -DPHP_ATOM_INC -I/home/user/dbg-2.11.26-src/include -I/home/user/dbg-2.11.26-src/main -I/home/user/dbg-2.11.26-src -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -DHAVE_CONFIG_H -DHAVE_CONFIG_H -g -O2 -c /home/user/dbg-2.11.26-src/dbg_cmd.c -fPIC -DPIC -o .libs/dbg_cmd.o
/home/user/dbg-2.11.26-src/dbg_cmd.c: In function `dbg_lookup_hostname':
/home/user/dbg-2.11.26-src/dbg_cmd.c:47: warning: assignment makes pointer from integer without a cast
/home/user/dbg-2.11.26-src/dbg_cmd.c:51: error: dereferencing pointer to incomplete type
View user's profileFind all posts by till_dawnSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7857
Reply with quote
try to add

before the first include statement in dbg_cmd.c
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Yuhu it works


Joined: 24 May 2004
Posts: 2
Reply with quote
#include <netdb.h>

Heureka! This was the solution, thanks. I just wrote it in quotes and not in brakets, but I think you ment this.
View user's profileFind all posts by till_dawnSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7857
Reply with quote
no, it should be in brackets as it is a system-supplied header.

anyways, congratulations!
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 25 May 2004
Posts: 1
Reply with quote
Had the same problem running Gentoo and this resolved the issue Smile

Thanks
View user's profileFind all posts by chinokazeSend private message
Slackware 9.1


Joined: 27 May 2004
Posts: 1
Reply with quote
I experienced the same problem with Slackware 9.1/gcc 3.2.3, and this fix resolved the issue.
View user's profileFind all posts by KeNoTamaSend private message


Joined: 29 Jun 2004
Posts: 2
Reply with quote
Thanks ! The same worked for me on a SuSE 9.0 with recompiled apache 1.3.31 and php 1.3.7 Laughing
View user's profileFind all posts by BloodeyeSend private message


Joined: 15 Jul 2004
Posts: 1
Reply with quote
Thanks, corrected my problem with Slackware 10. Just curious, why wouldn't it complie right as is?
View user's profileFind all posts by nolipSend private message


Joined: 26 Jul 2004
Posts: 5
Reply with quote
I had the same problem with Debian Sid. Why isn't this mentioned in the INSTALL guideline?
View user's profileFind all posts by chesswebSend private message
Worked with Mac OSX 10.3.5, gcc3.0, PHP 4.3.6, Apache 1.3.29


Joined: 12 Aug 2004
Posts: 1
Reply with quote
Thanks!
The same solved the compilation problem on Mac OSX Panther 10.3.5 with Xcode Tools Update(GCC 3.0), PHP 4.3.6, Apache 1.3.29.
Please mention this in the Install Guideline! Very Happy
View user's profileFind all posts by minorioSend private message
problems compiling dbg under linux fedora
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic