First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 153656
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: voip herd <voip@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Alin Năstac <mrness@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 153656 depends on: Show dependency tree
Show dependency graph
Bug 153656 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-11-01 02:42 0000
This version of asterisk should have dev-db/libpq in its DEPEND even if
postgres USE flag is disabled:

gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer  -pipe  -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations  -Iinclude
-I../include -D_REENTRANT -D_GNU_SOURCE  -march=pentium2 -O3 -pipe
-fomit-frame-pointer         -fomit-frame-pointer  -fPIC
-I/usr/include/postgresql   -c -o cdr_pgsql.o cdr_pgsql.c
cdr_pgsql.c:43:22: error: libpq-fe.h: No such file or directory
cdr_pgsql.c:67: error: expected 

------- Comment #1 From Alin Năstac 2006-11-01 02:42:13 0000 -------
This version of asterisk should have dev-db/libpq in its DEPEND even if
postgres USE flag is disabled:

gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer  -pipe  -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations  -Iinclude
-I../include -D_REENTRANT -D_GNU_SOURCE  -march=pentium2 -O3 -pipe
-fomit-frame-pointer         -fomit-frame-pointer  -fPIC
-I/usr/include/postgresql   -c -o cdr_pgsql.o cdr_pgsql.c
cdr_pgsql.c:43:22: error: libpq-fe.h: No such file or directory
cdr_pgsql.c:67: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
cdr_pgsql.c:68: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
cdr_pgsql.c: In function ‘pgsql_log’:
cdr_pgsql.c:82: error: ‘conn’ undeclared (first use in this function)
cdr_pgsql.c:82: error: (Each undeclared identifier is reported only once
cdr_pgsql.c:82: error: for each function it appears in.)
cdr_pgsql.c:82: warning: implicit declaration of function ‘PQsetdbLogin’
cdr_pgsql.c:83: warning: implicit declaration of function ‘PQstatus’
cdr_pgsql.c:83: error: ‘CONNECTION_BAD’ undeclared (first use in this
function)
cdr_pgsql.c:86: warning: implicit declaration of function ‘PQerrorMessage’
cdr_pgsql.c:86: warning: assignment makes pointer from integer without a cast
cdr_pgsql.c:98: warning: implicit declaration of function ‘PQescapeString’
cdr_pgsql.c:134: error: ‘CONNECTION_OK’ undeclared (first use in this
function)
cdr_pgsql.c:138: warning: implicit declaration of function ‘PQreset’
cdr_pgsql.c:143: warning: assignment makes pointer from integer without a cast
cdr_pgsql.c:151: error: ‘result’ undeclared (first use in this function)
cdr_pgsql.c:151: warning: implicit declaration of function ‘PQexec’
cdr_pgsql.c:152: warning: implicit declaration of function ‘PQresultStatus’
cdr_pgsql.c:152: error: ‘PGRES_COMMAND_OK’ undeclared (first use in this
function)
cdr_pgsql.c:153: warning: implicit declaration of function
‘PQresultErrorMessage’
cdr_pgsql.c:153: warning: assignment makes pointer from integer without a cast
cdr_pgsql.c:164: warning: assignment makes pointer from integer without a cast
cdr_pgsql.c: In function ‘my_unload_module’:
cdr_pgsql.c:184: error: ‘conn’ undeclared (first use in this function)
cdr_pgsql.c:185: warning: implicit declaration of function ‘PQfinish’
cdr_pgsql.c: In function ‘process_my_load_module’:
cdr_pgsql.c:292: error: ‘conn’ undeclared (first use in this function)
cdr_pgsql.c:293: error: ‘CONNECTION_BAD’ undeclared (first use in this
function)
cdr_pgsql.c:297: warning: assignment makes pointer from integer without a cast
make[1]: *** [cdr_pgsql.o] Error 1
make[1]: Leaving directory
`/var/tmp/portage/asterisk-1.2.13/work/asterisk-1.2.13/cdr'
make: *** [subdirs] Error 1

!!! ERROR: net-misc/asterisk-1.2.13 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  asterisk-1.2.13.ebuild, line 287:   Called die

!!! Make failed
!!! If you need support, post the topmost build error, and the call stack if
relevant.

------- Comment #2 From Alin Năstac 2006-11-01 14:57:11 0000 -------
Another issue would be the futile mysql flag. Apparently the mysql support has
been removed because MySQL switched to GPL.
Now MySQL is supported only through ODBC.

------- Comment #3 From Stefan Schweizer 2006-11-01 15:03:24 0000 -------
feel free to fix those issues yourself and fix th

------- Comment #4 From Alin Năstac 2006-11-02 07:06:05 0000 -------
fixed in 1.2.13-r1

------- Comment #5 From Jakub Moc (RETIRED) 2006-11-12 13:31:05 0000 -------
*** Bug 154929 has been marked as a duplicate of this bug. ***

------- Comment #6 From norbert kamenicky 2006-11-12 14:12:52 0000 -------
I filled (oposite) bug 154929 ...

1. I had no problems to emerge net-misc/asterisk-1.2.13, although I hadn't
libpq installed on my system.

2. I really can't see any reason, why asterisk should ALWAYS depend on libpq.

IMHO this (153656) bug is FALSE and should be revisited/checked.

------- Comment #7 From Jakub Moc (RETIRED) 2006-11-12 14:19:48 0000 -------
*** Bug 154929 has been marked as a duplicate of this bug. ***

------- Comment #8 From Jakub Moc (RETIRED) 2006-11-12 14:20:24 0000 -------
Oh noes, t3h dependency!!!111! 

------- Comment #9 From Alin Năstac 2006-11-13 04:17:24 0000 -------
Please save the output of the following command and send me to my personal
email address:

  ebuild asterisk-1.2.13.ebuild compile &> /tmp/asterisk.out

Of course, you should not have libpq installed on your system.

------- Comment #10 From norbert kamenicky 2006-11-13 16:27:07 0000 -------
Hi Alin,

still doesn't know, where the problem is ?
If not, I suggest to check your libraries for orphant files ...
*'s configure script probable finds it and gets confused.

BTW, I emerged asterisk-1.2.13 on more than 5 systems, no one needs libpq.

noro

------- Comment #11 From Alin Năstac 2006-11-13 21:55:21 0000 -------
I didn' found time to take care of this bug. Patience, my friend...

------- Comment #12 From Alin Năstac 2006-11-13 23:55:25 0000 -------
Fixed without rev bumping by removing libpq dependency.

You were right. I had some /usr/include/postgresql leftovers.
However, the Makefile is wrong. It should include Postgres support if and only
if libpq-fe.h is found. I will submit a bug to upstream regarding this issue.

------- Comment #13 From norbert kamenicky 2006-11-14 02:17:55 0000 -------
IMO it should include Postgres support if and only if "postgres" use flag is
set,
regardless of libraries or their headers (proper or orphant).

------- Comment #14 From Alin Năstac 2006-11-14 02:42:31 0000 -------
Of course, but asterisk doesn't have a ./configure script and therefore it
cannot make full use of its USE flags.

First Last Prev Next    No search results available      Search page      Enter new bug