Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71272 - emerge net-dialup/gammu-0.98.0 failed
Summary: emerge net-dialup/gammu-0.98.0 failed
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-15 04:15 UTC by federico
Modified: 2005-01-06 14:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description federico 2004-11-15 04:15:21 UTC
when i try to emerge gammu , i get errors about the sdp library i thing.

Reproducible: Always
Steps to Reproduce:
1.emerge gammu
2.
3.

Actual Results:  
common/device/bluetoth/bluez.c:27:27: bluetooth/sdp.h: No such file or directory
common/device/bluetoth/bluez.c:28:31: bluetooth/sdp_lib.h: No such file or directory
common/device/bluetoth/bluez.c:78: error: syntax error before "uuid_t"
common/device/bluetoth/bluez.c:78: warning: no semicolon at end of struct or union
common/device/bluetoth/bluez.c:81: error: syntax error before '}' token
common/device/bluetoth/bluez.c: In function `print_service_desc':
common/device/bluetoth/bluez.c:85: error: `sdp_data_t' undeclared (first use in
this function)
common/device/bluetoth/bluez.c:85: error: (Each undeclared identifier is
reported only once
common/device/bluetoth/bluez.c:85: error: for each function it appears in.)
common/device/bluetoth/bluez.c:85: error: `p' undeclared (first use in this
function)
common/device/bluetoth/bluez.c:85: error: syntax error before ')' token
common/device/bluetoth/bluez.c:90: error: `SDP_UUID16' undeclared (first use in
this function)
common/device/bluetoth/bluez.c:91: error: `SDP_UUID32' undeclared (first use in
this function)
common/device/bluetoth/bluez.c:92: error: `SDP_UUID128' undeclared (first use
inthis function)
common/device/bluetoth/bluez.c:95: error: `SDP_UINT8' undeclared (first use in
this function)
common/device/bluetoth/bluez.c:96: error: `RFCOMM_UUID' undeclared (first use
inthis function)
common/device/bluetoth/bluez.c: In function `print_access_protos':
common/device/bluetoth/bluez.c:107: error: `sdp_list_t' undeclared (first use
inthis function)
common/device/bluetoth/bluez.c:107: error: `protDescSeq' undeclared (first use
in this function)
common/device/bluetoth/bluez.c:107: error: syntax error before ')' token
common/device/bluetoth/bluez.c: In function `bluetooth_checkdevice':
common/device/bluetoth/bluez.c:115: error: `sdp_session_t' undeclared (first
usein this function)
common/device/bluetoth/bluez.c:115: error: `sess' undeclared (first use in this
function)
common/device/bluetoth/bluez.c:116: error: `sdp_record_t' undeclared (first use
in this function)
common/device/bluetoth/bluez.c:116: error: `rec' undeclared (first use in this
function)
common/device/bluetoth/bluez.c:117: error: `sdp_list_t' undeclared (first use
inthis function)
common/device/bluetoth/bluez.c:117: error: `attrid' undeclared (first use in
this function)
common/device/bluetoth/bluez.c:117: error: `search' undeclared (first use in
this function)
common/device/bluetoth/bluez.c:117: error: `seq' undeclared (first use in this
function)
common/device/bluetoth/bluez.c:117: error: `next' undeclared (first use in this
function)
common/device/bluetoth/bluez.c:117: error: `proto' undeclared (first use in
thisfunction)
common/device/bluetoth/bluez.c:118: error: `sdp_data_t' undeclared (first use
inthis function)
common/device/bluetoth/bluez.c:118: error: `d' undeclared (first use in this
function)
common/device/bluetoth/bluez.c:121: error: storage size of `subcontext' isn't known
common/device/bluetoth/bluez.c:130: error: `SDP_RETRY_IF_BUSY' undeclared
(firstuse in this function)
common/device/bluetoth/bluez.c:137: error: dereferencing pointer to incomplete type
common/device/bluetoth/bluez.c:138: error: `SDP_ATTR_REQ_RANGE' undeclared
(first use in this function)
common/device/bluetoth/bluez.c:148: error: syntax error before ')' token
common/device/bluetoth/bluez.c:151: error: dereferencing pointer to incomplete type
common/device/bluetoth/bluez.c:152: error: `SDP_ATTR_SVCNAME_PRIMARY'
undeclared(first use in this function)
common/device/bluetoth/bluez.c:157: error: `sdp_free_func_t' undeclared (first
use in this function)
common/device/bluetoth/bluez.c:157: error: syntax error before "sdp_data_free"
common/device/bluetoth/bluez.c:167: error: invalid application of `sizeof' to
anincomplete type
common/device/bluetoth/bluez.c:168: error: dereferencing pointer to incomplete type
common/device/bluetoth/bluez.c: In function `bluetooth_findchannel':
common/device/bluetoth/bluez.c:185: error: `inquiry_info' undeclared (first use
in this function)
common/device/bluetoth/bluez.c:185: error: syntax error before "ii"
common/device/bluetoth/bluez.c:188: error: storage size of `context' isn't known
common/device/bluetoth/bluez.c:191: error: invalid application of `sizeof' to
anincomplete type
common/device/bluetoth/bluez.c:192: error: `PUBLIC_BROWSE_GROUP' undeclared
(first use in this function)
common/device/bluetoth/bluez.c:196: error: `ii' undeclared (first use in this
function)
make: *** [common/device/bluetoth/bluez.o] Error 1
make: *** Waiting for unfinished jobs....


Expected Results:  
emerge gammu correctly

emerge info
Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4,
glibc-2.3.4.20040808-r1,2.6.7-gentoo-r11 i686)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 Intel(R) Pentium(R) 4 CPU 3.06GHz
Gentoo Base System version 1.4.16
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.14.90.0.8-r1
Headers:  sys-kernel/linux26-headers-2.6.8.1
Libtools: sys-devel/libtool-1.5.2-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks fixpackages sandbox sfperms"
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="3dfx 3dnow X aalib accessibility alsa apm arts avi berkdb bitmap-fonts
bluetooth bonobo cdr crypt cups directfb divx4linux dvd dvdr encode esd evo f77
fam fbcon ffmpeg flac foomaticdb fortran gdbm gif gimpprint gnome gphoto2 gpm
gstreamer gtk gtk2 gtkhtml imagemagick imlib ipv6 irmc java jpeg junit kde
koffice-pluginldap libg++ libwww live mad matroska mikmod motif mozilla mpeg
music mysql nas ncurses net nls nptl nvidia offensive oggvorbis ooo-kde opengl
opens oss pam pdflib perl png postgres ppds python qt quicktime readline real
samba scanner sdk sdl serial slang spell ssl svga tcltk tcpd tetex tiff
transcode truetype unicode usb wxwindows x86 xml xml2 xmms xvid zlib linguas_it"
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2004-11-16 11:16:23 UTC
do you still have /usr/include/bluetooth directory & its contents? this dir is installed by net-wireless/bluez-libs, a dependency of gammu.

I cannot reproduce; I set bluetooth USE flag and run emerge gammu without any problems.
Comment 2 federico 2004-11-16 11:41:37 UTC
I have net-wireless/bluez-libs 2.10 and /usr/include/bluetooth directory & its contents
Comment 3 Alin Năstac (RETIRED) gentoo-dev 2004-11-16 12:05:17 UTC
why then does it say the line below?

common/device/bluetoth/bluez.c:27:27: bluetooth/sdp.h: No such file or directory

It may be because you have CFLAGS settings that are known to be broken? (-O3 -march=pentium4) Could be a twisted side effect generated by your gcc/libc which were compiled with this.
Comment 4 federico 2004-11-16 13:05:10 UTC
where i find serious CFLAGS ? tnx
Comment 5 Alin Năstac (RETIRED) gentoo-dev 2004-11-16 21:45:09 UTC
emerge genflags

rebuild your gcc/binutils/libc with these cflags, then try to build gammu. please post your results.
Comment 6 federico 2004-11-17 09:28:53 UTC
Now i have  CFLAGS="-march=i686 -O3 -pipe" and re-emerged again gcc binutils glibc;
emerge -u gammu stopped with the following error:
>>> Test phase [not enabled]: net-dialup/gammu-0.98.0

>>> Install gammu-0.98.0 into /var/tmp/portage/gammu-0.98.0/image/ category net-dialup
Uninstalling Gammu
Linking libGammu.so.0.0
Linking libGammu.a
Linking gammu-shared
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: warning: libsdp.so.2, needed by /usr/lib/libGammu.so, not found (try using -rpath or -rpath-link)
./gammu/smsd/s_files.o(.text+0x906): In function `SMSDFiles_FindOutboxSMS':
: undefined reference to `mywstrstr'
./gammu/gammu.o(.text+0x34eb): In function `ListMemoryCategory':
: undefined reference to `mywstrstr'
./gammu/gammu.o(.text+0x1c374): In function `ListToDoCategory':
: undefined reference to `mywstrstr'
./gammu/gammu.o(.text+0x26bbc): In function `SearchOneEntry':
: undefined reference to `mywstrstr'
collect2: ld returned 1 exit status
make: *** [gammu/gammu-shared] Error 1

Comment 7 Alin Năstac (RETIRED) gentoo-dev 2004-11-17 09:47:39 UTC
Probably you need to re-emerge bluez-libs, but seems to me you need to re-emerge entire tree. 

You could do that by running emerge --oneshot --emptytree world

Comment 8 federico 2004-11-17 10:04:22 UTC
the same with emerge bluez-libs with new cflags
Comment 9 federico 2004-11-21 03:43:04 UTC
i have re-emerged the entire tree with new cflags, but i have the same error
Comment 10 Alin Năstac (RETIRED) gentoo-dev 2004-11-28 14:18:25 UTC
now the stable version is gammu-0.98.9
does this version build successfully?
Comment 11 federico 2004-11-29 10:51:49 UTC
now with the 0.98.9 ebuild i have this error :
Making common/device/bluetoth/bluez.c
common/device/bluetoth/bluez.c:27:27: bluetooth/sdp.h: No such file or directory
common/device/bluetoth/bluez.c:28:31: bluetooth/sdp_lib.h: No such file or directory
Making common/device/bluetoth/blue_w32.c
common/device/bluetoth/bluez.c:78: error: syntax error before "uuid_t"
common/device/bluetoth/bluez.c:78: warning: no semicolon at end of struct or union
common/device/bluetoth/bluez.c:81: error: syntax error before '}' token
common/device/bluetoth/bluez.c: In function `print_service_desc':
common/device/bluetoth/bluez.c:85: error: `sdp_data_t' undeclared (first use in this function)
common/device/bluetoth/bluez.c:85: error: (Each undeclared identifier is reported only once
common/device/bluetoth/bluez.c:85: error: for each function it appears in.)
common/device/bluetoth/bluez.c:85: error: `p' undeclared (first use in this function)
common/device/bluetoth/bluez.c:85: error: syntax error before ')' token
common/device/bluetoth/bluez.c:90: error: `SDP_UUID16' undeclared (first use in this function)
common/device/bluetoth/bluez.c:91: error: `SDP_UUID32' undeclared (first use in this function)
common/device/bluetoth/bluez.c:92: error: `SDP_UUID128' undeclared (first use inthis function)
common/device/bluetoth/bluez.c:95: error: `SDP_UINT8' undeclared (first use in this function)
common/device/bluetoth/bluez.c:96: error: `RFCOMM_UUID' undeclared (first use inthis function)
common/device/bluetoth/bluez.c: In function `print_access_protos':
common/device/bluetoth/bluez.c:107: error: `sdp_list_t' undeclared (first use inthis function)
common/device/bluetoth/bluez.c:107: error: `protDescSeq' undeclared (first use in this function)
common/device/bluetoth/bluez.c:107: error: syntax error before ')' token
common/device/bluetoth/bluez.c: In function `bluetooth_checkdevice':
common/device/bluetoth/bluez.c:115: error: `sdp_session_t' undeclared (first usein this function)
common/device/bluetoth/bluez.c:115: error: `sess' undeclared (first use in this function)
common/device/bluetoth/bluez.c:116: error: `sdp_record_t' undeclared (first use in this function)
common/device/bluetoth/bluez.c:116: error: `rec' undeclared (first use in this function)
common/device/bluetoth/bluez.c:117: error: `sdp_list_t' undeclared (first use inthis function)
common/device/bluetoth/bluez.c:117: error: `attrid' undeclared (first use in this function)
common/device/bluetoth/bluez.c:117: error: `search' undeclared (first use in this function)
common/device/bluetoth/bluez.c:117: error: `seq' undeclared (first use in this function)
common/device/bluetoth/bluez.c:117: error: `next' undeclared (first use in this function)
common/device/bluetoth/bluez.c:117: error: `proto' undeclared (first use in thisfunction)
common/device/bluetoth/bluez.c:118: error: `sdp_data_t' undeclared (first use inthis function)
common/device/bluetoth/bluez.c:118: error: `d' undeclared (first use in this function)
common/device/bluetoth/bluez.c:121: error: storage size of `subcontext' isn't known
common/device/bluetoth/bluez.c:130: error: `SDP_RETRY_IF_BUSY' undeclared (firstuse in this function)
common/device/bluetoth/bluez.c:137: error: dereferencing pointer to incomplete type
common/device/bluetoth/bluez.c:138: error: `SDP_ATTR_REQ_RANGE' undeclared (first use in this function)
common/device/bluetoth/bluez.c:148: error: syntax error before ')' token
common/device/bluetoth/bluez.c:151: error: dereferencing pointer to incomplete type
common/device/bluetoth/bluez.c:152: error: `SDP_ATTR_SVCNAME_PRIMARY' undeclared(first use in this function)
common/device/bluetoth/bluez.c:157: error: `sdp_free_func_t' undeclared (first use in this function)
common/device/bluetoth/bluez.c:157: error: syntax error before "sdp_data_free"
common/device/bluetoth/bluez.c:167: error: invalid application of `sizeof' to anincomplete type
common/device/bluetoth/bluez.c:168: error: dereferencing pointer to incomplete type
common/device/bluetoth/bluez.c: In function `bluetooth_findchannel':
common/device/bluetoth/bluez.c:185: error: `inquiry_info' undeclared (first use in this function)
common/device/bluetoth/bluez.c:185: error: syntax error before "ii"
common/device/bluetoth/bluez.c:188: error: storage size of `context' isn't known
common/device/bluetoth/bluez.c:191: error: invalid application of `sizeof' to anincomplete type
common/device/bluetoth/bluez.c:192: error: `PUBLIC_BROWSE_GROUP' undeclared (first use in this function)
common/device/bluetoth/bluez.c:196: error: `ii' undeclared (first use in this function)
make: *** [common/device/bluetoth/bluez.o] Error 1
make: *** Waiting for unfinished jobs....
Comment 12 Alin Năstac (RETIRED) gentoo-dev 2004-11-29 10:58:44 UTC
man , do you realize how strange is your system? we're back to the square 1 (aka comment #1)!!!

please, re-answer to that questions.
Comment 13 federico 2004-11-29 11:19:34 UTC
see comment #2
ls /usr/include/bluetooth
bluetooth.h  cmtp.h  hci_lib.h   hci_vhci.h  l2cap.h   sco.h
bnep.h       hci.h   hci_uart.h  hidp.h      rfcomm.h
Comment 14 federico 2004-11-29 11:22:18 UTC
strange
see 
qpkg -l bluez-libs
net-wireless/bluez-libs-2.10 *
CONTENTS:
/usr
/usr/lib
/usr/lib/libbluetooth.so.1.0.10
/usr/lib/libbluetooth.la
/usr/lib/libbluetooth.so -> libbluetooth.so.1.0.10 1101036678
/usr/lib/pkgconfig
/usr/lib/pkgconfig/bluez.pc
/usr/lib/libbluetooth.a
/usr/lib/libbluetooth.so.1 -> libbluetooth.so.1.0.10 1101036678
/usr/include
/usr/include/bluetooth
/usr/include/bluetooth/hci_vhci.h
/usr/include/bluetooth/sdp_lib.h
/usr/include/bluetooth/hci_lib.h
/usr/include/bluetooth/rfcomm.h
/usr/include/bluetooth/hci.h
/usr/include/bluetooth/sco.h
/usr/include/bluetooth/sdp.h
/usr/include/bluetooth/bluetooth.h
/usr/include/bluetooth/bnep.h
/usr/include/bluetooth/cmtp.h
/usr/include/bluetooth/hidp.h
/usr/include/bluetooth/l2cap.h
/usr/include/bluetooth/hci_uart.h
Comment 15 Jedi 2004-11-29 11:36:47 UTC
I emerged
Linux phxl0007 2.6.9-gentoo-r4 #6 Wed Nov 17 21:43:34 CET 2004 i686 Intel(R) Pentium(R) M processor 1600MHz GenuineIntel GNU/Linux

[ebuild     U ] net-dialup/gammu-0.98.9 [0.97.7] +bluetooth +irda +mysql +nls +ssl

Making gammu/depend/nokia/dct3trac/wmx-gsm.c
Making gammu/depend/nokia/dct3trac/wmx-list.c
Making gammu/depend/nokia/dct3trac/wmx-sim.c
Making gammu/depend/nokia/dct3trac/wmx-util.c
Making gammu/depend/nokia/dct4.c
Making gammu/depend/siemens/dsiemens.c
Making gammu/depend/siemens/chiffre.c
Making gammu/smsd/smsdcore.c
Making gammu/smsd/s_files.c
Making gammu/smsd/s_mysql.c
Making gammu/sniff.c
Making gammu/gammu.c
Linking gammu
>>> Test phase [not enabled]: net-dialup/gammu-0.98.9

>>> Install gammu-0.98.9 into /var/tmp/portage/gammu-0.98.9/image/ category net-dialup
Uninstalling Gammu
Linking libGammu.so.0.0
Linking libGammu.a
Linking gammu-shared
./gammu/smsd/s_files.o(.text+0x873): In function `SMSDFiles_FindOutboxSMS':
: undefined reference to `mywstrstr'
./gammu/gammu.o(.text+0x334f): In function `ListMemoryCategory':
: undefined reference to `mywstrstr'
./gammu/gammu.o(.text+0x1c2fc): In function `ListToDoCategory':
: undefined reference to `mywstrstr'
./gammu/gammu.o(.text+0x2652f): In function `SearchOneEntry':
: undefined reference to `mywstrstr'
collect2: ld returned 1 exit status
make: *** [gammu/gammu-shared] Error 1

!!! ERROR: net-dialup/gammu-0.98.9 failed.
!!! Function src_install, Line 50, Exitcode 2
!!! install failed
!!! If you need support, post the topmost build error, NOT this status message.
Comment 16 Alin Năstac (RETIRED) gentoo-dev 2004-11-29 12:42:56 UTC
This goddam function (mywstrstr) is defined in common/misc/coding/coding.c.
Please see what is wrong with your systems. I cannot reproduce any of these errors (built with all USE flags enabled) and it appears that neither do you.
You cannot decide whether you have link errors ( undefined reference to `mywstrstr' ) or compile errors ( bluetooth/sdp.h: No such file or directory ).

Hint: you could try to run ./configure; make in /var/tmp/portage/gammu... directory

Idea: do any of you guys, have a SMP machine? It may be the fact that Makefile is poorly written for paralel jobs? 
Comment 17 federico 2004-11-30 03:54:38 UTC
with -j2 in /etc/make.conf i have rebuild bluez-libs and now i have 
ls /usr/include/bluetooth
bluetooth.h  cmtp.h  hci_lib.h   hci_vhci.h  l2cap.h   sco.h  sdp_lib.h
bnep.h       hci.h   hci_uart.h  hidp.h      rfcomm.h  sdp.h

Now i have the same error of jedi;

if i run ./configure, make in the tmp directory it works
Comment 18 Alin Năstac (RETIRED) gentoo-dev 2004-11-30 05:08:59 UTC
my question was if you have a multi-processor machine. on my single processor machine I successfully installed with -j2 or -j3.
if you have a multi-processor machine and ebuild succeeds when you set MAKEOPTS to -j1 then I'll know that Makefile is to blame for this.
Comment 19 federico 2004-11-30 05:25:54 UTC
sorry, i have one pentium4 3.06 ht, with smp support in the kernel
Comment 20 Alin Năstac (RETIRED) gentoo-dev 2004-11-30 06:00:54 UTC
and if you set MAKEOPTS=-j1 in /etc/make.conf does "emerge gammu" ends successfully?
Comment 21 federico 2004-11-30 06:13:15 UTC
with "j1" dont work;
 it work only in the /var/tmp/portage/gammu with manual instructions
Comment 22 Alin Năstac (RETIRED) gentoo-dev 2004-11-30 06:39:45 UTC
try emerging with CFLAGS commented out.
Comment 23 federico 2004-11-30 06:57:55 UTC
same error of the comment #15
Comment 24 Alin Năstac (RETIRED) gentoo-dev 2004-12-05 07:34:36 UTC
Tried to build it with gcc-3.4.3 with same result (success).

Please do the following test (will run compile with a clean environment). Edit src_compile function and write it as:
{
     exec -c  bash << EOF
... things done in src_compile
EOF
}
    
Do you have enough memory? Maybe it fails because you do not have sufficient resources (memory+swap) to build gammu.
Comment 25 federico 2004-12-06 09:08:13 UTC
now i have :

emerge gammu
Calculating dependencies ...done!
>>> emerge (1 of 1) net-dialup/gammu-0.98.9 to /
>>> md5 src_uri ;-) gammu-0.98.9.tar.gz
>>> Unpacking source...
>>> Unpacking gammu-0.98.9.tar.gz to /var/tmp/portage/gammu-0.98.9/work
>>> Source unpacked.
 and stop here,

I have 512 mb of ram and 512 mb swap.
Comment 26 Alin Năstac (RETIRED) gentoo-dev 2005-01-06 14:46:24 UTC
I can't explain this weird behaviour.